The Battle for Wesnoth  1.15.2+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
 
- Public Member Functions inherited from variable_set
virtual ~variable_set ()
 

Private Attributes

const configcfg_
 

Detailed Description

Definition at line 26 of file variable.hpp.

Constructor & Destructor Documentation

◆ config_variable_set()

config_variable_set::config_variable_set ( const config cfg)
inline

Definition at line 29 of file variable.hpp.

References get_variable_const().

Member Function Documentation

◆ get_variable_const()

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

Implements variable_set.

Definition at line 58 of file variable.cpp.

References variable_info< V >::as_scalar(), cfg_, vconfig::default_empty_config, and ERR_NG.

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: