about summary refs log tree commit diff stats
path: root/generator/generator.h
blob: dff8eeb2423be06caa1c4edff07e9d2673f1ba83 (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 */