Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #include <telekyb_base/Tools/YamlHelper.hpp>
00010 
00011 namespace TELEKYB_NAMESPACE
00012 {
00013 
00014 bool YamlHelper::parseNodeToString(const YAML::Node& node, std::string& output) {
00015         YAML::Emitter emit;
00016         emit.SetMapFormat(YAML::Flow); 
00017         emit.SetSeqFormat(YAML::Flow); 
00018         
00019         emit << node;
00020 
00021         output = emit.c_str();
00022         return true;
00023 }
00024 
00025 bool YamlHelper::parseStringToNode(const std::string& string, YAML::Node& node) {
00026         
00027         node = YAML::Load(string);
00028         return true;
00029 }
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 }