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 {
48 class TPGGenerationEngineFactory
49 {
50 public:
55 enum generationEngineMode
56 {
57 stackMode,
58 switchMode
59 };
60
65 TPGGenerationEngineFactory();
66
72 TPGGenerationEngineFactory(enum generationEngineMode mode);
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
CodeGen::TPGGenerationEngineFactory
Factory class to create code generators.
Definition tpgGenerationEngineFactory.h:49
CodeGen::TPGGenerationEngineFactory::create
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
CodeGen::TPGGenerationEngineFactory::TPGGenerationEngineFactory
TPGGenerationEngineFactory()
Factory constructor with default mode.
Definition tpgGenerationEngineFactory.cpp:44
CodeGen::TPGGenerationEngineFactory::generationEngineMode
generationEngineMode
Enumeration of possible codegen modes.
Definition tpgGenerationEngineFactory.h:56
TPG::TPGGraph
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
CodeGen
Definition programGenerationEngine.h:49