The Battle for Wesnoth  1.17.0-dev
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>

Public Member Functions

 scoped_preproc_define_internal (const scoped_preproc_define_internal &)=delete
scoped_preproc_define_internaloperator= (const scoped_preproc_define_internal &)=delete
 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

◆ scoped_preproc_define_internal() [1/2]

◆ scoped_preproc_define_internal() [2/2]

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

Adds normal preproc define.

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

Definition at line 53 of file config_cache.hpp.

◆ ~scoped_preproc_define_internal()

This removes preproc define from cacher.

Definition at line 63 of file config_cache.hpp.

Member Function Documentation

◆ operator=()

Member Data Documentation

◆ add_

template<typename T>
bool game_config::scoped_preproc_define_internal< T >::add_

◆ name_

template<typename T>
std::string game_config::scoped_preproc_define_internal< T >::name_

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