The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions | Variables
schema_validator.cpp File Reference
#include "serialization/schema_validator.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "serialization/preprocessor.hpp"
#include "serialization/schema/type.hpp"
#include "serialization/string_utils.hpp"
#include "utils/back_edge_detector.hpp"
#include "utils/general.hpp"
#include "wml_exception.hpp"
#include <boost/graph/adjacency_list.hpp>
#include <tuple>
Include dependency graph for schema_validator.cpp:

Go to the source code of this file.

Namespaces

 schema_validation
 

Macros

#define ERR_VL   LOG_STREAM(err, log_validation)
 
#define WRN_VL   LOG_STREAM(warn, log_validation)
 
#define LOG_VL   LOG_STREAM(info, log_validation)
 

Functions

static std::string schema_validation::at (const std::string &file, int line)
 
static void schema_validation::print_output (const std::string &message, bool flag_exception=false)
 
static std::string 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 std::string schema_validation::wrong_tag_error (const std::string &file, int line, const std::string &name, const std::string &parent, bool flag_exception)
 
static std::string 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 std::string schema_validation::extra_key_error (const std::string &file, int line, const std::string &tag, const std::string &key, bool flag_exception)
 
static std::string schema_validation::missing_key_error (const std::string &file, int line, const std::string &tag, const std::string &key, bool flag_exception)
 
static std::string schema_validation::wrong_value_error (const std::string &file, int line, const std::string &tag, const std::string &key, const std::string &value, const std::string &expected, bool flag_exception)
 
static std::string schema_validation::inheritance_cycle_error (const std::string &file, int line, const std::string &tag, const std::string &schema_name, const std::string &value, bool flag_exception)
 
static std::string schema_validation::link_cycle_error (const std::string &file, int line, const std::string &tag, const std::string &value, bool flag_exception)
 
static std::string schema_validation::missing_super_error (const std::string &file, int line, const std::string &tag, const std::string &schema_name, const std::string &super, bool flag_exception)
 
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 void schema_validation::duplicate_tag_error (const std::string &file, int line, const std::string &tag, const std::string &pat, const std::string &value, bool flag_exception)
 
static void schema_validation::duplicate_key_error (const std::string &file, int line, const std::string &tag, const std::string &pat, const std::string &value, bool flag_exception)
 
static void schema_validation::inheritance_loop_error (const std::string &file, int line, const std::string &tag, const std::string &key, const std::string &value, int index, bool flag_exception)
 
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)
 

Variables

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

Macro Definition Documentation

◆ ERR_VL

#define ERR_VL   LOG_STREAM(err, log_validation)

Definition at line 33 of file schema_validator.cpp.

◆ LOG_VL

#define LOG_VL   LOG_STREAM(info, log_validation)

Definition at line 35 of file schema_validator.cpp.

◆ WRN_VL

#define WRN_VL   LOG_STREAM(warn, log_validation)

Definition at line 34 of file schema_validator.cpp.