Common Pipeline Library Reference 7.3.2
|
Macros | |
#define | cpl_get_license(PACKAGE_NAME, YEAR) |
Generate the recipe copyright and license text (GPL v.2) | |
#define | cpl_recipe_define(RECIPE_NAME, RECIPE_VERSION, RECIPE_AUTHOR, RECIPE_EMAIL, RECIPE_YEAR, RECIPE_SYNOPSIS, RECIPE_DESCRIPTION) |
Define a standard CPL recipe. | |
#define | CPL_RECIPE_DEFINE(RECIPE_NAME, RECIPE_VERSION, RECIPE_FILL_PARAMS, RECIPE_AUTHOR, RECIPE_AUTHOR_EMAIL, RECIPE_YEAR, RECIPE_SYNOPSIS, RECIPE_DESCRIPTION) |
Define a standard CPL recipe. | |
This module implements the support for recipe defition.
#define cpl_get_license | ( | PACKAGE_NAME, | |
YEAR | |||
) |
Generate the recipe copyright and license text (GPL v.2)
PACKAGE_NAME | The name as a string literal, e.g. from config.h |
YEAR | The year(s) as a string literal |
Example:
#define cpl_recipe_define | ( | RECIPE_NAME, | |
RECIPE_VERSION, | |||
RECIPE_AUTHOR, | |||
RECIPE_EMAIL, | |||
RECIPE_YEAR, | |||
RECIPE_SYNOPSIS, | |||
RECIPE_DESCRIPTION | |||
) |
Define a standard CPL recipe.
RECIPE_NAME | The name as an identifier |
RECIPE_VERSION | The binary version number |
RECIPE_AUTHOR | The author as a string literal |
RECIPE_EMAIL | The contact email as a string literal |
RECIPE_YEAR | The copyright year as a string literal |
RECIPE_SYNOPSIS | The synopsis as a string literal |
RECIPE_DESCRIPTION | The man-page as a string literal |
A CPL-based recipe may use this macro to define its four mandatory functions: cpl_plugin_get_info(), <recipe>_create(), <recipe>_exec() and <recipe>_destroy(), as well as declaring the actual data reduction function, <recipe>() as
The macro also declares the recipe-specific function that fills the recipe parameterlist with the supported parameters as
A recipe that invokes cpl_recipe_define() must define this function.
The macro cpl_recipe_define() may be used by defining a macro, e.g. in my_recipe.h:
#define CPL_RECIPE_DEFINE | ( | RECIPE_NAME, | |
RECIPE_VERSION, | |||
RECIPE_FILL_PARAMS, | |||
RECIPE_AUTHOR, | |||
RECIPE_AUTHOR_EMAIL, | |||
RECIPE_YEAR, | |||
RECIPE_SYNOPSIS, | |||
RECIPE_DESCRIPTION | |||
) |
Define a standard CPL recipe.
RECIPE_NAME | The name as an identifier |
RECIPE_VERSION | The binary version number |
RECIPE_FILL_PARAMS | A function call to fill the recipe parameterlist. Must evaluate to zero if and only if successful |
RECIPE_AUTHOR | The author as a string literal |
RECIPE_AUTHOR_EMAIL | The author email as a string literal |
RECIPE_YEAR | The copyright year as a string literal |
RECIPE_SYNOPSIS | The synopsis as a string literal |
RECIPE_DESCRIPTION | The man-page as a string literal |