55 virtual void open_tag(
const std::string & name,
58 const std::string &file,
59 bool addition =
false) = 0;
74 const std::string & name,
76 const std::string &file) = 0;
88 const std::string & name,
91 const std::string &file) = 0;
Used in parsing config file.
virtual void validate_key(const config &cfg, const std::string &name, const config_attribute_value &value, int start_line, const std::string &file)=0
Checks if key is allowed and if its value is valid What exactly is validated depends on validator rea...
virtual void validate(const config &cfg, const std::string &name, int start_line, const std::string &file)=0
Validates config.
virtual ~abstract_validator()
abstract_validator(const std::string &name)
Constructor of validator can throw validator::error.
virtual void close_tag()=0
As far as parser is built on stack, some realizations can store stack too.
virtual void open_tag(const std::string &name, const config &parent, int start_line, const std::string &file, bool addition=false)=0
Is called when parser opens tag.
Variant for storing WML attributes.
A config object defines a single node in a WML file, with access to child nodes.
Used to manage with not initialized validators Supposed to be thrown from the constructor.
error(const std::string &message)
Base class for all the errors encountered by the engine.
bool strict_validation_enabled