|
tue_config
|
Classes | |
| class | BinaryReader |
| class | BinaryWriter |
| class | Data |
| class | DataConstPointer |
| class | DataPointer |
| struct | Error |
| class | Map |
| class | Node |
| class | ParseException |
| class | Reader |
| class | ReaderWriter |
| class | ResolveConfig |
| Class to config the resolve behaviour of a loader. More... | |
| class | Sequence |
| class | Variant |
| class | Writer |
| struct | WriterImpl |
| class | YAMLEmitter |
Typedefs | |
| typedef boost::shared_ptr< const Node > | NodeConstPtr |
| typedef unsigned int | NodeIdx |
| typedef boost::shared_ptr< Node > | NodePtr |
Enumerations | |
| enum | NodeType { MAP, ARRAY } |
| enum | RequiredOrOptional { REQUIRED, OPTIONAL } |
| enum | resolveResult { failed, success, skipped } |
| enum | WriteType { XML, YAML, JSON } |
Functions | |
| void | argsToString (const std::vector< std::string > &args, std::string &output) |
| void | data_merge (Data &c1, NodeIdx me_idx, const Data &c2, NodeIdx other_idx, std::string &error) |
| void | emitRecursive (std::ostream &out, const tue::config::Data &cfg, const NodePtr &n, const std::string &indent, bool ignore_first_indent=false) |
| resolveResult | executeResolvefunction (const std::vector< std::string > &args, const std::string &source, std::string &result, std::stringstream &error, const ResolveConfig &config) |
| DataPointer | fromFile (const char *filename, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| DataPointer | fromFile (const std::string &filename, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| DataPointer | fromStream (std::istream &s, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| DataPointer | fromString (const std::string &s, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| tue::config::NodeType | getSDFNodeType (const std::string &element_name) |
| bool | loadFromSDFDocument (const tinyxml2::XMLDocument &doc, ReaderWriter &config) |
| bool | loadFromSDFElement (const tinyxml2::XMLElement &element, ReaderWriter &config, const NodeType node_type) |
| bool | loadFromSDFFile (const std::string &filename, ReaderWriter &config) |
| loadFromSDFFile loads a sdf file into a ReaderWriter class More... | |
| bool | loadFromSDFStream (std::istream &stream, ReaderWriter &config) |
| loadFromSDFStream loads a sdf stream into a ReaderWriter class More... | |
| bool | loadFromSDFString (const std::string &string, ReaderWriter &config) |
| loadFromSDFString loads a sdf string into a ReaderWriter class More... | |
| bool | loadFromXMLDocument (const tinyxml2::XMLDocument &doc, ReaderWriter &config) |
| bool | loadFromXMLElement (const tinyxml2::XMLElement &element, ReaderWriter &config) |
| bool | loadFromXMLFile (const std::string &filename, ReaderWriter &config) |
| loadFromXMLFile loads a xml file into a ReaderWriter class More... | |
| bool | loadFromXMLStream (std::istream &stream, ReaderWriter &config) |
| loadFromXMLStream loads a xml stream into a ReaderWriter class More... | |
| bool | loadFromXMLString (const std::string &string, ReaderWriter &config) |
| loadFromXMLString loads a xml string into a ReaderWriter class More... | |
| bool | loadFromXMLText (const tinyxml2::XMLElement &element, ReaderWriter &config) |
| loadFromXMLText writes a value from xml element into config object. Stored as double, int or string More... | |
| bool | loadFromYAMLFile (const std::string &filename, ReaderWriter &config, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| loadFromYAMLFile loads a yaml file into a ReaderWriter class More... | |
| bool | loadFromYAMLNode (const YAML::Node &node, ReaderWriter &config, const ResolveConfig &resolve_config) |
| bool | loadFromYAMLStream (std::istream &stream, ReaderWriter &config, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| loadFromYAMLStream loads a yaml stream into a ReaderWriter class More... | |
| bool | loadFromYAMLString (const std::string &string, ReaderWriter &config, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig()) |
| loadFromYAMLString loads a yaml string into a ReaderWriter class More... | |
| std::ostream & | operator<< (std::ostream &out, const DataConstPointer &d) |
| std::ostream & | operator<< (std::ostream &out, const DataPointer &d) |
| std::ostream & | operator<< (std::ostream &out, const ReaderWriter &rw) |
| resolveResult | parseResolveFunction (const std::string &str, const std::string &source, std::size_t &i, std::string &result, std::stringstream &error, const ResolveConfig &config) |
| bool | resolve (const std::string &str, const std::string &source, std::string &result, std::stringstream &error, const ResolveConfig &config) |
| bool | setValue (const std::string &key, const std::string &value, ReaderWriter &config) |
| setValue sets the value as a double, int or string More... | |
| bool | strToBool (std::string s, bool &rhs) |
| strToBool Converts a string to a boolean of matches one of the following: y, n, yes, no, true, false, on, off More... | |
| bool | toFile (const char *filename, const DataConstPointer &data, WriteType write_type, int indent_size=0) |
| bool | toFile (const std::string &filename, const DataConstPointer &data, WriteType write_type, int indent_size=0) |
| void | toStream (std::ostream &s, const DataConstPointer &data, WriteType write_type, int indent_size=0) |
| bool | yamlScalarToVariant (const std::string &key, const YAML::Node &n, ReaderWriter &config, const ResolveConfig &resolve_config) |
Variables | |
| static const std::set< std::string > | SDF_ARRAY_SET |
| static const std::set< std::string > | SDF_MAP_SET |
| static const std::set< std::string > | SDF_VALUE_SET |
| typedef boost::shared_ptr<const Node> tue::config::NodeConstPtr |
| typedef unsigned int tue::config::NodeIdx |
Definition at line 12 of file data_pointer.h.
| typedef boost::shared_ptr<Node> tue::config::NodePtr |
| Enumerator | |
|---|---|
| MAP | |
| ARRAY | |
Definition at line 10 of file node_type.h.
| Enumerator | |
|---|---|
| failed | |
| success | |
| skipped | |
Definition at line 18 of file resolve_functions.cpp.
| void tue::config::argsToString | ( | const std::vector< std::string > & | args, |
| std::string & | output | ||
| ) |
Definition at line 27 of file resolve_functions.cpp.
| void tue::config::data_merge | ( | Data & | c1, |
| NodeIdx | me_idx, | ||
| const Data & | c2, | ||
| NodeIdx | other_idx, | ||
| std::string & | error | ||
| ) |
Definition at line 16 of file data_pointer.cpp.
| void tue::config::emitRecursive | ( | std::ostream & | out, |
| const tue::config::Data & | cfg, | ||
| const NodePtr & | n, | ||
| const std::string & | indent, | ||
| bool | ignore_first_indent = false |
||
| ) |
Definition at line 21 of file yaml_emitter.cpp.
| resolveResult tue::config::executeResolvefunction | ( | const std::vector< std::string > & | args, |
| const std::string & | source, | ||
| std::string & | result, | ||
| std::stringstream & | error, | ||
| const ResolveConfig & | config | ||
| ) |
Definition at line 41 of file resolve_functions.cpp.
| DataPointer tue::config::fromFile | ( | const char * | filename, |
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
| DataPointer tue::config::fromFile | ( | const std::string & | filename, |
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
| DataPointer tue::config::fromStream | ( | std::istream & | s, |
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
| DataPointer tue::config::fromString | ( | const std::string & | s, |
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
| tue::config::NodeType tue::config::getSDFNodeType | ( | const std::string & | element_name | ) |
| bool tue::config::loadFromSDFDocument | ( | const tinyxml2::XMLDocument & | doc, |
| ReaderWriter & | config | ||
| ) |
| bool tue::config::loadFromSDFElement | ( | const tinyxml2::XMLElement & | element, |
| ReaderWriter & | config, | ||
| const NodeType | node_type | ||
| ) |
| bool tue::config::loadFromSDFFile | ( | const std::string & | filename, |
| ReaderWriter & | config | ||
| ) |
loadFromSDFFile loads a sdf file into a ReaderWriter class
| filename | input file |
| config | object in which the data is stored |
| bool tue::config::loadFromSDFStream | ( | std::istream & | stream, |
| ReaderWriter & | config | ||
| ) |
loadFromSDFStream loads a sdf stream into a ReaderWriter class
| stream | input stream |
| config | object in which the data is stored |
| bool tue::config::loadFromSDFString | ( | const std::string & | string, |
| ReaderWriter & | config | ||
| ) |
loadFromSDFString loads a sdf string into a ReaderWriter class
| string | input string (sdf) |
| config | object in which the data is stored |
| bool tue::config::loadFromXMLDocument | ( | const tinyxml2::XMLDocument & | doc, |
| ReaderWriter & | config | ||
| ) |
| bool tue::config::loadFromXMLElement | ( | const tinyxml2::XMLElement & | element, |
| ReaderWriter & | config | ||
| ) |
| bool tue::config::loadFromXMLFile | ( | const std::string & | filename, |
| ReaderWriter & | config | ||
| ) |
loadFromXMLFile loads a xml file into a ReaderWriter class
| filename | input file |
| config | object in which the data is stored |
| bool tue::config::loadFromXMLStream | ( | std::istream & | stream, |
| ReaderWriter & | config | ||
| ) |
loadFromXMLStream loads a xml stream into a ReaderWriter class
| stream | input stream |
| config | object in which the data is stored |
| bool tue::config::loadFromXMLString | ( | const std::string & | string, |
| ReaderWriter & | config | ||
| ) |
loadFromXMLString loads a xml string into a ReaderWriter class
| string | input string (xml) |
| config | object in which the data is stored |
| bool tue::config::loadFromXMLText | ( | const tinyxml2::XMLElement & | element, |
| ReaderWriter & | config | ||
| ) |
| bool tue::config::loadFromYAMLFile | ( | const std::string & | filename, |
| ReaderWriter & | config, | ||
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
loadFromYAMLFile loads a yaml file into a ReaderWriter class
| filename | input file |
| config | object in which the data is stored |
| bool tue::config::loadFromYAMLNode | ( | const YAML::Node & | node, |
| ReaderWriter & | config, | ||
| const ResolveConfig & | resolve_config | ||
| ) |
| bool tue::config::loadFromYAMLStream | ( | std::istream & | stream, |
| ReaderWriter & | config, | ||
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
loadFromYAMLStream loads a yaml stream into a ReaderWriter class
| stream | input stream |
| config | object in which the data is stored |
| bool tue::config::loadFromYAMLString | ( | const std::string & | string, |
| ReaderWriter & | config, | ||
| const ResolveConfig & | resolve_config = ResolveConfig::defaultConfig() |
||
| ) |
loadFromYAMLString loads a yaml string into a ReaderWriter class
| string | input string (yaml) |
| config | object in which the data is stored |
| std::ostream& tue::config::operator<< | ( | std::ostream & | out, |
| const DataConstPointer & | d | ||
| ) |
Definition at line 128 of file data_pointer.cpp.
| std::ostream& tue::config::operator<< | ( | std::ostream & | out, |
| const DataPointer & | d | ||
| ) |
Definition at line 137 of file data_pointer.cpp.
| std::ostream& tue::config::operator<< | ( | std::ostream & | out, |
| const ReaderWriter & | rw | ||
| ) |
| resolveResult tue::config::parseResolveFunction | ( | const std::string & | str, |
| const std::string & | source, | ||
| std::size_t & | i, | ||
| std::string & | result, | ||
| std::stringstream & | error, | ||
| const ResolveConfig & | config | ||
| ) |
Definition at line 108 of file resolve_functions.cpp.
| bool tue::config::resolve | ( | const std::string & | str, |
| const std::string & | source, | ||
| std::string & | result, | ||
| std::stringstream & | error, | ||
| const ResolveConfig & | config | ||
| ) |
Definition at line 185 of file resolve_functions.cpp.
| bool tue::config::setValue | ( | const std::string & | key, |
| const std::string & | value, | ||
| ReaderWriter & | config | ||
| ) |
setValue sets the value as a double, int or string
| key | name of the node |
| value | value of the node |
| config | ReaderWriter object to add it to |
| bool tue::config::strToBool | ( | std::string | s, |
| bool & | rhs | ||
| ) |
strToBool Converts a string to a boolean of matches one of the following: y, n, yes, no, true, false, on, off
| s | string to convert |
| rhs | bool to set to true or false |
Definition at line 10 of file loader_functions.cpp.
| bool tue::config::toFile | ( | const char * | filename, |
| const DataConstPointer & | data, | ||
| WriteType | write_type, | ||
| int | indent_size = 0 |
||
| ) |
| bool tue::config::toFile | ( | const std::string & | filename, |
| const DataConstPointer & | data, | ||
| WriteType | write_type, | ||
| int | indent_size = 0 |
||
| ) |
| void tue::config::toStream | ( | std::ostream & | s, |
| const DataConstPointer & | data, | ||
| WriteType | write_type, | ||
| int | indent_size = 0 |
||
| ) |
| bool tue::config::yamlScalarToVariant | ( | const std::string & | key, |
| const YAML::Node & | n, | ||
| ReaderWriter & | config, | ||
| const ResolveConfig & | resolve_config | ||
| ) |
|
static |
|
static |
|
static |
1.8.17