![]() |
Tesseract 0.28.4
|
This is a schema registration class. More...
#include <tesseract/common/schema_registration.h>#include <tesseract/common/schema_registry.h>#include <tesseract/common/property_tree.h>Functions | |
| void | tesseract::common::registerSchema (const std::string &key, const std::string &path) |
| Register a schema from a file path. | |
| void | tesseract::common::registerSchema (const std::string &key, const std::function< PropertyTree()> &fn) |
| Register a schema from a function. | |
| void | tesseract::common::registerSchemaDerivedType (const std::string &base_type, const std::string &derived_type) |
| Register that a derived type schema can be used where a base type is expected. | |
This is a schema registration class.
| void tesseract::common::registerSchema | ( | const std::string & | key, |
| const std::string & | path | ||
| ) |
Register a schema from a file path.
| key | Unique identifier for this schema. |
| path | Path to a .yaml schema file. |
| void tesseract::common::registerSchema | ( | const std::string & | key, |
| const std::function< PropertyTree()> & | fn | ||
| ) |
Register a schema from a function.
| key | Unique identifier for this schema. |
| fn | Function that returns a PropertyTree schema. |
| void tesseract::common::registerSchemaDerivedType | ( | const std::string & | base_type, |
| const std::string & | derived_type | ||
| ) |
Register that a derived type schema can be used where a base type is expected.
| base_type | The base type name |
| derived_type | The derived type name |