PCL
|
Macros | |
#define | PCL_MODULE_UNIQUE_ID(uid) ("PIXINSIGHT_MODULE_UNIQUE_ID_" PCL_STRINGIFY( uid )) |
#define | PCL_MODULE_VERSION(MM, mm, rr, bbbb, lan) |
A utility macro to build a module version string. More... | |
#define | PCL_MODULE_VERSION_S(MM, mm, rr, bbbb, lan, status) |
A utility macro to build a module version string, including a development status specification. More... | |
#define PCL_MODULE_UNIQUE_ID | ( | uid | ) | ("PIXINSIGHT_MODULE_UNIQUE_ID_" PCL_STRINGIFY( uid )) |
Definition at line 756 of file MetaModule.h.
#define PCL_MODULE_VERSION | ( | MM, | |
mm, | |||
rr, | |||
bbbb, | |||
lan | |||
) |
MM | The main (major) version number of the module. Must be an integer in the range from 0 to 99, and must be left-padded with a zero, when necessary. |
mm | The second (minor) version number of the module. Must be an integer in the range from 0 to 99, and must be left-padded with a zero, when necessary. |
rr | The revision version number of the module. Must be an integer in the range from 0 to 99, and must be left-padded with a zero, when necessary. |
bbbb | The build version number of the module. Must be an integer in the range from 1 to 9999, and must be left-padded with a maximum of three zeros, as necessary. |
lan | The primary language of the module. Must be a valid ISO 639.2 language code (a 3-letter code identifying a language). |
This macro generates a string literal with the mandatory "PIXINSIGHT_MODULE_VERSION_" prefix prepended to the actual module version string, which is composed by concatenation of the specified macro arguments.
Example:
In the example above, the Version() member of MyModule would return the following version string:
"PIXINSIGHT_MODULE_VERSION_01.00.02.0045.eng"
Definition at line 820 of file MetaModule.h.
#define PCL_MODULE_VERSION_S | ( | MM, | |
mm, | |||
rr, | |||
bbbb, | |||
lan, | |||
status | |||
) |
This macro is an extension of the PCL_MODULE_VERSION macro. It generates a version string that also includes a development status, specified as the status macro argument.
The status argument can have the following values:
alpha For an alpha development status
beta For a beta development status
release For a release (final) version
rc<n> For a release candidate version, where <n> is the release candidate number.
exp For an experimental version (usually a development version not intended for public release).
Other values are not recognized by the platform and cause rejection of a module for installation.
This macro generates a string that is suitable to be returned by a reimplementation of MetaModule::Version(). An example follows:
Example:
In the example above, the Version() member of MyModule would return the following version string:
"PIXINSIGHT_MODULE_VERSION_01.00.02.0045.eng.rc3"
Definition at line 893 of file MetaModule.h.