30 #ifndef YAML_UTIL_YAML_UTIL_H_ 31 #define YAML_UTIL_YAML_UTIL_H_ 36 #include <yaml-cpp/yaml.h> 38 #include <swri_yaml_util/version.h> 40 #ifndef YAMLCPP_OLD_API 43 void operator >> (
const YAML::Node& node,
float& value);
44 void operator >> (
const YAML::Node& node,
double& value);
45 void operator >> (
const YAML::Node& node,
bool& value);
46 void operator >> (
const YAML::Node& node, int16_t& value);
47 void operator >> (
const YAML::Node& node, uint16_t& value);
48 void operator >> (
const YAML::Node& node, int32_t& value);
49 void operator >> (
const YAML::Node& node, uint32_t& value);
50 void operator >> (
const YAML::Node& node, int64_t& value);
51 void operator >> (
const YAML::Node& node, uint64_t& value);
52 void operator >> (
const YAML::Node& node, std::string& value);
54 #endif // YAMLCPP_OLD_API 58 bool LoadFile(
const std::string& path, YAML::Node& yaml);
59 bool LoadString(
const std::string& input, YAML::Node& yaml);
60 bool LoadMap(
const std::map<std::string, std::string>& dict, YAML::Node& yaml);
61 bool FindValue(
const YAML::Node& node,
const std::string& name);
63 std::auto_ptr<YAML::Node>
Clone(
const YAML::Node& node);
65 std::string
ToString(
double value, int32_t precision);
68 #endif // YAML_UTIL_YAML_UTIL_H_ bool LoadFile(const std::string &path, YAML::Node &yaml)
std::string ToString(double value, int32_t precision)
void operator>>(const YAML::Node &node, float &value)
bool LoadString(const std::string &input, YAML::Node &yaml)
bool LoadMap(const std::map< std::string, std::string > &dict, YAML::Node &yaml)
bool FindValue(const YAML::Node &node, const std::string &name)
std::auto_ptr< YAML::Node > Clone(const YAML::Node &node)