MRPT
2.0.4
|
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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |