![]() |
Tesseract 0.28.4
|
This is a property tree class. More...
#include <tesseract/common/property_tree.h>#include <tesseract/common/schema_registry.h>#include <tesseract/common/yaml_extensions.h>#include <Eigen/Geometry>#include <memory>#include <mutex>#include <ostream>#include <regex>Functions | |
| std::string | tesseract::common::property_type::createList (std::string_view type, std::size_t length=0) |
| A utility for constructing the vector<type> | |
| std::string | tesseract::common::property_type::createMap (std::string_view key, std::string_view type) |
| A utility for constructing the map<key, type> | |
| std::string | tesseract::common::property_type::createMap (std::string_view type) |
| A utility for constructing the map<std::string, type> | |
| std::ostream & | tesseract::common::operator<< (std::ostream &os, const PropertyTree &tree) |
| std::optional< std::pair< std::string, std::size_t > > | tesseract::common::isSequenceType (std::string_view type) |
| Check if type is a sequence. | |
| std::optional< std::pair< std::string, std::string > > | tesseract::common::isMapType (std::string_view type) |
| Check if type is a map. | |
| void | tesseract::common::validateRequired (const PropertyTree &node, const std::string &path, std::vector< std::string > &errors) |
| Validator: ensure 'required' attribute is present and non-null. | |
| void | tesseract::common::validateEnum (const PropertyTree &node, const std::string &path, std::vector< std::string > &errors) |
| Validator: enforce that node's value is in 'enum' list. | |
| void | tesseract::common::validateMap (const PropertyTree &node, const std::string &path, std::vector< std::string > &errors) |
| Validator: ensure node value is of type YAML::NodeType::Map. | |
| void | tesseract::common::validateSequence (const PropertyTree &node, std::size_t length, const std::string &path, std::vector< std::string > &errors) |
| Validator: ensure node value is of type YAML::NodeType::Sequence. | |
| void | tesseract::common::validateContainer (const PropertyTree &node, const std::string &path, std::vector< std::string > &errors) |
| Validator: ensure property is a container of child properties. The property should have children and the value should be null. | |
| void | tesseract::common::validateCustomType (const PropertyTree &node, const std::string &path, std::vector< std::string > &errors) |
| Validator: Retrieve schema for the custom type and run its validators. | |
| void | tesseract::common::validatePluginInfo (const PropertyTree &node, const std::string &base_type, const std::string &path, std::vector< std::string > &errors) |
| Validator: Validate a plugin info structure (class + config) for derived types. | |
This is a property tree class.
| std::string tesseract::common::property_type::createList | ( | std::string_view | type, |
| std::size_t | length = 0 |
||
| ) |
A utility for constructing the vector<type>
| type | The type assoicated with the list |
| length | The length if fixed size |
| std::string tesseract::common::property_type::createMap | ( | std::string_view | key, |
| std::string_view | type | ||
| ) |
A utility for constructing the map<key, type>
| type | The value type assoicated with the map |
| std::string tesseract::common::property_type::createMap | ( | std::string_view | type | ) |
A utility for constructing the map<std::string, type>
| type | The value type assoicated with the map |
| std::optional< std::pair< std::string, std::size_t > > tesseract::common::isSequenceType | ( | std::string_view | type | ) |
Check if type is a sequence.
| type | The type to check |
| std::optional< std::pair< std::string, std::string > > tesseract::common::isMapType | ( | std::string_view | type | ) |
Check if type is a map.
| type | The type to check |
| void tesseract::common::validateRequired | ( | const PropertyTree & | node, |
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: ensure 'required' attribute is present and non-null.
| node | Node to validate. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validateEnum | ( | const PropertyTree & | node, |
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: enforce that node's value is in 'enum' list.
| node | Node to validate. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validateMap | ( | const PropertyTree & | node, |
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: ensure node value is of type YAML::NodeType::Map.
| node | Node to validate. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validateSequence | ( | const PropertyTree & | node, |
| std::size_t | length, | ||
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: ensure node value is of type YAML::NodeType::Sequence.
| node | Node to validate. |
| length | The length if fixed size. If zero, it is considered dynamic size sequence. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validateContainer | ( | const PropertyTree & | node, |
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: ensure property is a container of child properties. The property should have children and the value should be null.
| node | Node to validate. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validateCustomType | ( | const PropertyTree & | node, |
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: Retrieve schema for the custom type and run its validators.
| node | Node to validate. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |
| void tesseract::common::validatePluginInfo | ( | const PropertyTree & | node, |
| const std::string & | base_type, | ||
| const std::string & | path, | ||
| std::vector< std::string > & | errors | ||
| ) |
Validator: Validate a plugin info structure (class + config) for derived types.
| node | Node to validate (should contain 'class' and 'config' fields). |
| base_type | The base type name to check against. |
| path | Dot-separated path for error messages. |
| errors | Output vector to append errors to. |