The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Functions
config.hpp File Reference

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"
Include dependency graph for config.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)
 

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.

Function Documentation

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

Definition at line 79 of file config.hpp.

References operator==().

Referenced by ng::depcheck::MAKE_ENUM().

std::ostream& operator<< ( std::ostream &  ,
const config  
)
std::ostream& operator<< ( std::ostream &  os,
const config::attribute_value::true_false v 
)
inline

Definition at line 783 of file config.hpp.

References config::attribute_value::true_false::str().

std::ostream& operator<< ( std::ostream &  os,
const config::attribute_value::yes_no v 
)
inline

Definition at line 784 of file config.hpp.

References config::attribute_value::yes_no::str().

bool operator== ( const config ,
const config  
)