PhoenixGenerator  2.0.0
Set of tools to generate code
PClassGenerator Class Reference

Class generator. More...

#include <PClassGenerator.h>

+ Collaboration diagram for PClassGenerator:

Public Member Functions

 PClassGenerator ()
 Constructor of PClassGenerator. More...
 
bool saveClassDef (std::ofstream &fs)
 Saves class definition. More...
 
bool saveClassImpl (std::ofstream &fs)
 Saves class implementation. More...
 
bool saveFileDef (const PPath &fileNameInclude, const PPath &fileNameSource)
 Saves class definition. More...
 
bool saveFileImpl (const PPath &fileNameSource, const PPath &fileNameInclude)
 Saves class implementation. More...
 
bool saveFileImplDef (const PPath &baseFileName)
 Saves both files include and sources of the class. More...
 
void setClassName (const PString &className)
 Set the class name. More...
 
void setTemplateDefVar (const PString &templateDef)
 Set the template definition. More...
 
virtual ~PClassGenerator ()
 Destructor of PClassGenerator. More...
 

Private Member Functions

void initialisationPClassGenerator ()
 Initialisation function of PClassGenerator. More...
 
void saveConstructorDef (std::ofstream &fs)
 Saves the defition of the constructor. More...
 
void saveConstructorImpl (std::ofstream &fs)
 Saves the implementation of the constructor. More...
 
void saveCopyContructorDef (std::ofstream &fs)
 Saves the defition of the copy constructor. More...
 
void saveCopyContructorImpl (std::ofstream &fs)
 Saves the implementation of the copy constructor. More...
 
void saveCopyEqualOperatorDef (std::ofstream &fs)
 Saves the defition of the equal operator constructor. More...
 
void saveCopyEqualOperatorImpl (std::ofstream &fs)
 Saves the implementation of the equal operator constructor. More...
 
void saveCopyFunctionDef (std::ofstream &fs)
 Saves the defition of the copy function. More...
 
void saveCopyFunctionImpl (std::ofstream &fs)
 Saves the implementation of the copy function. More...
 
void saveDestructorDef (std::ofstream &fs)
 Saves the defition of the destructor. More...
 
void saveDestructorImpl (std::ofstream &fs)
 Saves the implementation of the destructor. More...
 
void saveInitialisationFunctionDef (std::ofstream &fs)
 Saves the definition of the initialisation function. More...
 
void saveInitialisationFunctionImpl (std::ofstream &fs)
 Saves the implementation of the initialisation function. More...
 
void saveTemplateBeginImpl (std::ofstream &fs, const PPath &fileNameInclude)
 Saves class implementation. More...
 
void saveTemplateDefinition (std::ofstream &fs)
 Saves the template defition. More...
 
void saveTemplateEndDefinition (std::ofstream &fs, const PPath &fileNameSource)
 Saves the template defition. More...
 
void saveTemplateEndImpl (std::ofstream &fs)
 Saves class implementation template end. More...
 

Private Attributes

PString p_classBrief
 Brief description of the class. More...
 
PString p_className
 Name of the class. More...
 
PString p_classNameSpace
 Namespace of the class. More...
 
PString p_classTypeName
 Name of the class type (with template if there is one) More...
 
PString p_templateDefVar
 Template def var. More...
 
PString p_templateListVar
 Template list var. More...
 
bool p_useCopyFunction
 True if we need to use a copy function. More...
 
bool p_useTemplate
 Says if we need to use template. More...
 

Detailed Description

Class generator.

Definition at line 15 of file PClassGenerator.h.

Constructor & Destructor Documentation

◆ PClassGenerator()

PClassGenerator::PClassGenerator ( )

Constructor of PClassGenerator.

Definition at line 12 of file PClassGenerator.cpp.

12  {
14 }
void initialisationPClassGenerator()
Initialisation function of PClassGenerator.

References initialisationPClassGenerator().

+ Here is the call graph for this function:

◆ ~PClassGenerator()

PClassGenerator::~PClassGenerator ( )
virtual

Destructor of PClassGenerator.

Definition at line 17 of file PClassGenerator.cpp.

17  {
18 
19 }

Member Function Documentation

◆ initialisationPClassGenerator()

void PClassGenerator::initialisationPClassGenerator ( )
private

Initialisation function of PClassGenerator.

Definition at line 164 of file PClassGenerator.cpp.

164  {
165  p_templateDefVar = "";
166  p_templateListVar = "";
167  p_useCopyFunction = true;
168  p_useTemplate = false;
169  p_classTypeName = "";
170 }
bool p_useTemplate
Says if we need to use template.
PString p_templateListVar
Template list var.
bool p_useCopyFunction
True if we need to use a copy function.
PString p_templateDefVar
Template def var.
PString p_classTypeName
Name of the class type (with template if there is one)

References p_classTypeName, p_templateDefVar, p_templateListVar, p_useCopyFunction, and p_useTemplate.

Referenced by PClassGenerator().

+ Here is the caller graph for this function:

◆ saveClassDef()

bool PClassGenerator::saveClassDef ( std::ofstream &  fs)

Saves class definition.

Parameters
fs: file to write
Returns
true on success, false otherwise

Definition at line 88 of file PClassGenerator.cpp.

88  {
89  if(p_classBrief != "") fs << "///@brief " << p_classBrief << std::endl;
91  fs << "class " << p_className << "{" << std::endl;
92  fs << "\tpublic:" << std::endl;
96 
98  fs << "\tprotected:" << std::endl;
100  fs << "\tprivate:" << std::endl;
102  fs << "};" << std::endl << std::endl;;
103  return true;
104 }
PString p_className
Name of the class.
void saveDestructorDef(std::ofstream &fs)
Saves the defition of the destructor.
PString p_classBrief
Brief description of the class.
void saveCopyContructorDef(std::ofstream &fs)
Saves the defition of the copy constructor.
void saveInitialisationFunctionDef(std::ofstream &fs)
Saves the definition of the initialisation function.
void saveCopyFunctionDef(std::ofstream &fs)
Saves the defition of the copy function.
void saveConstructorDef(std::ofstream &fs)
Saves the defition of the constructor.
void saveTemplateDefinition(std::ofstream &fs)
Saves the template defition.
void saveCopyEqualOperatorDef(std::ofstream &fs)
Saves the defition of the equal operator constructor.

References p_classBrief, p_className, saveConstructorDef(), saveCopyContructorDef(), saveCopyEqualOperatorDef(), saveCopyFunctionDef(), saveDestructorDef(), saveInitialisationFunctionDef(), and saveTemplateDefinition().

Referenced by saveFileDef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveClassImpl()

bool PClassGenerator::saveClassImpl ( std::ofstream &  fs)

Saves class implementation.

Parameters
fs: file to write
Returns
true on success, false otherwise

Definition at line 110 of file PClassGenerator.cpp.

110  {
113  saveDestructorImpl(fs);
114 
116 
118 
120  return true;
121 
122 }
void saveCopyFunctionImpl(std::ofstream &fs)
Saves the implementation of the copy function.
void saveConstructorImpl(std::ofstream &fs)
Saves the implementation of the constructor.
void saveCopyEqualOperatorImpl(std::ofstream &fs)
Saves the implementation of the equal operator constructor.
void saveInitialisationFunctionImpl(std::ofstream &fs)
Saves the implementation of the initialisation function.
void saveDestructorImpl(std::ofstream &fs)
Saves the implementation of the destructor.
void saveCopyContructorImpl(std::ofstream &fs)
Saves the implementation of the copy constructor.

References saveConstructorImpl(), saveCopyContructorImpl(), saveCopyEqualOperatorImpl(), saveCopyFunctionImpl(), saveDestructorImpl(), and saveInitialisationFunctionImpl().

Referenced by saveFileImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveConstructorDef()

void PClassGenerator::saveConstructorDef ( std::ofstream &  fs)
private

Saves the defition of the constructor.

Parameters
fs: file in witch to write

Definition at line 212 of file PClassGenerator.cpp.

212  {
213  fs << "\t\t" << p_className << "();" << std::endl;
214 }

References p_className.

Referenced by saveClassDef().

+ Here is the caller graph for this function:

◆ saveConstructorImpl()

void PClassGenerator::saveConstructorImpl ( std::ofstream &  fs)
private

Saves the implementation of the constructor.

Parameters
fs: file in witch to write

Definition at line 219 of file PClassGenerator.cpp.

219  {
220  fs << "///Default constructor of " << p_className << std::endl;
222  fs << p_classNameSpace << "::" << p_className << "(){" << std::endl;
223  fs << "\tinitialisation" << p_className.firstToUpper() << "();" << std::endl;
224  fs << "}" << std::endl;
225  fs << std::endl;
226 }
PString p_classNameSpace
Namespace of the class.
PString firstToUpper() const
Convert first letter of the PString in upper case.
Definition: PString.cpp:673

References PString::firstToUpper(), p_className, p_classNameSpace, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCopyContructorDef()

void PClassGenerator::saveCopyContructorDef ( std::ofstream &  fs)
private

Saves the defition of the copy constructor.

Parameters
fs: file in witch to write

Definition at line 269 of file PClassGenerator.cpp.

269  {
270  if(!p_useCopyFunction) return;
271  fs << "\t\t" << p_className << "(const " << p_classTypeName << " & other);" << std::endl;
272 }

References p_className, p_classTypeName, and p_useCopyFunction.

Referenced by saveClassDef().

+ Here is the caller graph for this function:

◆ saveCopyContructorImpl()

void PClassGenerator::saveCopyContructorImpl ( std::ofstream &  fs)
private

Saves the implementation of the copy constructor.

Parameters
fs: file in witch to write

Definition at line 277 of file PClassGenerator.cpp.

277  {
278  if(!p_useCopyFunction) return;
279  fs << "///Copy constructor of " << p_className << std::endl;
280  fs << "/**\t@param other : class to copy" << std::endl;
281  fs << "*/" << std::endl;
283  fs << p_classNameSpace << "::" << p_className << "(const " << p_classTypeName << " & other){" << std::endl;
284  fs << "\tcopy" << p_className.firstToUpper() << "(other);" << std::endl;
285  fs << "}" << std::endl;
286  fs << std::endl;
287 }

References PString::firstToUpper(), p_className, p_classNameSpace, p_classTypeName, p_useCopyFunction, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCopyEqualOperatorDef()

void PClassGenerator::saveCopyEqualOperatorDef ( std::ofstream &  fs)
private

Saves the defition of the equal operator constructor.

Parameters
fs: file in witch to write

Definition at line 292 of file PClassGenerator.cpp.

292  {
293  if(!p_useCopyFunction) return;
294  fs << "\t\t" << p_className << " & operator = (const " << p_classTypeName << " & other);" << std::endl;
295 }

References p_className, p_classTypeName, and p_useCopyFunction.

Referenced by saveClassDef().

+ Here is the caller graph for this function:

◆ saveCopyEqualOperatorImpl()

void PClassGenerator::saveCopyEqualOperatorImpl ( std::ofstream &  fs)
private

Saves the implementation of the equal operator constructor.

Parameters
fs: file in witch to write

Definition at line 300 of file PClassGenerator.cpp.

300  {
301  if(!p_useCopyFunction) return;
302  fs << "///Definition of equal operator of " << p_className << std::endl;
303  fs << "/**\t@param other : class to copy" << std::endl;
304  fs << " * \t@return copied class" << std::endl;
305  fs << "*/" << std::endl;
307 // if(p_useTemplate) fs << "typename " << p_classNameSpace << "::";
308  fs << p_classTypeName << " & " << p_classNameSpace << "::operator = (const " << p_classTypeName << " & other){" << std::endl;
309  fs << "\tcopy" << p_className.firstToUpper() << "(other);" << std::endl;
310  fs << "\treturn *this;" << std::endl;
311  fs << "}" << std::endl;
312  fs << std::endl;
313 }

References PString::firstToUpper(), p_className, p_classNameSpace, p_classTypeName, p_useCopyFunction, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCopyFunctionDef()

void PClassGenerator::saveCopyFunctionDef ( std::ofstream &  fs)
private

Saves the defition of the copy function.

Parameters
fs: file in witch to write

Definition at line 318 of file PClassGenerator.cpp.

318  {
319  if(!p_useCopyFunction) return;
320  fs << "\t\tvoid copy" << p_className.firstToUpper() << "(const " << p_classTypeName << " & other);" << std::endl;
321 }

References PString::firstToUpper(), p_className, p_classTypeName, and p_useCopyFunction.

Referenced by saveClassDef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveCopyFunctionImpl()

void PClassGenerator::saveCopyFunctionImpl ( std::ofstream &  fs)
private

Saves the implementation of the copy function.

Parameters
fs: file in witch to write

Definition at line 326 of file PClassGenerator.cpp.

326  {
327  if(!p_useCopyFunction) return;
328  fs << "///Copy function of " << p_className << std::endl;
329  fs << "/**\t@param other : class to copy" << std::endl;
330  fs << "*/" << std::endl;
332  fs << "void " << p_classNameSpace << "::copy" << p_className.firstToUpper() << "(const " << p_classTypeName << " & other){" << std::endl;
333  fs << "\t" << std::endl;
334  fs << "}" << std::endl;
335  fs << std::endl;
336 }

References PString::firstToUpper(), p_className, p_classNameSpace, p_classTypeName, p_useCopyFunction, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveDestructorDef()

void PClassGenerator::saveDestructorDef ( std::ofstream &  fs)
private

Saves the defition of the destructor.

Parameters
fs: file in witch to write

Definition at line 231 of file PClassGenerator.cpp.

231  {
232  fs << "\t\tvirtual ~" << p_className << "();" << std::endl;
233 }

References p_className.

Referenced by saveClassDef().

+ Here is the caller graph for this function:

◆ saveDestructorImpl()

void PClassGenerator::saveDestructorImpl ( std::ofstream &  fs)
private

Saves the implementation of the destructor.

Parameters
fs: file in witch to write

Definition at line 238 of file PClassGenerator.cpp.

238  {
239  fs << "///Destructor of " << p_className << std::endl;
241  fs << p_classNameSpace << "::~" << p_className << "(){" << std::endl;
242  fs << "\t" << std::endl;
243  fs << "}" << std::endl;
244  fs << std::endl;
245 }

References p_className, p_classNameSpace, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveFileDef()

bool PClassGenerator::saveFileDef ( const PPath fileNameInclude,
const PPath fileNameSource 
)

Saves class definition.

Parameters
fileNameInclude: file to write
fileNameSource: file of source
Returns
true on success, false otherwise

Definition at line 43 of file PClassGenerator.cpp.

43  {
44  std::ofstream fs;
45  fs.open(fileNameInclude.c_str());
46  if(!fs.is_open()){
47  std::cerr << "PClassGenerator::saveFileDef : can't open file '" << fileNameInclude << "'" << std::endl;
48  return false;
49  }
50  licenceSave(fs);
51  PString macroDef(makeMultiIncludeDefineMacro(fileNameInclude));
52  fs << "#ifndef " << macroDef << std::endl;
53  fs << "#define " << macroDef << std::endl << std::endl << std::endl;
54  bool b = saveClassDef(fs);
55  saveTemplateEndDefinition(fs, fileNameSource);
56  fs << std::endl << std::endl << "#endif" << std::endl << std::endl;
57  fs.close();
58  return b;
59 }
bool saveClassDef(std::ofstream &fs)
Saves class definition.
void saveTemplateEndDefinition(std::ofstream &fs, const PPath &fileNameSource)
Saves the template defition.
Extends the std::string.
Definition: PString.h:16
PString makeMultiIncludeDefineMacro(const PString &fileName)
Create the macro of multi inclusion file name.
void licenceSave(std::ofstream &fs)
Saves the policy.

References licenceSave(), makeMultiIncludeDefineMacro(), saveClassDef(), and saveTemplateEndDefinition().

Referenced by saveFileImplDef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveFileImpl()

bool PClassGenerator::saveFileImpl ( const PPath fileNameSource,
const PPath fileNameInclude 
)

Saves class implementation.

Parameters
fileNameSource: file to write
fileNameInclude: include file name
Returns
true on success, false otherwise

Definition at line 66 of file PClassGenerator.cpp.

66  {
67  std::ofstream fs;
68  fs.open(fileNameSource.c_str());
69  if(!fs.is_open()){
70  std::cerr << "PClassGenerator::saveFileImpl : can't open file '" << fileNameSource << "'" << std::endl;
71  return false;
72  }
73  licenceSave(fs);
74  saveTemplateBeginImpl(fs, fileNameInclude);
75  fs << std::endl << "#include \"" << fileNameInclude << "\"" << std::endl << std::endl;
76  bool b = saveClassImpl(fs);
77  fs << std::endl << std::endl;
79  fs << std::endl << std::endl;
80  fs.close();
81  return b;
82 }
bool saveClassImpl(std::ofstream &fs)
Saves class implementation.
void saveTemplateBeginImpl(std::ofstream &fs, const PPath &fileNameInclude)
Saves class implementation.
void saveTemplateEndImpl(std::ofstream &fs)
Saves class implementation template end.

References licenceSave(), saveClassImpl(), saveTemplateBeginImpl(), and saveTemplateEndImpl().

Referenced by saveFileImplDef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveFileImplDef()

bool PClassGenerator::saveFileImplDef ( const PPath baseFileName)

Saves both files include and sources of the class.

Parameters
baseFileName: base of the files names to write
Returns
true on success, false otherwise

Definition at line 25 of file PClassGenerator.cpp.

25  {
26  PPath baseToUse("");
27  if(baseFileName == ""){baseToUse = p_className;}
28  else{baseToUse = baseFileName;}
29  if(baseToUse == ""){return false;}
30  PPath includeName(baseToUse + PPath(".h"));
31  PPath sourceName(baseToUse + PPath(".cpp"));
32  if(p_useTemplate){sourceName = PString(baseToUse + "_impl.h");}
33  bool b(saveFileDef(includeName, sourceName));
34  b &= saveFileImpl(sourceName, includeName);
35  return b;
36 }
bool saveFileImpl(const PPath &fileNameSource, const PPath &fileNameInclude)
Saves class implementation.
bool saveFileDef(const PPath &fileNameInclude, const PPath &fileNameSource)
Saves class definition.
Path of a directory or a file.
Definition: PPath.h:17

References p_className, p_useTemplate, saveFileDef(), and saveFileImpl().

+ Here is the call graph for this function:

◆ saveInitialisationFunctionDef()

void PClassGenerator::saveInitialisationFunctionDef ( std::ofstream &  fs)
private

Saves the definition of the initialisation function.

Parameters
fs: file in witch to write

Definition at line 250 of file PClassGenerator.cpp.

250  {
251  fs << "\t\tvoid initialisation" << p_className.firstToUpper() << "();" << std::endl;
252 }

References PString::firstToUpper(), and p_className.

Referenced by saveClassDef().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveInitialisationFunctionImpl()

void PClassGenerator::saveInitialisationFunctionImpl ( std::ofstream &  fs)
private

Saves the implementation of the initialisation function.

Parameters
fs: file in witch to write

Definition at line 257 of file PClassGenerator.cpp.

257  {
258  fs << "///Initialisation function of the class " << p_className << std::endl;
260  fs << "void " << p_classNameSpace << "::initialisation" << p_className.firstToUpper() << "(){" << std::endl;
261  fs << "\t" << std::endl;
262  fs << "}" << std::endl;
263  fs << std::endl;
264 }

References PString::firstToUpper(), p_className, p_classNameSpace, and saveTemplateDefinition().

Referenced by saveClassImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveTemplateBeginImpl()

void PClassGenerator::saveTemplateBeginImpl ( std::ofstream &  fs,
const PPath fileNameInclude 
)
private

Saves class implementation.

Parameters
fs: file to write
fileNameInclude: file to write

Definition at line 193 of file PClassGenerator.cpp.

193  {
194  if(!p_useTemplate) return;
195  PString macroDef("__"+fileNameInclude.replace(".", "_").toUpper()+"_IMPL__");
196  fs << "#ifndef " << macroDef << std::endl;
197  fs << "#define " << macroDef << std::endl << std::endl << std::endl;
198 }
PString replace(const PString &pattern, const PString &replaceStr) const
Replace a PString into an other PString.
Definition: PString.cpp:204
PString toUpper() const
Convert std::string in upper case.
Definition: PString.cpp:639

References p_useTemplate, PString::replace(), and PString::toUpper().

Referenced by saveFileImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveTemplateDefinition()

void PClassGenerator::saveTemplateDefinition ( std::ofstream &  fs)
private

Saves the template defition.

Parameters
fs: file in witch to write

Definition at line 175 of file PClassGenerator.cpp.

175  {
176  if(!p_useTemplate) return;
177  fs << "template<" << p_templateDefVar << ">" << std::endl;
178 }

References p_templateDefVar, and p_useTemplate.

Referenced by saveClassDef(), saveConstructorImpl(), saveCopyContructorImpl(), saveCopyEqualOperatorImpl(), saveCopyFunctionImpl(), saveDestructorImpl(), and saveInitialisationFunctionImpl().

+ Here is the caller graph for this function:

◆ saveTemplateEndDefinition()

void PClassGenerator::saveTemplateEndDefinition ( std::ofstream &  fs,
const PPath fileNameSource 
)
private

Saves the template defition.

Parameters
fs: file in witch to write
fileNameSource: source file

Definition at line 184 of file PClassGenerator.cpp.

184  {
185  if(!p_useTemplate) return;
186  fs << "#include \"" << fileNameSource << "\"" << std::endl;
187 }

References p_useTemplate.

Referenced by saveFileDef().

+ Here is the caller graph for this function:

◆ saveTemplateEndImpl()

void PClassGenerator::saveTemplateEndImpl ( std::ofstream &  fs)
private

Saves class implementation template end.

Parameters
fs: file to write

Definition at line 203 of file PClassGenerator.cpp.

203  {
204  if(!p_useTemplate) return;
205  fs << std::endl << std::endl << "#endif" << std::endl << std::endl;
206 
207 }

References p_useTemplate.

Referenced by saveFileImpl().

+ Here is the caller graph for this function:

◆ setClassName()

void PClassGenerator::setClassName ( const PString className)

Set the class name.

Parameters
className: class name

Definition at line 127 of file PClassGenerator.cpp.

127  {
128  p_className = className;
129  p_classNameSpace = className;
130  p_classTypeName = className;
131 }

References p_className, p_classNameSpace, and p_classTypeName.

◆ setTemplateDefVar()

void PClassGenerator::setTemplateDefVar ( const PString templateDef)

Set the template definition.

Parameters
templateDef: template definition

Definition at line 136 of file PClassGenerator.cpp.

136  {
137  if(templateDef == ""){
138  p_templateDefVar = "";
139  p_templateListVar = "";
140  p_useTemplate = false;
141  return;
142  }
143  p_templateDefVar = templateDef;
144  PVecString listDef(templateDef.split(','));
145  p_templateListVar = "";
146  bool firstDef(true);
147  for(PVecString::iterator it(listDef.begin()); it != listDef.end(); ++it){
148  PVecString partDef(it->split(' '));
149  if(partDef.size() == 2lu){
150  if(firstDef){
151  p_templateListVar += partDef.back();
152  firstDef = false;
153  }else{
154  p_templateListVar += ", " + partDef.back();
155  }
156  }
157  }
158  p_useTemplate = true;
161 }
std::vector< PString > PVecString
Definition: PString.h:96
std::vector< PString > split(char separator) const
Cut a PString on the given separator char.
Definition: PString.cpp:420

References p_className, p_classNameSpace, p_classTypeName, p_templateDefVar, p_templateListVar, p_useTemplate, and PString::split().

+ Here is the call graph for this function:

Member Data Documentation

◆ p_classBrief

PString PClassGenerator::p_classBrief
private

Brief description of the class.

Definition at line 62 of file PClassGenerator.h.

Referenced by saveClassDef().

◆ p_className

◆ p_classNameSpace

◆ p_classTypeName

PString PClassGenerator::p_classTypeName
private

◆ p_templateDefVar

PString PClassGenerator::p_templateDefVar
private

Template def var.

Definition at line 66 of file PClassGenerator.h.

Referenced by initialisationPClassGenerator(), saveTemplateDefinition(), and setTemplateDefVar().

◆ p_templateListVar

PString PClassGenerator::p_templateListVar
private

Template list var.

Definition at line 68 of file PClassGenerator.h.

Referenced by initialisationPClassGenerator(), and setTemplateDefVar().

◆ p_useCopyFunction

bool PClassGenerator::p_useCopyFunction
private

◆ p_useTemplate

bool PClassGenerator::p_useTemplate
private

The documentation for this class was generated from the following files: