cbp2make
Makefile generation tool for Code::Blocks IDE
|
Makefile macro variable definition. More...
#include <makefile.h>
Public Member Functions | |
CString & | Name (void) |
Returns the name of the macro variable. More... | |
CStringList & | Values (void) |
Returns the value of the macro variable as a list of strings. More... | |
CString | GetValue (const int Index=0) |
Returns a string number Index from the value strings. More... | |
void | SetValue (const CString &NewValue, const int Index=0) |
Replaces a string number Index in the value strings with the NewValue string. More... | |
void | AddValue (const CString &NewValue) |
Appends a list of value strings with the NewValue string. More... | |
bool & | Multiline (void) |
Allows line-wrapping of variable's value text. More... | |
CString | JoinValues (void) |
Returns the variable value as a single string. More... | |
void | Clear (void) |
Resets the macro variable to the initial state. More... | |
void | Show (void) |
Prints properties of the macro variable to the standard output. More... | |
CMakefileVariable (void) | |
Creates macro variable. More... | |
~CMakefileVariable (void) | |
Destroys macro variable. More... | |
Private Attributes | |
CString | m_Name |
Name of the makefile macro variable. More... | |
CStringList | m_Values |
A list of strings which concatenation gives the actual value of the macro variable. More... | |
bool | m_Multiline |
Allows line-wrapping of variable's value text. More... | |
Makefile macro variable definition.
Manages variable properties and generates its text representation.
CMakefileVariable::CMakefileVariable | ( | void | ) |
Creates macro variable.
CMakefileVariable::~CMakefileVariable | ( | void | ) |
Destroys macro variable.
void CMakefileVariable::AddValue | ( | const CString & | NewValue | ) |
Appends a list of value strings with the NewValue string.
NewValue | a new value string. |
void CMakefileVariable::Clear | ( | void | ) |
Resets the macro variable to the initial state.
CString CMakefileVariable::GetValue | ( | const int | Index = 0 | ) |
Returns a string number Index from the value strings.
Index | a number of the value string. |
CString CMakefileVariable::JoinValues | ( | void | ) |
Returns the variable value as a single string.
The value strings CMakefileVariable::m_Values are joined with space character if multiline mode is disabled or with ' \\\n\t'
(space backslash eol tab) sequence otherwise.
|
inline |
Allows line-wrapping of variable's value text.
|
inline |
Returns the name of the macro variable.
void CMakefileVariable::SetValue | ( | const CString & | NewValue, |
const int | Index = 0 |
||
) |
Replaces a string number Index in the value strings with the NewValue string.
NewValue | a new value of the value string. |
Index | a number of the value string. |
void CMakefileVariable::Show | ( | void | ) |
Prints properties of the macro variable to the standard output.
|
inline |
Returns the value of the macro variable as a list of strings.
|
private |
Allows line-wrapping of variable's value text.
|
private |
Name of the makefile macro variable.
|
private |
A list of strings which concatenation gives the actual value of the macro variable.