diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-09 14:01:51 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-01-09 14:01:51 -0500 |
commit | 46b7119fab32b05923dbf9cda7cd6ce62f572846 (patch) | |
tree | 31ac6c281869085e5dbc6b210886c554d4c52cad /generator/generator.h | |
download | cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.gz cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.bz2 cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.zip |
Initial commit
Diffstat (limited to 'generator/generator.h')
-rw-r--r-- | generator/generator.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/generator/generator.h b/generator/generator.h new file mode 100644 index 0000000..d911c61 --- /dev/null +++ b/generator/generator.h | |||
@@ -0,0 +1,51 @@ | |||
1 | #ifndef GENERATOR_H_B180515E | ||
2 | #define GENERATOR_H_B180515E | ||
3 | |||
4 | #include <string> | ||
5 | #include <list> | ||
6 | #include "database.h" | ||
7 | |||
8 | namespace cadence { | ||
9 | namespace generator { | ||
10 | |||
11 | class generator { | ||
12 | public: | ||
13 | |||
14 | // Constructor | ||
15 | |||
16 | generator( | ||
17 | std::string inputpath, | ||
18 | std::string outputpath); | ||
19 | |||
20 | // Action | ||
21 | |||
22 | void run(); | ||
23 | |||
24 | // Subroutines | ||
25 | |||
26 | void writeSchema(); | ||
27 | |||
28 | void scanDirectories(); | ||
29 | |||
30 | void parseData(); | ||
31 | |||
32 | private: | ||
33 | |||
34 | // Input | ||
35 | |||
36 | std::string inputpath_; | ||
37 | |||
38 | // Output | ||
39 | |||
40 | database db_; | ||
41 | |||
42 | // Cache | ||
43 | |||
44 | std::list<std::string> datafiles_; | ||
45 | |||
46 | }; | ||
47 | |||
48 | }; | ||
49 | }; | ||
50 | |||
51 | #endif /* end of include guard: GENERATOR_H_B180515E */ | ||