19 #ifndef SERIALIZATION_VALIDATOR_HPP_INCLUDED
20 #define SERIALIZATION_VALIDATOR_HPP_INCLUDED
55 bool addittion =
false) = 0;
96 #endif // SERIALIZATION_VALIDATOR_HPP_INCLUDED
abstract_validator()
Constructor of validator can throw validator::error.
bool strict_validation_enabled
virtual void open_tag(const std::string &name, int start_line, const std::string &file, bool addittion=false)=0
Is called when parser opens tag.
virtual void close_tag()=0
As far as parser is built on stack, some realizations can store stack too.
Used in parsing config file.
virtual ~abstract_validator()
Used to manage with not initialized validators Supposed to be thrown from the constructor.
GLsizei const GLfloat * value
virtual void validate_key(const config &cfg, const std::string &name, const std::string &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...
GLuint const GLchar * name
Base class for all the errors encountered by the engine.
virtual void validate(const config &cfg, const std::string &name, int start_line, const std::string &file)=0
Validates config.
GLsizei GLenum GLuint GLuint GLsizei char * message
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
error(const std::string &message)