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.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |