cbp2make
Makefile generation tool for Code::Blocks IDE
|
Contains properties of global compiler variables. More...
#include <cbglobalvar.h>
Public Member Functions | |
CString & | Name (void) |
Name of the variable. More... | |
CString & | Description (void) |
Description of the variable. More... | |
CString | Base (void) |
Value of the built-in default field of the variable. More... | |
CString | Include (void) |
Value of the built-in "Include" field of the variable. More... | |
CString | Lib (void) |
Value of the built-in "Lib" field of the variable. More... | |
CString & | Obj (void) |
Value of the built-in "Obj" field of the variable. More... | |
CString & | Cflags (void) |
Value of the built-in "Cflags" field of the variable. More... | |
CString & | Lflags (void) |
Value of the built-in "Lflags" field of the variable. More... | |
int | Count (void) |
Returns number of user-defined fields. More... | |
CString | GetField (const int Index) |
Returns name of user-defined field. More... | |
CString | GetValue (const int Index) |
Returns value of user-defined field. More... | |
void | Clear (void) |
Resets the global compiler variable to the initial state. More... | |
void | Add (const CString &Name, const CString &Value) |
Adds new user-defined field. More... | |
void | Remove (const CString &Name) |
Removes user-defined field. More... | |
void | Read (const TiXmlElement *GlobalVariableRoot) |
Reads the global variable settings from an XML document. More... | |
void | Write (TiXmlElement *GlobalVariableRoot) |
Writes the global variable settings to an XML document. More... | |
void | Show (void) |
Prints the global compiler variable contents to standard output. More... | |
CGlobalVariable (void) | |
Creates global compiler variable. More... | |
~CGlobalVariable (void) | |
Destroys global compiler variable. More... | |
Static Public Member Functions | |
static CString | Convert (const CString &Value, const int Case=0) |
Private Attributes | |
CString | m_Name |
Name of the variable. More... | |
CString | m_Description |
Description of the variable. More... | |
CString | m_Base |
Value of the built-in default field of the variable. More... | |
CString | m_Include |
Value of the built-in "Include" field of the variable. More... | |
CString | m_Lib |
Value of the built-in "Lib" field of the variable. More... | |
CString | m_Obj |
Value of the built-in "Obj" field of the variable. More... | |
CString | m_Cflags |
Value of the built-in "Cflags" field of the variable. More... | |
CString | m_Lflags |
Value of the built-in "Lflags" field of the variable. More... | |
CConfiguration | m_Fields |
User-defined fields of the global compiler variable. More... | |
Contains properties of global compiler variables.
Global compiler variables store installation-specific file paths and build options.
CGlobalVariable::CGlobalVariable | ( | void | ) |
Creates global compiler variable.
CGlobalVariable::~CGlobalVariable | ( | void | ) |
Destroys global compiler variable.
Adds new user-defined field.
Name | field name. |
Value | field value. |
CGlobalVariable::Base | ( | void | ) |
Value of the built-in default field of the variable.
|
inline |
Value of the built-in "Cflags" field of the variable.
CGlobalVariable::Clear | ( | void | ) |
Resets the global compiler variable to the initial state.
CGlobalVariable::Count | ( | void | ) |
Returns number of user-defined fields.
|
inline |
Description of the variable.
CGlobalVariable::GetField | ( | const int | Index | ) |
Returns name of user-defined field.
Index | index of user-defined field. |
CGlobalVariable::GetValue | ( | const int | Index | ) |
Returns value of user-defined field.
Index | index of user-defined field. |
CGlobalVariable::Include | ( | void | ) |
Value of the built-in "Include" field of the variable.
|
inline |
Value of the built-in "Lflags" field of the variable.
CGlobalVariable::Lib | ( | void | ) |
Value of the built-in "Lib" field of the variable.
|
inline |
Name of the variable.
|
inline |
Value of the built-in "Obj" field of the variable.
CGlobalVariable::Read | ( | const TiXmlElement * | GlobalVariableRoot | ) |
Reads the global variable settings from an XML document.
GlobalVariableRoot | an element of XML document. |
CGlobalVariable::Remove | ( | const CString & | Name | ) |
Removes user-defined field.
Name | field name. |
CGlobalVariable::Show | ( | void | ) |
Prints the global compiler variable contents to standard output.
CGlobalVariable::Write | ( | TiXmlElement * | GlobalVariableRoot | ) |
Writes the global variable settings to an XML document.
GlobalVariableRoot | an element of XML document. |
|
private |
Value of the built-in default field of the variable.
When a global variable field is not specified, this value should used as variable's value. The base field usually points to root directory of a library.
|
private |
Value of the built-in "Cflags" field of the variable.
|
private |
Description of the variable.
|
private |
User-defined fields of the global compiler variable.
|
private |
Value of the built-in "Include" field of the variable.
|
private |
Value of the built-in "Lflags" field of the variable.
|
private |
Value of the built-in "Lib" field of the variable.
|
private |
Name of the variable.
|
private |
Value of the built-in "Obj" field of the variable.