Stores information about a schema type. More...
#include <type.hpp>
Public Types | |
| using | ptr = std::shared_ptr< wml_type > |
| using | map = std::map< std::string, ptr > |
Public Member Functions | |
| wml_type ()=delete | |
| wml_type (const std::string &name) | |
| virtual bool | matches (const config_attribute_value &value, const map &type_map) const =0 |
| virtual | ~wml_type () |
Static Public Member Functions | |
| static std::shared_ptr< wml_type > | from_config (const config &cfg) |
Protected Attributes | |
| std::string | name_ |
Stores information about a schema type.
This is an abstract base class for several variants of schema type.
| using schema_validation::wml_type::map = std::map<std::string, ptr> |
| using schema_validation::wml_type::ptr = std::shared_ptr<wml_type> |
|
delete |
|
inlineexplicit |
|
inlinevirtual |
Definition at line 53 of file type.cpp.
References cfg, config::child_range(), config::has_attribute(), config::has_child(), config::mandatory_child(), and t.
Referenced by schema_validation::schema_validator::read_config_file().
|
pure virtual |