Public Member Functions | Private Attributes

scoped_wml_variable Class Reference

#include <variable.hpp>

Inheritance diagram for scoped_wml_variable:
Inheritance graph
[legend]
Collaboration diagram for scoped_wml_variable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 scoped_wml_variable (const std::string &var_name)
virtual ~scoped_wml_variable ()
const std::string & name () const
virtual void activate ()=0
configstore (const config &var_value=config())
bool activated () const

Private Attributes

config previous_val_
const std::string var_name_
bool activated_

Detailed Description

Definition at line 153 of file variable.hpp.


Constructor & Destructor Documentation

scoped_wml_variable::scoped_wml_variable ( const std::string &  var_name  ) 

Definition at line 468 of file variable.cpp.

References repos.

scoped_wml_variable::~scoped_wml_variable (  )  [virtual]

Definition at line 488 of file variable.cpp.

References activated_, config::child_range(), LOG_NG, previous_val_, repos, and var_name_.

Here is the call graph for this function:


Member Function Documentation

virtual void scoped_wml_variable::activate (  )  [pure virtual]
bool scoped_wml_variable::activated (  )  const [inline]

Definition at line 161 of file variable.hpp.

References activated_.

const std::string& scoped_wml_variable::name (  )  const [inline]

Definition at line 158 of file variable.hpp.

References var_name_.

Referenced by scoped_recall_unit::activate(), and scoped_xy_unit::activate().

Here is the caller graph for this function:

config & scoped_wml_variable::store ( const config var_value = config()  ) 

Definition at line 476 of file variable.cpp.

References activated_, config::add_child(), LOG_NG, previous_val_, repos, and var_name_.

Referenced by scoped_recall_unit::activate(), scoped_weapon_info::activate(), and scoped_xy_unit::activate().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 165 of file variable.hpp.

Referenced by activated(), store(), and ~scoped_wml_variable().

Definition at line 163 of file variable.hpp.

Referenced by store(), and ~scoped_wml_variable().

const std::string scoped_wml_variable::var_name_ [private]

Definition at line 164 of file variable.hpp.

Referenced by name(), store(), and ~scoped_wml_variable().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:15:54 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs