The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Functions | Variables
schema_validation Namespace Reference

Classes

class  class_key
 class_key is used to save the information about one key. More...
 
class  class_tag
 Stores information about tag. More...
 
class  schema_validator
 Realization of serialization/validator.hpp abstract validator. More...
 

Functions

static std::string at (const std::string &file, int line)
 
static void print_output (const std::string &message, bool flag_exception=false)
 
static void extra_tag_error (const std::string &file, int line, const std::string &name, int n, const std::string &parent, bool flag_exception)
 
static void wrong_tag_error (const std::string &file, int line, const std::string &name, const std::string &parent, bool flag_exception)
 
static void missing_tag_error (const std::string &file, int line, const std::string &name, int n, const std::string &parent, bool flag_exception)
 
static void extra_key_error (const std::string &file, int line, const std::string &tag, const std::string &key, bool flag_exception)
 
static void missing_key_error (const std::string &file, int line, const std::string &tag, const std::string &key, bool flag_exception)
 
static void wrong_value_error (const std::string &file, int line, const std::string &tag, const std::string &key, const std::string &value, bool flag_exception)
 

Variables

static lg::log_domain log_validation ("validation")
 

Function Documentation

static std::string schema_validation::at ( const std::string &  file,
int  line 
)
static
static void schema_validation::extra_key_error ( const std::string &  file,
int  line,
const std::string &  tag,
const std::string &  key,
bool  flag_exception 
)
static

Definition at line 82 of file schema_validator.cpp.

References at(), and print_output().

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

static void schema_validation::extra_tag_error ( const std::string &  file,
int  line,
const std::string &  name,
int  n,
const std::string &  parent,
bool  flag_exception 
)
static

Definition at line 52 of file schema_validator.cpp.

References at(), and print_output().

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

static void schema_validation::missing_key_error ( const std::string &  file,
int  line,
const std::string &  tag,
const std::string &  key,
bool  flag_exception 
)
static

Definition at line 92 of file schema_validator.cpp.

References at(), and print_output().

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

static void schema_validation::missing_tag_error ( const std::string &  file,
int  line,
const std::string &  name,
int  n,
const std::string &  parent,
bool  flag_exception 
)
static

Definition at line 72 of file schema_validator.cpp.

References at(), and print_output().

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

static void schema_validation::print_output ( const std::string &  message,
bool  flag_exception = false 
)
static
static void schema_validation::wrong_tag_error ( const std::string &  file,
int  line,
const std::string &  name,
const std::string &  parent,
bool  flag_exception 
)
static
static void schema_validation::wrong_value_error ( const std::string &  file,
int  line,
const std::string &  tag,
const std::string &  key,
const std::string &  value,
bool  flag_exception 
)
static

Definition at line 102 of file schema_validator.cpp.

References at(), and print_output().

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

Variable Documentation

lg::log_domain schema_validation::log_validation("validation")
static