cbp2make
Makefile generation tool for Code::Blocks IDE
|
Manages global compiler variables configuration. More...
#include <cbglobalvar.h>
Public Member Functions | |
void | Clear (void) |
Resets the configuration to the initial state. More... | |
size_t | Count (void) const |
Returns the number of variable sets in configuration. More... | |
CGlobalVariableSet * | Get (const size_t Index) |
Returns a set of variables by index. More... | |
CGlobalVariableSet * | Find (const CString &Name) |
Returns a set of variables by name. More... | |
CGlobalVariableSet * | Add (const CString &Name) |
Adds new set of global compiler variables. More... | |
void | AddDefault (void) |
Adds the 'default' set of variables. More... | |
void | Remove (const CString &Name) |
Removes a set of variables. More... | |
void | Read (const TiXmlElement *GlobalVariableConfigRoot) |
Reads the global compiler variable configuration from an XML document. More... | |
void | Write (TiXmlElement *GlobalVariableConfigRoot) |
Writes the global compiler variable configuration to an XML document. More... | |
void | Show (void) |
Prints the global compiler variable configuration contents to standard output. More... | |
CGlobalVariableConfig (void) | |
Creates global compiler variable configuration. More... | |
~CGlobalVariableConfig (void) | |
Destroys global compiler variable configuration. More... | |
Private Attributes | |
std::vector< CGlobalVariableSet * > | m_VariableSets |
List of variable sets. More... | |
Manages global compiler variables configuration.
Configuration consists of a number of sets of variables.
CGlobalVariableConfig::CGlobalVariableConfig | ( | void | ) |
Creates global compiler variable configuration.
CGlobalVariableConfig::~CGlobalVariableConfig | ( | void | ) |
Destroys global compiler variable configuration.
CGlobalVariableConfig::Add | ( | const CString & | Name | ) |
Adds new set of global compiler variables.
Name | name of the set. |
If a variable set with name Name already exists, new variable set will not be created.
CGlobalVariableConfig::AddDefault | ( | void | ) |
Adds the 'default' set of variables.
The default set cannot be removed. However, it can be cleared by a call Remove("default") which removes the existing default set and creates an empty default set again right away.
CGlobalVariableConfig::Clear | ( | void | ) |
Resets the configuration to the initial state.
|
inline |
Returns the number of variable sets in configuration.
CGlobalVariableConfig::Find | ( | const CString & | Name | ) |
Returns a set of variables by name.
Name | name of a set of variables. |
CGlobalVariableConfig::Get | ( | const size_t | Index | ) |
Returns a set of variables by index.
Index | index of a set of variables. |
CGlobalVariableConfig::Read | ( | const TiXmlElement * | GlobalVariableConfigRoot | ) |
Reads the global compiler variable configuration from an XML document.
GlobalVariableConfigRoot | an element of XML document. |
CGlobalVariableConfig::Remove | ( | const CString & | Name | ) |
Removes a set of variables.
Name | name of set of global compiler variables. |
CGlobalVariableConfig::Show | ( | void | ) |
Prints the global compiler variable configuration contents to standard output.
CGlobalVariableConfig::Write | ( | TiXmlElement * | GlobalVariableConfigRoot | ) |
Writes the global compiler variable configuration to an XML document.
GlobalVariableConfigRoot | an element of XML document. |
|
private |
List of variable sets.