The Battle for Wesnoth  1.15.3+dev
Public Member Functions | Private Attributes | List of all members
config_variable_set Class Reference

#include <variable.hpp>

Inheritance diagram for config_variable_set:
Inheritance graph

Public Member Functions

 config_variable_set (const config &cfg)
 
virtual config::attribute_value get_variable_const (const std::string &id) const
 
virtual variable_access_const get_variable_access_read (const std::string &varname) const
 
- Public Member Functions inherited from variable_set
virtual ~variable_set ()
 

Private Attributes

const configcfg_
 

Detailed Description

Definition at line 27 of file variable.hpp.

Constructor & Destructor Documentation

◆ config_variable_set()

config_variable_set::config_variable_set ( const config cfg)
inline

Member Function Documentation

◆ get_variable_access_read()

variable_access_const config_variable_set::get_variable_access_read ( const std::string &  varname) const
virtual

Implements variable_set.

Definition at line 76 of file variable.cpp.

References cfg_, and vconfig::default_empty_config.

Referenced by config_variable_set(), and get_variable_const().

◆ get_variable_const()

config::attribute_value config_variable_set::get_variable_const ( const std::string &  id) const
virtual

Implements variable_set.

Definition at line 66 of file variable.cpp.

References variable_info< V >::as_scalar(), ERR_NG, and get_variable_access_read().

Referenced by config_variable_set().

Member Data Documentation

◆ cfg_

const config& config_variable_set::cfg_
private

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