Merge trunk HEAD (r44067)
[reactos.git] / reactos / tools / rbuild / backend / versionreport / versionreport.h
1 /*
2 * Copyright (C) 2007 Marc Piulachs (marc.piulachs [at] codexchange [dot] net)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 #ifndef __VREPORT_H__
19 #define __VREPORT_H__
20
21 #include <fstream>
22 #include <vector>
23 #include <string>
24
25 #include "../backend.h"
26
27 class VReportConfiguration
28 {
29 public:
30 VReportConfiguration(const std::string &name = "");
31 virtual ~VReportConfiguration() {}
32 std::string name;
33 };
34
35 class VReportBackend : public Backend
36 {
37 public:
38
39 VReportBackend(Project &project,
40 Configuration& configuration);
41 virtual ~VReportBackend() {}
42
43 virtual void Process();
44
45 private:
46
47 FILE* m_VReportFile;
48
49 std::vector<VReportConfiguration*> m_configurations;
50
51 void GenerateReport ( FILE* OUT );
52 void CleanFiles ( void );
53
54 struct module_data
55 {
56 std::vector <std::string> libraries;
57 std::vector <std::string> references;
58
59 module_data()
60 {}
61 ~module_data()
62 {}
63 };
64
65 };
66
67
68 #endif // __VREPORT_H__