Definitions for the interface to Wesnoth Markup Language (WML). More...
#include "global.hpp"
#include <climits>
#include <ctime>
#include <iosfwd>
#include <iterator>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include <boost/exception/exception.hpp>
#include <boost/variant/apply_visitor.hpp>
#include <boost/variant/variant.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include "exceptions.hpp"
#include "tstring.hpp"
#include "utils/iterable_pair.hpp"
Go to the source code of this file.
Classes | |
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 |
class | config::attribute_value |
Variant for storing WML attributes. More... | |
class | config::attribute_value::true_false |
A wrapper for bool to get the correct streaming ("true"/"false"). More... | |
class | config::attribute_value::yes_no |
A wrapper for bool to get the correct streaming ("yes"/"no"). More... | |
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 |
class | variable_set |
Functions | |
bool | operator== (const config &, const config &) |
bool | operator!= (const config &a, const config &b) |
std::ostream & | operator<< (std::ostream &, const config &) |
std::ostream & | operator<< (std::ostream &os, const config::attribute_value::true_false &v) |
std::ostream & | operator<< (std::ostream &os, const config::attribute_value::yes_no &v) |
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.
Definition at line 79 of file config.hpp.
References operator==().
Referenced by ng::depcheck::MAKE_ENUM().
std::ostream& operator<< | ( | std::ostream & | , |
const config & | |||
) |
Definition at line 1447 of file config.cpp.
References config::all_children_range(), config::attribute_range(), and config::child().
|
inline |
Definition at line 783 of file config.hpp.
References config::attribute_value::true_false::str().
|
inline |
Definition at line 784 of file config.hpp.
References config::attribute_value::yes_no::str().
Definition at line 1527 of file config.cpp.
References config::all_children_range(), config::check_valid(), and config::values.
Referenced by ng::depcheck::MAKE_ENUM(), and operator!=().