87 std::vector<CMakefileVariable *>&
Macros(
void);
88 std::vector<CMakefileVariable *>&
EnvVars(
void);
CString JoinDependencies(void)
Returns dependencies as a single string.
Definition: makefile.cpp:97
size_t RulesCount(const size_t Section=0)
Counts makefile rules in a section number Section.
Definition: makefile.cpp:335
size_t SectionCount(void) const
Counts makefile sections.
Definition: makefile.cpp:284
CStringList & Header(const size_t Section=0)
Header of a makefile section number Section.
Definition: makefile.cpp:312
CStringList m_Commands
A list of commands to be executed to build the target.
Definition: makefile.h:54
CMakefile(void)
Creates makefile.
Definition: makefile.cpp:261
std::vector< CMakefileVariable * > & EnvVars(void)
A list of environment variables in the section.
Definition: makefile.cpp:169
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
CMakefileVariable * FindEnvVar(const CString &Name)
Searches environment variables by name.
Definition: makefile.cpp:184
CMakefileVariable & AddMacro(const CString &Name, const CString &Value, const size_t Section=0)
Creates a new macro variable and adds it to a section number Section.
Definition: makefile.cpp:325
Makefile rule definition.
Definition: makefile.h:49
CMakefileVariable & AddMacro(const CString &Name, const CString &Value)
Creates a new macro variable and adds it to the section.
Definition: makefile.cpp:194
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
~CMakefileSection(void)
Destroys makefile section.
Definition: makefile.cpp:117
CMakefileRule(void)
Creates makefile rule.
Definition: makefile.cpp:79
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
void Show(void)
Prints contents of the makefile to the standard output.
Definition: makefile.cpp:279
bool & Multiline(void)
Allows line-wrapping of variable's value text.
Definition: makefile.h:39
Definition: stlstrings.h:98
~CMakefileRule(void)
Destroys makefile rule.
Definition: makefile.cpp:84
std::vector< CMakefileVariable * > & Macros(void)
A list of macro variables in the section.
Definition: makefile.cpp:164
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
CMakefileRule & GetRule(const size_t Index, const size_t Section=0)
Returns makefile rule by the Index number in a section number Section.
Definition: makefile.cpp:340
CMakefileVariable(void)
Creates macro variable.
Definition: makefile.cpp:29
CStringList m_Dependencies
A list of dependencies (prerequirements) for the target.
Definition: makefile.h:53
CMakefileSection & AddSection(size_t *Section=0)
Creates a new makefile section and adds it to the makefile.
Definition: makefile.cpp:317
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
CMakefileSection & GetSection(const size_t Section)
Returns a makefile section by a number.
Definition: makefile.cpp:289
~CMakefile(void)
Destroys makefile.
Definition: makefile.cpp:267
CString GetValue(const int Index=0)
Returns a string number Index from the value strings.
Definition: makefile.cpp:39
Definition: stlstrings.h:32
void Clear(void)
Resets the makefile section to the initial state.
Definition: makefile.cpp:122
void Clear(void)
Resets the makefile rule to the initial state.
Definition: makefile.cpp:89
CMakefileRule & GetRule(const size_t Index)
Returns makefile rule by the Index number.
Definition: makefile.cpp:233
CMakefileVariable & AddEnvVar(const CString &Name, const CString &Value, const size_t Section=0)
Creates a new environment variable and adds it to a section number Section.
Definition: makefile.cpp:330
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
CMakefileRule & AddRule(const CString &TargetName, const size_t Section=0)
Creates a new makefile rule and adds it to a section number Section.
Definition: makefile.cpp:345
std::vector< CMakefileSection * > m_Sections
A list of makefile sections.
Definition: makefile.h:102
CStringList & Update(void)
Creates plain text representation of the makefile from objects.
Definition: makefile.cpp:355
CStringList & GetText(void)
Returns a plain text representation of the makefile.
Definition: makefile.cpp:350
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
void Show(void)
Prints the makefile rule properties to the standard output.
Definition: makefile.cpp:103
CStringList m_Header
Section header, describes makefile section contents.
Definition: makefile.h:73
CMakefileVariable & AddEnvVar(const CString &Name, const CString &Value)
Creates a new environment variable and adds it to the section.
Definition: makefile.cpp:211
CMakefileVariable * FindMacro(const CString &Name)
Searches macro variables by name.
Definition: makefile.cpp:174
CString & Name(void)
Returns the name of the macro variable.
Definition: makefile.h:34
void Clear(void)
Resets the makefile to the initial state.
Definition: makefile.cpp:272
CMakefileRule & AddRule(const CString &TargetName)
Creates a new makefile rule and adds it to the section.
Definition: makefile.cpp:242
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
CMakefileSection(void)
Creates makefile section.
Definition: makefile.cpp:112
CMakefileVariable m_NullVariable
A substitute variable, it is returned when no variable satisfies search conditions.
Definition: makefile.h:77
size_t RulesCount(void) const
Counts makefile rules in the section.
Definition: makefile.cpp:228
CStringList & Header(void)
Section header, describes makefile section contents.
Definition: makefile.cpp:159
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
void Show(void)
Prints contents of the makefile section to the standard output.
Definition: makefile.cpp:133