61 void Read(
const TiXmlElement *GlobalVariableRoot);
62 void Write(TiXmlElement *GlobalVariableRoot);
78 bool&
Active(
void) {
return m_Active; }
81 size_t Count(
void)
const {
return m_Variables.size(); };
86 void Read(
const TiXmlElement *GlobalVariableSetRoot);
87 void Write(TiXmlElement *GlobalVariableSetRoot);
101 size_t Count(
void)
const {
return m_VariableSets.size(); };
105 void AddDefault(
void);
107 void Read(
const TiXmlElement *GlobalVariableConfigRoot);
108 void Write(TiXmlElement *GlobalVariableConfigRoot);
CString m_Obj
Value of the built-in "Obj" field of the variable.
Definition: cbglobalvar.h:39
CString Lib(void)
Value of the built-in "Lib" field of the variable.
Definition: cbglobalvar.cpp:145
CString & Cflags(void)
Value of the built-in "Cflags" field of the variable.
Definition: cbglobalvar.h:51
CString m_Include
Value of the built-in "Include" field of the variable.
Definition: cbglobalvar.h:37
CGlobalVariable(void)
Creates global compiler variable.
Definition: cbglobalvar.cpp:28
CString m_Lflags
Value of the built-in "Lflags" field of the variable.
Definition: cbglobalvar.h:41
std::vector< CGlobalVariable * > m_Variables
List of global compiler variables.
Definition: cbglobalvar.h:73
CString m_Cflags
Value of the built-in "Cflags" field of the variable.
Definition: cbglobalvar.h:40
size_t Count(void) const
Returns the number of variable sets in configuration.
Definition: cbglobalvar.h:101
Manages global compiler variables configuration.
Definition: cbglobalvar.h:94
std::vector< CGlobalVariableSet * > m_VariableSets
List of variable sets.
Definition: cbglobalvar.h:97
size_t Count(void) const
Returns number of variables.
Definition: cbglobalvar.h:81
CString GetField(const int Index)
Returns name of user-defined field.
Definition: cbglobalvar.cpp:43
CString & Lflags(void)
Value of the built-in "Lflags" field of the variable.
Definition: cbglobalvar.h:52
void Write(TiXmlElement *GlobalVariableRoot)
Writes the global variable settings to an XML document.
Definition: cbglobalvar.cpp:291
CString & Obj(void)
Value of the built-in "Obj" field of the variable.
Definition: cbglobalvar.h:50
CString & Description(void)
Description of the variable.
Definition: cbglobalvar.h:46
bool m_Active
Indicates that this variable set should be defined in makefile.
Definition: cbglobalvar.h:74
CString m_Name
Name of the variable set.
Definition: cbglobalvar.h:72
void Add(const CString &Name, const CString &Value)
Adds new user-defined field.
Definition: cbglobalvar.cpp:173
Definition: stlstrings.h:32
bool & Active(void)
Indicates that this variable set should be defined in makefile.
Definition: cbglobalvar.h:78
CString m_Base
Value of the built-in default field of the variable.
Definition: cbglobalvar.h:36
CString m_Description
Description of the variable.
Definition: cbglobalvar.h:34
static CString Convert(const CString &Value, const int Case=0)
Definition: cbglobalvar.cpp:53
Contains properties of global compiler variables.
Definition: cbglobalvar.h:30
CString & Name(void)
Name of the set.
Definition: cbglobalvar.h:77
int Count(void)
Returns number of user-defined fields.
Definition: cbglobalvar.cpp:38
Manages a set of global compiler variables.
Definition: cbglobalvar.h:69
void Clear(void)
Resets the global compiler variable to the initial state.
Definition: cbglobalvar.cpp:161
void Remove(const CString &Name)
Removes user-defined field.
Definition: cbglobalvar.cpp:201
CString GetValue(const int Index)
Returns value of user-defined field.
Definition: cbglobalvar.cpp:48
CString Base(void)
Value of the built-in default field of the variable.
Definition: cbglobalvar.cpp:120
CString & Name(void)
Name of the variable.
Definition: cbglobalvar.h:45
~CGlobalVariable(void)
Destroys global compiler variable.
Definition: cbglobalvar.cpp:33
CString m_Lib
Value of the built-in "Lib" field of the variable.
Definition: cbglobalvar.h:38
Definition: stlconfig.h:26
void Show(void)
Prints the global compiler variable contents to standard output.
Definition: cbglobalvar.cpp:317
CConfiguration m_Fields
User-defined fields of the global compiler variable.
Definition: cbglobalvar.h:43
void Read(const TiXmlElement *GlobalVariableRoot)
Reads the global variable settings from an XML document.
Definition: cbglobalvar.cpp:206
CString Include(void)
Value of the built-in "Include" field of the variable.
Definition: cbglobalvar.cpp:129
CString m_Name
Name of the variable.
Definition: cbglobalvar.h:33