about summary refs log tree commit diff stats
path: root/generator/generator.h
blob: d911c61c2793cd0fc8ea3a8c6ac281819875ad2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef GENERATOR_H_B180515E
#define GENERATOR_H_B180515E

#include <string>
#include <list>
#include "database.h"

namespace cadence {
  namespace generator {
    
    class generator {
    public:
      
      // Constructor
      
      generator(
        std::string inputpath,
        std::string outputpath);
        
      // Action
        
      void run();
      
      // Subroutines
      
      void writeSchema();
      
      void scanDirectories();
      
      void parseData();
      
    private:
      
      // Input
      
      std::string inputpath_;
      
      // Output
      
      database db_;
      
      // Cache
      
      std::list<std::string> datafiles_;
      
    };
    
  };
};

#endif /* end of include guard: GENERATOR_H_B180515E */