6 #ifndef PROJECTLOADER_H 7 #define PROJECTLOADER_H 12 #define PROJECT_FILE_VERSION_MAJOR 1 13 #define PROJECT_FILE_VERSION_MINOR 6 47 bool Open(
const wxString& filename, TiXmlElement** ppExtensions);
55 bool Save(
const wxString& filename, TiXmlElement* pExtensions);
64 bool ExportTargetAsProject(
const wxString& filename,
const wxString& onlyTarget, TiXmlElement* pExtensions);
72 void DoProjectOptions(TiXmlElement* parentNode);
73 void DoCompilerOptions(TiXmlElement* parentNode,
ProjectBuildTarget* target =
nullptr);
74 void DoResourceCompilerOptions(TiXmlElement* parentNode,
ProjectBuildTarget* target =
nullptr);
76 void DoIncludesOptions(TiXmlElement* parentNode,
ProjectBuildTarget* target =
nullptr);
80 void DoVirtualTargets(TiXmlElement* parentNode);
82 void DoBuild(TiXmlElement* parentNode);
83 void DoBuildTarget(TiXmlElement* parentNode);
88 void DoUnits(
const TiXmlElement* parentNode);
89 void DoUnitOptions(
const TiXmlElement* parentNode,
ProjectFile* file);
91 void ConvertVersion_Pre_1_1();
95 TiXmlElement* AddElement(TiXmlElement* parent,
const char* name,
const char* attr =
nullptr,
const wxString& attribute =
wxEmptyString);
96 TiXmlElement* AddElement(TiXmlElement* parent,
const char* name,
const char* attr,
int attribute);
97 void AddArrayOfElements(TiXmlElement* parent,
const char* name,
const char* attr,
const wxArrayString& array,
bool isPath =
false);
115 #endif // PROJECTLOADER_H CompilerSubstitutes m_CompilerSubstitutes
Represents a file in a Code::Blocks project.
virtual bool Open(const wxString &filename)=0
Open a file.
Represents a Code::Blocks project.
Base interface for project loaders.
This is a base class for all classes needing compilation parameters.
WX_DECLARE_STRING_HASH_MAP(wxString, CompilerSubstitutes)
Code::Blocks project file loader.
virtual bool Save(const wxString &filename)=0
Save a file.
Represents a Code::Blocks project build target.
int m_1_4_to_1_5_deftarget
Base class for build target classes Each Code::Blocks project consists of at least one target...