Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef YAMLFUNCTIONS_H_
00009 #define YAMLFUNCTIONS_H_
00010
00011 #include <scriptable_monitor/Parameters.h>
00012
00013
00014 class YamlFunctions {
00015 public:
00016 static Yaml toYaml(string object) {
00017 stringstream yaml_stream;
00018 yaml_stream << object;
00019 YAML::Parser parser(yaml_stream);
00020 YAML::Node document;
00021 parser.GetNextDocument(document);
00022 return YamlPtr(document.Clone());
00023 }
00024
00025 };
00026
00027
00028 #endif