The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Functions | Variables
schema_validator.cpp File Reference
#include "serialization/schema_validator.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "serialization/preprocessor.hpp"
#include "serialization/string_utils.hpp"
#include "wml_exception.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 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 void schema_validation::wrong_tag_error (const std::string &file, int line, const std::string &name, const std::string &parent, bool flag_exception)
 
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 void schema_validation::extra_key_error (const std::string &file, int line, const std::string &tag, const std::string &key, bool flag_exception)
 
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 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 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::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)

◆ LOG_VL

#define LOG_VL   LOG_STREAM(info, log_validation)

◆ WRN_VL

#define WRN_VL   LOG_STREAM(warn, log_validation)

Definition at line 30 of file schema_validator.cpp.