PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
PWrapperTraitBackendManager.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7
9
14
19
21
24void PWrapperTraitBackendManager::headerExtraInclude(std::ofstream & fs, const GeneratorMode & mode) const{
25 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
26 (*it)->headerExtraInclude(fs, mode);
27 }
28}
29
31
35void PWrapperTraitBackendManager::classMethodDeclaration(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
36 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
37 (*it)->classMethodDeclaration(fs, classConfig, mode);
38 }
39}
40
42
46void PWrapperTraitBackendManager::classMethodImplementation(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
47 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
48 (*it)->classMethodImplementation(fs, classConfig, mode);
49 }
50}
51
53
57void PWrapperTraitBackendManager::registerClassMember(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
58 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
59 (*it)->registerClassMember(fs, classConfig, mode);
60 }
61}
62
64
68void PWrapperTraitBackendManager::registerClassGetterSetter(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
69 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
70 (*it)->registerClassGetterSetter(fs, classConfig, mode);
71 }
72}
73
75
79void PWrapperTraitBackendManager::registerClassMethod(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
80 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
81 (*it)->registerClassMethod(fs, classConfig, mode);
82 }
83}
84
86
90void PWrapperTraitBackendManager::testFunction(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
91 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
92 (*it)->testFunction(fs, classConfig, mode);
93 }
94}
95
97
101void PWrapperTraitBackendManager::testCallFunction(std::ofstream & fs, const PClassConfig & classConfig, const GeneratorMode & mode) const{
102 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
103 (*it)->testCallFunction(fs, classConfig, mode);
104 }
105}
106
108
111void PWrapperTraitBackendManager::setupAddDependency(std::ofstream & fs, const GeneratorMode & mode) const{
112 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
113 (*it)->setupAddDependency(fs, mode);
114 }
115}
116
119 for(PVecWrapperTraitBackend::const_iterator it(p_vecTrait.begin()); it != p_vecTrait.end(); ++it){
120 delete *it;
121 }
122 p_vecTrait.clear();
123}
124
129
130
131
132
133
Class to describe a basic class.
void testCallFunction(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Call of the test function.
void classMethodDeclaration(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Declaration of class method.
PVecWrapperTraitBackend p_vecTrait
Vector of the Trait backend.
virtual ~PWrapperTraitBackendManager()
Destructor of PWrapperTraitBackendManager.
void clear()
Clear the PWrapperTraitBackendManager.
void registerClassMember(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Register class member.
void registerClassMethod(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Register class method.
void registerClassGetterSetter(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Register class getter and setter.
PWrapperTraitBackendManager()
Default constructor of PWrapperTraitBackendManager.
void classMethodImplementation(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Implementation of class method.
void testFunction(std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) const
Implementation of test function.
void setupAddDependency(std::ofstream &fs, const GeneratorMode &mode) const
Add dependency in the setup.py.
void initialisationPWrapperTraitBackendManager()
Initialisation function of the class PWrapperTraitBackendManager.
void headerExtraInclude(std::ofstream &fs, const GeneratorMode &mode) const
Add extra include on the header.
All the genertor modes.