The Battle for Wesnoth  1.15.5+dev
Classes | Namespaces | Typedefs | Functions
config.hpp File Reference

Definitions for the interface to Wesnoth Markup Language (WML). More...

#include "global.hpp"
#include <climits>
#include <ctime>
#include <functional>
#include <iosfwd>
#include <iterator>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include <type_traits>
#include <memory>
#include <boost/exception/exception.hpp>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/variant.hpp>
#include <boost/range/iterator_range.hpp>
#include "config_attribute_value.hpp"
#include "exceptions.hpp"
#include <boost/utility/string_ref.hpp>
Include dependency graph for config.hpp:

Go to the source code of this file.


class  config
 A config object defines a single node in a WML file, with access to child nodes. More...
struct  config::child_iterator
struct  config::const_child_iterator
struct  config::attribute_iterator
struct  config::const_attribute_iterator
struct  config::error
struct  config::child_pos
struct  config::any_child
struct  config::all_children_iterator
struct  config::all_children_iterator::arrow_helper
struct  config::const_all_children_iterator
struct  config::const_all_children_iterator::arrow_helper
struct  detail::config_construct_unpacker< T >
struct  detail::config_construct_unpacker<>
struct  detail::config_construct_unpacker< K, V, Rest... >
struct  detail::config_construct_unpacker< T, config, Rest... >
struct  detail::config_construct_unpacker< T, config &, Rest... >




using config_key_type = boost::string_ref


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

Detailed Description

Definitions for the interface to Wesnoth Markup Language (WML).

This module defines the interface to Wesnoth Markup Language (WML). WML is a simple hierarchical text-based file format. The format is defined in Wiki, under BuildingScenariosWML

All configuration files are stored in this format, and data is sent across the network in this format. It is thus used extensively throughout the game.

Definition in file config.hpp.

Typedef Documentation

◆ config_key_type

using config_key_type = boost::string_ref

Definition at line 57 of file config.hpp.

Function Documentation

◆ operator!=()

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

Definition at line 64 of file config.hpp.

References operator<<(), and operator==().

Referenced by decrement_chunk_usage(), and ng::depcheck::MAKE_ENUM().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const config  

Definition at line 1299 of file config.cpp.

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

Referenced by operator!=().

◆ operator==()

bool operator== ( const config ,
const config  

◆ swap()

void swap ( config lhs,
config rhs