maliput
yaml_conversion.h File Reference
#include <yaml-cpp/yaml.h>
#include "maliput/api/regions.h"
Include dependency graph for yaml_conversion.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  convert< maliput::api::SRange >
 Struct used for encoding and decoding api::SRange with a YAML::Node. More...
 
struct  DiscreteValueRuleConstants
 Constants to identify attributes of api::rules::DiscreteValueRule Types. More...
 
struct  RangeValueRuleConstants
 Constants to identify attributes of api::rules::RangeValueRule Types. More...
 
struct  RuleConstants
 Constants to identify attributes used in both api::rules::DiscreteValueRules and api::rules::RangeValueRules Types. More...
 

Namespaces

 YAML
 
 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 

Enumerations

enum  RuleType { kDiscreteValueRuleType, kRangeValueRuleType, kUnknownRuleType }
 Label to identify rule type. More...
 

Functions

bool IsDiscreteValue (const YAML::Node &rule_node)
 Determines whether the rule_node corresponds to a api::rules::DiscreteValueRule::DiscreteValue description. More...
 
bool IsRangeValue (const YAML::Node &rule_node)
 Determines whether the rule_node corresponds to a api::rules::RangeValueRule::Range description. More...
 
int GetSeverityFromYamlNode (const YAML::Node &node)
 Returns the severity field value from the node. More...
 
std::pair< double, doubleGetRangeMinMaxValuesFromYamlNode (const YAML::Node &node)
 Get min and max values from the yaml node. More...
 
std::string GetValueFromYamlNode (const YAML::Node &node)
 Get the value of a api::rules::DiscreteValueRule::DiscreteValue from a yaml node. More...
 
std::string GetDescriptionFromYamlNode (const YAML::Node &node)
 Get the description of a api::rules::RangeValueRule::Range from a yaml node. More...