MRPT
2.0.1
|
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.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |