The Battle for Wesnoth  1.15.0+dev
Classes | Macros | Functions | Variables
config.cpp File Reference

Routines related to configuration-files / WML. More...

#include "config.hpp"
#include "formatter.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "utils/const_clone.hpp"
#include "utils/functional.hpp"
#include "deprecation.hpp"
#include "game_version.hpp"
#include "serialization/string_utils.hpp"
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <istream>
#include <locale>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/get.hpp>
#include <boost/variant/static_visitor.hpp>
#include <boost/variant/variant.hpp>
Include dependency graph for config.cpp:

Go to the source code of this file.

Classes

struct  config_implementation
 

Macros

#define ERR_CF   LOG_STREAM(err, log_config)
 
#define DBG_CF   LOG_STREAM(debug, log_config)
 

Functions

std::ostream & operator<< (std::ostream &outstream, const config &cfg)
 
void swap (config &lhs, config &rhs)
 Implement non-member swap function for std::swap (calls config::swap). More...
 
bool operator== (const config &a, const config &b)
 

Variables

static lg::log_domain log_config ("config")
 

Detailed Description

Routines related to configuration-files / WML.

Definition in file config.cpp.

Macro Definition Documentation

◆ DBG_CF

#define DBG_CF   LOG_STREAM(debug, log_config)

Definition at line 46 of file config.cpp.

Referenced by config::child(), and config::find_child().

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 45 of file config.cpp.

Referenced by config::remove_child().

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  outstream,
const config cfg 
)

Definition at line 1286 of file config.cpp.

References config::all_children_range(), config::attribute_range(), config::child(), and i.

Referenced by operator!=().

◆ operator==()

bool operator== ( const config a,
const config b 
)

◆ swap()

void swap ( config lhs,
config rhs 
)

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static