|
cbp2make
Makefile generation tool for Code::Blocks IDE
|
Manages a set of global compiler variables. More...
#include <cbglobalvar.h>
Public Member Functions | |
| CString & | Name (void) |
| Name of the set. More... | |
| bool & | Active (void) |
| Indicates that this variable set should be defined in makefile. More... | |
| void | Clear (void) |
| Resets the set of variables to the initial state. More... | |
| size_t | Count (void) const |
| Returns number of variables. More... | |
| CGlobalVariable * | Get (const size_t Index) |
| Returns a variable by index. More... | |
| CGlobalVariable * | Find (const CString &Name) |
| Returns a variable by name. More... | |
| CGlobalVariable * | Add (const CString &Name, const CString &Description="") |
| Adds new variable with name Name and description Description. More... | |
| void | Remove (const CString &Name) |
| Removes variable with name Name. More... | |
| void | Read (const TiXmlElement *GlobalVariableSetRoot) |
| Reads the global variable set settings from an XML document. More... | |
| void | Write (TiXmlElement *GlobalVariableSetRoot) |
| Writes the global variable set settings to an XML document. More... | |
| void | Show (void) |
| Prints the global compiler variable set contents to standard output. More... | |
| CGlobalVariableSet (void) | |
| Creates global compiler variable set. More... | |
| ~CGlobalVariableSet (void) | |
| Destroys global compiler variable set. More... | |
Private Attributes | |
| CString | m_Name |
| Name of the variable set. More... | |
| std::vector< CGlobalVariable * > | m_Variables |
| List of global compiler variables. More... | |
| bool | m_Active |
| Indicates that this variable set should be defined in makefile. More... | |
Manages a set of global compiler variables.
| CGlobalVariableSet::CGlobalVariableSet | ( | void | ) |
Creates global compiler variable set.
| CGlobalVariableSet::~CGlobalVariableSet | ( | void | ) |
Destroys global compiler variable set.
|
inline |
Indicates that this variable set should be defined in makefile.
Adds new variable with name Name and description Description.
| Name | name of the variable. |
| Description | description of the variable (optional). |
If a variable with name Name already exists, new variable will not be created.
| CGlobalVariableSet::Clear | ( | void | ) |
Resets the set of variables to the initial state.
|
inline |
Returns number of variables.
| CGlobalVariableSet::Find | ( | const CString & | Name) |
Returns a variable by name.
| Name | name of a variable. |
| CGlobalVariableSet::Get | ( | const size_t | Index) |
Returns a variable by index.
| Index | index of a variable. |
|
inline |
Name of the set.
| CGlobalVariableSet::Read | ( | const TiXmlElement * | GlobalVariableSetRoot) |
Reads the global variable set settings from an XML document.
| GlobalVariableSetRoot | an element of XML document. |
| CGlobalVariableSet::Remove | ( | const CString & | Name) |
Removes variable with name Name.
| Name | name of a variable. |
| CGlobalVariableSet::Show | ( | void | ) |
Prints the global compiler variable set contents to standard output.
| CGlobalVariableSet::Write | ( | TiXmlElement * | GlobalVariableSetRoot) |
Writes the global variable set settings to an XML document.
| GlobalVariableSetRoot | an element of XML document. |
|
private |
Indicates that this variable set should be defined in makefile.
|
private |
Name of the variable set.
|
private |
List of global compiler variables.
1.8.4