The Battle for Wesnoth  1.19.5+dev
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 "deprecation.hpp"
#include "game_version.hpp"
#include "serialization/string_utils.hpp"
#include "utils/general.hpp"
#include <algorithm>
#include <cstring>
#include <iterator>
Include dependency graph for config.cpp:

Go to the source code of this file.

Macros

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

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")
 
static lg::log_domain log_wml ("wml")
 

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 38 of file config.cpp.

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 37 of file config.cpp.

◆ ERR_WML

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 41 of file config.cpp.

Function Documentation

◆ operator<<()

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

Definition at line 1247 of file config.cpp.

References config::all_children_view(), config::attribute_range(), and i.

◆ operator==()

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

Definition at line 1362 of file config.cpp.

Referenced by operator!=().

◆ swap()

void swap ( config lhs,
config rhs 
)

Variable Documentation

◆ log_config

lg::log_domain log_config("config") ( "config"  )
static

◆ log_wml

lg::log_domain log_wml("wml") ( "wml"  )
static