Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
|
Declaring environment parameters used in your code with automatic documentation.
For declaring variables reflecting environment settings, the following macros should be used, and the variables should be declared globally. This way, automatic tools can generate a documentation of the environment parameters. The macros take care of properly initializing the variables in 'EnvInit', the user does not need to call 'EnvGet...' for these variables. If this is not possible (e.g. because the key is variable or the type does not match any of the standard types), the macro 'ENV_PARA_SPECIAL' must be inserted to inform the documentation tools. 'ENV_PARA_SPECIAL' may be followed by (custom) variable declaration in the same line Each macro invocation must be followed by a comment with the parameter documentation in the following format:
ENV_PARA_... (...) / * Short description (max. ~40 chars, no trailing period) * * Optional long description, optionally covering multiple lines or empty lines. * Only the last line must not be empty, and there must be exactly one empty * line between the short and the long description. * * Formatting can be done with LaTeX syntax. * /
Details on formatting options can be found in the Home2L Book.
Note: Persistent variables ("var.*" domain) cannot be initialized this way. They must be declared via 'ENV_PARA_SPECIAL'.