Messages are cached. More...
#include <schema_validator.hpp>
Public Member Functions | |
message_info (message_type t, const std::string &file, int line=0, int n=0, const std::string &tag="", const std::string &key="", const std::string &value="", const std::string &expected="") | |
Public Attributes | |
message_type | type |
std::string | file |
int | line |
int | n |
std::string | tag |
std::string | key |
std::string | value |
std::string | expected |
Messages are cached.
The reason is next: in file where [tag]...[/tag][+tag]...[/tag] config object will be validated each [/tag]. So message can be as wrong (when [+tag] section contains missed elements) as duplicated.
Messages are mapped by config*. That ensures uniqueness. Also message-maps are organized in stack to avoid memory leaks.
Definition at line 96 of file schema_validator.hpp.
|
inline |
Definition at line 107 of file schema_validator.hpp.
std::string schema_validation::schema_validator::message_info::expected |
Definition at line 105 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print().
std::string schema_validation::schema_validator::message_info::file |
Definition at line 99 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
std::string schema_validation::schema_validator::message_info::key |
Definition at line 103 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
int schema_validation::schema_validator::message_info::line |
Definition at line 100 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
int schema_validation::schema_validator::message_info::n |
Definition at line 101 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
std::string schema_validation::schema_validator::message_info::tag |
Definition at line 102 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
message_type schema_validation::schema_validator::message_info::type |
Definition at line 98 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().
std::string schema_validation::schema_validator::message_info::value |
Definition at line 104 of file schema_validator.hpp.
Referenced by schema_validation::schema_validator::print(), and schema_validation::schema_self_validator::print().