YamlFunctions.h
Go to the documentation of this file.
00001 /*
00002  * YamlFunctions.h
00003  *
00004  *  Created on: Oct 29, 2013
00005  *      Author: blackpc
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 /* YAMLFUNCTIONS_H_ */


scriptable_monitor
Author(s):
autogenerated on Wed Aug 26 2015 16:21:30