Go to the documentation of this file.
10 #include <mrpt/config.h>
13 #include <gtest/gtest.h>
17 const auto sampleYamlTxt = std::string(R
"xxx(
18 # example YAML config file from a std::string
26 gridmap_00: {max_x: 25.0, min_x: -25.0}
35 "# example config file from std::string\n"
40 const std::string sampleCfgTxt_as_yaml_correct =
67 #endif // MRPT_HAS_YAMLCPP
void setContentFromYAML(const std::string &yaml_block)
Changes the contents of the virtual "config file" from a text block containing a YAML configuration t...
TEST(ICP_SLAM_App, MapFromRawlog_PointMap)
const std::string sampleCfgTxt
int read_int(const std::string §ion, const std::string &name, int defaultValue, bool failIfNotFound=false) const
void setContent(const std::vector< std::string > &stringList)
Changes the contents of the virtual "config file".
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
std::string getContentAsYAML() const
Returns a text block representing the contents of the config file in YAML format.
This class implements a config file-like interface over a memory-stored string list.
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 15:49:54 UTC 2020 | |