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

#include <variable.hpp>

Inheritance diagram for config_variable_set:

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

Definition at line 30 of file variable.hpp.

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 75 of file variable.cpp.

References cfg_.

Referenced by 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 65 of file variable.cpp.

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

Member Data Documentation

◆ cfg_

const config& config_variable_set::cfg_
private

Definition at line 28 of file variable.hpp.

Referenced by get_variable_access_read().


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