The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
game_config::scoped_preproc_define_internal< T > Class Template Reference

Used to set and unset scoped defines to preproc_map. More...

#include <config_cache.hpp>

Inheritance diagram for game_config::scoped_preproc_define_internal< T >:
Inheritance graph

Public Member Functions

 scoped_preproc_define_internal (const std::string &name, bool add=true)
 Adds normal preproc define. More...
 
 ~scoped_preproc_define_internal ()
 This removes preproc define from cacher. More...
 

Protected Attributes

std::string name_
 
bool add_
 

Detailed Description

template<typename T>
class game_config::scoped_preproc_define_internal< T >

Used to set and unset scoped defines to preproc_map.

This is preferred form to set defines that aren't global

Definition at line 41 of file config_cache.hpp.

Constructor & Destructor Documentation

template<typename T>
game_config::scoped_preproc_define_internal< T >::scoped_preproc_define_internal ( const std::string name,
bool  add = true 
)
inline

Adds normal preproc define.

Parameters
namename of preproc define to add.
addtrue if we should add this.

Definition at line 50 of file config_cache.hpp.

This removes preproc define from cacher.

Definition at line 60 of file config_cache.hpp.

Member Data Documentation

template<typename T>
bool game_config::scoped_preproc_define_internal< T >::add_
protected
template<typename T>
std::string game_config::scoped_preproc_define_internal< T >::name_
protected

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