10 #include <mrpt/config.h>    13 #include <gtest/gtest.h>    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"    48     c.setContentFromYAML(sampleYamlTxt);
    52     EXPECT_EQ(1, 
c.read_int(
"maps", 
"pointMaps", 0));
    53     EXPECT_EQ(2, 
c.read_int(
"maps", 
"gridMaps", 0));
    54     EXPECT_EQ(25.0, 
c.read_int(
"gridmap_00", 
"max_x", 0));
    55     EXPECT_EQ(42, 
c.read_int(
"", 
"unscoped_key1", 0));
    64     EXPECT_EQ(sampleCfgTxt_as_yaml_correct.size(), 
c.getContentAsYAML().size());
    67 #endif  // MRPT_HAS_YAMLCPP This class implements a config file-like interface over a memory-stored string list. 
 
TEST(NodeletsTests, pub_sub_multithread_test)
 
GLsizei const GLchar ** string
 
const std::string sampleCfgTxt