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.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |