The Battle for Wesnoth  1.15.0-dev
Classes | Functions | Variables
schema_validation Namespace Reference

Classes

class  schema_self_validator
 
class  schema_validator
 Realization of serialization/validator.hpp abstract validator. More...
 
class  wml_condition
 Stores information about a conditional portion of a tag. More...
 
class  wml_key
 wml_key is used to save the information about one key. More...
 
class  wml_tag
 Stores information about tag. More...
 
class  wml_type
 Stores information about a schema type. More...
 
class  wml_type_alias
 Stores information about a schema type. More...
 
class  wml_type_composite
 Stores information about a schema type. More...
 
class  wml_type_intersection
 Stores information about a schema type. More...
 
class  wml_type_list
 Stores information about a schema type. More...
 
class  wml_type_simple
 Stores information about a schema type. More...
 
class  wml_type_union
 Stores information about a schema type. 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)
 
static void wrong_path_error (const std::string &file, int line, const std::string &tag, const std::string &key, const std::string &value, bool flag_exception)
 
static void wrong_type_error (const std::string &file, int line, const std::string &tag, const std::string &key, const std::string &type, bool flag_exception)
 

Variables

wml_tag any_tag ("", 0, -1, "", true)
 
static lg::log_domain log_validation ("validation")
 

Function Documentation

◆ at()

static std::string schema_validation::at ( const std::string &  file,
int  line 
)
static

◆ extra_key_error()

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 91 of file schema_validator.cpp.

References at(), and print_output().

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

◆ extra_tag_error()

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 57 of file schema_validator.cpp.

References at(), and print_output().

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

◆ missing_key_error()

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 99 of file schema_validator.cpp.

References at(), and print_output().

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

◆ missing_tag_error()

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 78 of file schema_validator.cpp.

References at(), and print_output().

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

◆ print_output()

static void schema_validation::print_output ( const std::string &  message,
bool  flag_exception = false 
)
static

◆ wrong_path_error()

static void schema_validation::wrong_path_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 119 of file schema_validator.cpp.

References at(), and print_output().

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

◆ wrong_tag_error()

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

◆ wrong_type_error()

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

Definition at line 131 of file schema_validator.cpp.

References at(), and print_output().

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

◆ wrong_value_error()

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 107 of file schema_validator.cpp.

References at(), and print_output().

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

Variable Documentation

◆ any_tag

wml_tag schema_validation::any_tag("", 0, -1, "", true)

◆ log_validation

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