Code::Blocks  SVN r11506
projecttemplateloader.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef PROJECTTEMPLATELOADER_H
7 #define PROJECTTEMPLATELOADER_H
8 
9 #include <tinyxml.h>
10 #include "settings.h"
11 
13 {
17 };
18 WX_DECLARE_OBJARRAY(FileSetFile, FileSetFileArray);
19 
20 struct FileSet
21 {
24  FileSetFileArray files;
25 };
26 WX_DECLARE_OBJARRAY(FileSet, FileSetArray);
27 
29 {
37 };
38 WX_DECLARE_OBJARRAY(TemplateOption, TemplateOptionArray);
39 
41 {
42  public:
44  virtual ~ProjectTemplateLoader();
45 
46  bool Open(const wxString& filename);
47 
54  FileSetArray m_FileSets;
55  TemplateOptionArray m_TemplateOptions;
56  protected:
57  void DoTemplate(TiXmlElement* parentNode);
58  void DoTemplateNotice(TiXmlElement* parentNode);
59  void DoFileSet(TiXmlElement* parentNode);
60  void DoFileSetFile(TiXmlElement* parentNode, FileSet& fs);
61  void DoOption(TiXmlElement* parentNode);
62  void DoOptionProject(TiXmlElement* parentNode, TemplateOption& to);
63  void DoOptionCompiler(TiXmlElement* parentNode, TemplateOption& to);
64  void DoOptionLinker(TiXmlElement* parentNode, TemplateOption& to);
65  private:
66 };
67 
68 #endif // PROJECTTEMPLATELOADER_H
69 
FileSetFileArray files
WX_DECLARE_OBJARRAY(FileSetFile, FileSetFileArray)
#define DLLIMPORT
Definition: settings.h:16
TemplateOptionArray m_TemplateOptions
wxArrayString extraLDFlags
wxArrayString extraCFlags