Public Member Functions | Public Attributes

schema_validation::schema_validator::message_info Struct Reference

Messages are cached. More...

Collaboration diagram for schema_validation::schema_validator::message_info:
Collaboration graph
[legend]

List of all members.

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="")

Public Attributes

message_type type
std::string file
int line
int n
std::string tag
std::string key
std::string value

Detailed Description

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 98 of file schema_validator.hpp.


Constructor & Destructor Documentation

schema_validation::schema_validator::message_info::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 = "" 
) [inline]

Definition at line 106 of file schema_validator.hpp.


Member Data Documentation

Definition at line 100 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 104 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 101 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 102 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 103 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 99 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().

Definition at line 105 of file schema_validator.hpp.

Referenced by schema_validation::schema_validator::print().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:21 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs