87 std::vector<CMakefileVariable *>& Macros(
void);
88 std::vector<CMakefileVariable *>& EnvVars(
void);
91 size_t RulesCount(
void)
const;
108 size_t SectionCount(
void)
const;
114 size_t RulesCount(
const size_t Section = 0);
115 CMakefileRule& GetRule(
const size_t Index,
const size_t Section = 0);
CStringList m_Commands
A list of commands to be executed to build the target.
Definition: makefile.h:54
bool & Multiline(void)
Allows line-wrapping of the list of dependencies.
Definition: makefile.h:60
CString m_Target
Name of a makefile target.
Definition: makefile.h:52
Makefile rule definition.
Definition: makefile.h:49
std::vector< CMakefileVariable * > m_Macros
A list of macro variables in the section.
Definition: makefile.h:74
bool m_Multiline
Allows line-wrapping of variable's value text.
Definition: makefile.h:32
void Show(void)
Prints properties of the macro variable to the standard output.
Definition: makefile.cpp:71
~CMakefileVariable(void)
Destroys macro variable.
Definition: makefile.cpp:34
Makefile macro variable definition.
Definition: makefile.h:27
CStringList & Commands(void)
A list of commands to be executed to build the target.
Definition: makefile.h:59
CMakefileRule m_NullRule
A substitute rule, it is returned when no rule satisfies search conditions.
Definition: makefile.h:78
bool & Multiline(void)
Allows line-wrapping of variable's value text.
Definition: makefile.h:39
Definition: stlstrings.h:98
CStringList & Dependencies(void)
A list of dependencies (prerequirements) for the target.
Definition: makefile.h:58
void SetValue(const CString &NewValue, const int Index=0)
Replaces a string number Index in the value strings with the NewValue string.
Definition: makefile.cpp:44
CMakefileVariable(void)
Creates macro variable.
Definition: makefile.cpp:29
CStringList m_Dependencies
A list of dependencies (prerequirements) for the target.
Definition: makefile.h:53
CStringList & Values(void)
Returns the value of the macro variable as a list of strings.
Definition: makefile.h:35
bool m_Multiline
Allows line-wrapping of the list of dependencies.
Definition: makefile.h:55
CString GetValue(const int Index=0)
Returns a string number Index from the value strings.
Definition: makefile.cpp:39
Definition: stlstrings.h:32
Makefile definition.
Definition: makefile.h:99
CString m_Name
Name of the makefile macro variable.
Definition: makefile.h:30
std::vector< CMakefileVariable * > m_EnvVars
A list of environment variables in the section.
Definition: makefile.h:75
std::vector< CMakefileSection * > m_Sections
A list of makefile sections.
Definition: makefile.h:102
CString & Target(void)
Name of a makefile target.
Definition: makefile.h:57
CStringList m_Text
Plain text representation of the makefile.
Definition: makefile.h:103
CStringList m_Header
Section header, describes makefile section contents.
Definition: makefile.h:73
CString & Name(void)
Returns the name of the macro variable.
Definition: makefile.h:34
void Clear(void)
Resets the macro variable to the initial state.
Definition: makefile.cpp:64
std::vector< CMakefileRule * > m_Rules
A list of makefile rules in the section.
Definition: makefile.h:76
CMakefileVariable m_NullVariable
A substitute variable, it is returned when no variable satisfies search conditions.
Definition: makefile.h:77
CString JoinValues(void)
Returns the variable value as a single string.
Definition: makefile.cpp:53
void AddValue(const CString &NewValue)
Appends a list of value strings with the NewValue string.
Definition: makefile.cpp:59
CStringList m_Values
A list of strings which concatenation gives the actual value of the macro variable.
Definition: makefile.h:31
Makefile section definition.
Definition: makefile.h:70