29 : name_(cfg[
"name"].str())
30 , type_(cfg[
"type"].str())
33 , fuzzy_(name_.find_first_of(
"*?") != std::string::npos)
47 for(
int j = 0; j <
level; j++) {
51 os <<
s <<
"[key]\n" <<
s <<
" name=\"" <<
name_ <<
"\"\n" <<
s <<
" type=\"" <<
type_ <<
"\"\n";
54 os <<
s <<
" mandatory=\"true\"\n";
56 os <<
s <<
" default=" <<
default_ <<
"\n";
61 os <<
s <<
"[/key]\n";
A config object defines a single node in a WML file, with access to child nodes.
bool has_attribute(config_key_type key) const
bool mandatory_
Shows, if key is a mandatory key.
std::string type_
Type of key.
std::string default_
Default value.
bool is_mandatory() const
std::string name_
Name of key.
void print(std::ostream &os, int level) const
is used to print key info the format is next [key] name="name" type="type" default="default" mandator...
Definitions for the interface to Wesnoth Markup Language (WML).
This file contains object "key", which is used to store information about keys while annotation parsi...
static map_location::direction s