A config object defines a single node in a WML file, with access to child nodes.
A class grating read only view to a vector of config objects, viewed as one config with all children ...
const config & child_or_empty(config_key_type key) const
const config & mandatory_child(config_key_type key) const
game_config_view(const config &cfg)
optional_const_config optional_child(config_key_type key) const
optional_const_config find_child(config_key_type key, const std::string &name, const std::string &value) const
static game_config_view wrap(const config &cfg)
config_array_view child_range(config_key_type key) const
config_array_view & data()
const config & find_mandatory_child(config_key_type key, const std::string &name, const std::string &value) const
game_config_view merged_children_view(config_key_type key) const
Definitions for the interface to Wesnoth Markup Language (WML).
std::string_view config_key_type
std::vector< std::reference_wrapper< const config > > config_array_view