GEGELATI
Loading...
Searching...
No Matches
tpgGenerationEngineFactory.h
1
38#ifdef CODE_GENERATION
39
40#ifndef TPG_GENERATION_ENGINE_FACTORY_H
41#define TPG_GENERATION_ENGINE_FACTORY_H
42#include "codeGen/tpgGenerationEngine.h"
43
44namespace CodeGen {
49 {
50 public:
56 {
57 stackMode,
58 switchMode
59 };
60
66
73
79 std::unique_ptr<TPGGenerationEngine> create(
80 const std::string& filename, const TPG::TPGGraph& tpg,
81 const std::string& path = "./");
82
83 private:
84 enum generationEngineMode mode;
85 };
86} // namespace CodeGen
87
88#endif // TPG_GENERATION_ENGINE_FACTORY_H
89
90#endif // CODE_GENERATION
Factory class to create code generators.
Definition tpgGenerationEngineFactory.h:49
std::unique_ptr< TPGGenerationEngine > create(const std::string &filename, const TPG::TPGGraph &tpg, const std::string &path="./")
Factory method to create a codegen with the configured mode.
Definition tpgGenerationEngineFactory.cpp:54
TPGGenerationEngineFactory()
Factory constructor with default mode.
Definition tpgGenerationEngineFactory.cpp:44
generationEngineMode
Enumeration of possible codegen modes.
Definition tpgGenerationEngineFactory.h:56
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
Definition programGenerationEngine.h:49