MRPT
1.9.9
|
Configuration ("INI"-like) file format in MRPT.
Plain text configuration files in MRPT follows a custom version of the INI file standard format, comprising "sections", "properties" (or "keys") with associated "values" and, optionally, comments.
The following C++ classes are provided to read and write such files:
See also:
[section_name]
key = value
. Whitespaces are ignored before and after the =
sign, up to the first non-blank character of the value.int
,double
,std::string
) and also vectors, matrices and even enum
s.;
. Example: ; Comment line
#
. Example: # Comment line
//
. Example: key = value // Explanation of this value
key = http://www.google.com
is not considered to contain a comment.\
) to mean "line
continuation". [New in MRPT 1.5.0]#define
s are available as @define VARNAME VALUE
, then using variables as ${VARNAME}
or math expressions as $eval{...}
. See the example below: [New in MRPT 1.5.0].There are dozens of examples in the subdirectory MRPT/share/mrpt/config_files.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |