Merge 13511:13830 from trunk
[reactos.git] / reactos / tools / rbuild / backend / devcpp / devcpp.h
1
2 #ifndef __DEVCPP_H__
3 #define __DEVCPP_H__
4
5 #include <fstream>
6 #include <vector>
7 #include <string>
8
9 #include "../backend.h"
10
11 class FileUnit
12 {
13 public:
14 std::string filename;
15 std::string folder;
16 };
17
18 class DevCppBackend : public Backend
19 {
20 public:
21
22 DevCppBackend(Project &project);
23 virtual ~DevCppBackend() {}
24
25 virtual void Process();
26
27 private:
28
29 void ProcessModules();
30 void ProcessFile(std::string &filename);
31
32 bool CheckFolderAdded(std::string &folder);
33 void AddFolders(std::string &folder);
34
35 void OutputFolders();
36 void OutputFileUnits();
37
38 std::vector<FileUnit> m_fileUnits;
39 std::vector<std::string> m_folders;
40
41 int m_unitCount;
42
43 std::ofstream m_devFile;
44 };
45
46 #endif // __DEVCPP_H__
47