The Battle for Wesnoth  1.17.14+dev
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
game_config_view Class Reference

#include <game_config_view.hpp>

Public Member Functions

 game_config_view ()
config_array_view child_range (config_key_type key) const
const configfind_child (config_key_type key, const std::string &name, const std::string &value) const
const configchild (config_key_type key) const
const configchild_or_empty (config_key_type key) const
game_config_view merged_children_view (config_key_type key) const
config_array_viewdata ()

Static Public Member Functions

static game_config_view wrap (const config &cfg)

Private Member Functions

 game_config_view (const config &cfg)

Private Attributes

config_array_view cfgs_

Detailed Description

Definition at line 25 of file game_config_view.hpp.

Constructor & Destructor Documentation

◆ game_config_view() [1/2]

game_config_view::game_config_view ( )

Definition at line 29 of file game_config_view.hpp.

Referenced by wrap().

◆ game_config_view() [2/2]

game_config_view::game_config_view ( const config cfg)

Definition at line 55 of file game_config_view.hpp.

References cfgs_.

Member Function Documentation

◆ child()

const config & game_config_view::child ( config_key_type  key) const

◆ child_or_empty()

const config & game_config_view::child_or_empty ( config_key_type  key) const

Definition at line 76 of file game_config_view.cpp.

References cfgs_.

Referenced by help::generate_contents(), and wrap().

◆ child_range()

config_array_view game_config_view::child_range ( config_key_type  key) const

◆ data()

config_array_view& game_config_view::data ( )

◆ find_child()

const config & game_config_view::find_child ( config_key_type  key,
const std::string &  name,
const std::string &  value 
) const

◆ merged_children_view()

game_config_view game_config_view::merged_children_view ( config_key_type  key) const

◆ wrap()

static game_config_view game_config_view::wrap ( const config cfg)

Member Data Documentation

◆ cfgs_

config_array_view game_config_view::cfgs_

The documentation for this class was generated from the following files: