PhoenixGenerator  3.4.0
Generate code from template files and projects in C++, Rust, Python and wrapped C++ to Python
Loading...
Searching...
No Matches
PRustTraitBackendManager.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : LGPL-3.0-only
5****************************************/
6
7#ifndef __PRUST_TRAIT_BACKEND_MANAGER_H__
8#define __PRUST_TRAIT_BACKEND_MANAGER_H__
9
11
12typedef std::vector<PAbstractRustTraitBackend*> PVecRustTraitBackend;
13
16 public:
19
21 template<class Backend>
23 p_vecTrait.push_back(new Backend);
24 }
25
26 void headerExtraInclude(std::ofstream & fs, const GeneratorMode & mode) const;
27 void implMethodDeclaration(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const;
28 void classExtraDeclaration(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const;
29
30 void testFunction(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const;
31
32 void clear();
33 private:
35
38};
39
40#endif
std::vector< PAbstractRustTraitBackend * > PVecRustTraitBackend
Class to describe a basic class.
void classExtraDeclaration(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Implementation of extra declarations.
void addTraitBackend()
Add a trait backend into the PRustTraitBackendManager.
PRustTraitBackendManager()
Default constructor of PRustTraitBackendManager.
void headerExtraInclude(std::ofstream &fs, const GeneratorMode &mode) const
Add extra include on the header.
PVecRustTraitBackend p_vecTrait
Vector of the Trait backend.
void initialisationPRustTraitBackendManager()
Initialisation function of the class PRustTraitBackendManager.
void testFunction(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Implementation of test function.
void clear()
Clear the PRustTraitBackendManager.
void implMethodDeclaration(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Implementation of the impl block methods.
All the genertor modes.