30 #ifndef YAML_UTIL_YAML_UTIL_H_
31 #define YAML_UTIL_YAML_UTIL_H_
35 #include <ros/common.h>
37 #include <yaml-cpp/yaml.h>
39 #include <swri_yaml_util/version.h>
41 #ifndef YAMLCPP_OLD_API
44 void operator >> (
const YAML::Node& node,
float& value);
45 void operator >> (
const YAML::Node& node,
double& value);
46 void operator >> (
const YAML::Node& node,
bool& value);
47 void operator >> (
const YAML::Node& node, int16_t& value);
48 void operator >> (
const YAML::Node& node, uint16_t& value);
49 void operator >> (
const YAML::Node& node, int32_t& value);
50 void operator >> (
const YAML::Node& node, uint32_t& value);
51 void operator >> (
const YAML::Node& node, int64_t& value);
52 void operator >> (
const YAML::Node& node, uint64_t& value);
53 void operator >> (
const YAML::Node& node, std::string& value);
55 #endif // YAMLCPP_OLD_API
61 bool LoadFile(
const std::string& path, YAML::Node& yaml);
62 bool LoadString(
const std::string& input, YAML::Node& yaml);
63 bool LoadMap(
const std::map<std::string, std::string>& dict, YAML::Node& yaml);
64 bool FindValue(
const YAML::Node& node,
const std::string& name);
68 std::string
ToString(
double value, int32_t precision);
71 #endif // YAML_UTIL_YAML_UTIL_H_