28 : name_(cfg[
"name"].str())
29 , type_(cfg[
"type"].str())
32 , fuzzy_(name_.find_first_of(
"*?") !=
std::string::npos)
46 for(
int j = 0; j <
level; j++) {
50 os << s <<
"[key]\n" << s <<
" name=\"" <<
name_ <<
"\"\n" << s <<
" type=\"" <<
type_ <<
"\"\n";
53 os << s <<
" mandatory=\"true\"\n";
55 os << s <<
" default=" <<
default_ <<
"\n";
60 os << s <<
"[/key]\n";
bool has_attribute(config_key_type key) const
bool is_mandatory() const
Definitions for the interface to Wesnoth Markup Language (WML).
std::string default_
Default value.
bool mandatory_
Shows, if key is a mandatory key.
std::string name_
Name of key.
std::string type_
Type 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...
static map_location::DIRECTION s
This file contains object "key", which is used to store information about keys while annotation parsi...
A config object defines a single node in a WML file, with access to child nodes.