about summary refs log tree commit diff stats
path: root/generator/generator.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-01-09 14:01:51 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-01-09 14:01:51 -0500
commit46b7119fab32b05923dbf9cda7cd6ce62f572846 (patch)
tree31ac6c281869085e5dbc6b210886c554d4c52cad /generator/generator.h
downloadcadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.gz
cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.tar.bz2
cadence-46b7119fab32b05923dbf9cda7cd6ce62f572846.zip
Initial commit
Diffstat (limited to 'generator/generator.h')
-rw-r--r--generator/generator.h51
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
8namespace 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 */