umbrello: umbrello/codegenerators/cpp/cppwriter.h Source File

umbrello 2.32.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

cppwriter.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003 Brian Thomas *
8 * <brian.thomas@gsfc.nasa.gov> *
9 * copyright (C) 2004-2014 Umbrello UML Modeller Authors *
10 * <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef CPPWRITER_H
14 #define CPPWRITER_H
15
16 #include "simplecodegenerator.h"
17 #include "cppcodegenerationpolicy.h"
18 #include "umloperationlist.h"
19 #include "umlattributelist.h"
20 #include "umlassociationlist.h"
21
22 class QFile;
23
34 class CppWriter : public SimpleCodeGenerator
35 {
36 public:
37
38 CppWriter();
39 virtual ~CppWriter();
40
41 virtual void writeClass(UMLClassifier *c);
42
43 virtual Uml::ProgrammingLanguage::Enum language() const;
44
45 QStringList defaultDatatypes();
46
47 virtual QStringList reservedKeywords() const;
48
49 private:
50 void writeIncludes(UMLClassifier *c, QTextStream &cpp);
51 void writeClassDecl(UMLClassifier *c, QTextStream &cpp);
52 void writeConstructorDecls(QTextStream &h);
53 void writeConstructorMethods(UMLClassifier * c, QTextStream &cpp);
54
55 // /**
56 // * Write all field declarations, for both attributes and associations for the
57 // * given permitted scope.
58 // */
59 // void writeFieldDecl(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream);
60
61 // /**
62 // * Write all method declarations, for attributes and associations
63 // * for the given permitted scope.
64 // */
65 // void writeAccessorMethodDecl(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream);
66
67 void writeOperations(UMLClassifier *c, bool isHeaderMethod, Uml::Visibility::Enum permitScope, QTextStream &cpp);
68 void writeOperations(UMLClassifier *c, UMLOperationList &oplist, bool isHeaderMethod, QTextStream &cpp);
69
70 // /**
71 // * Write all attributes for a given class.
72 // * @param c the class for which we are generating code
73 // * @param j the stream associated with the output file
74 // */
75 // void writeAttributes(UMLClassifier *c, QTextStream &j);
76
77 void writeAttributeDecls(UMLClassifier *c, Uml::Visibility::Enum visibility, bool writeStatic, QTextStream &stream);
78
79 void writeHeaderFieldDecl(UMLClassifier *c, Uml::Visibility::Enum permitVisibility, QTextStream &stream);
80
81 void writeHeaderAttributeAccessorMethods(UMLClassifier *c, Uml::Visibility::Enum visibility, bool writeStatic, QTextStream &stream);
82
83 void writeHeaderAttributeAccessorMethodDecls(UMLClassifier *c, Uml::Visibility::Enum permitVisibility, QTextStream &stream);
84 void writeHeaderAccessorMethodDecl(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream);
85
86 void writeAssociationDecls(UMLAssociationList associations, Uml::Visibility::Enum permit, Uml::ID::Type id, QTextStream &stream);
87
88 void writeAssociationRoleDecl(QString fieldClassName, QString roleName, QString multi,
89 QString doc, QTextStream &stream);
90
91 void writeAttributeMethods(UMLAttributeList attribs, Uml::Visibility::Enum visib, bool isHeaderMethod,
92 bool isStatic,
93 bool writeMethodBody, QTextStream &stream);
94
95 void writeAssociationMethods(UMLAssociationList associations, Uml::Visibility::Enum permitVisib,
96 bool isHeaderMethod,
97 bool writeMethodBody, bool writePointerVar, Uml::ID::Type id, QTextStream &stream);
98
99 void writeAssociationRoleMethod(const QString &fieldClassName, bool isHeaderMethod, bool writeMethodBody,
100 const QString &roleName, const QString &multi,
101 const QString &description, Uml::Changeability::Enum change,
102 QTextStream &stream);
103
104 void writeSingleAttributeAccessorMethods(
105 const QString &fieldClassName, const QString &Name,
106 const QString &fieldName, const QString &description,
107 Uml::Changeability::Enum change,
108 bool isHeaderMethod,
109 bool isStatic, bool writeMethodBody, QTextStream &cpp);
110
111 void writeVectorAttributeAccessorMethods(
112 const QString &fieldClassName, const QString &fieldVarName,
113 const QString &fieldName, const QString &description,
114 Uml::Changeability::Enum change,
115 bool isHeaderMethod,
116 bool writeMethodBody,
117 QTextStream &stream);
118
119 void writeComment(const QString &text, const QString &indent, QTextStream &cpp);
120 void writeDocumentation(QString header, QString body, QString end, QTextStream &cpp);
121
122 void writeHeaderFile(UMLClassifier *c, QFile &file);
123 void writeSourceFile(UMLClassifier *c, QFile &file);
124
125 void printTextAsSeparateLinesWithIndent (const QString &text, const QString &indent,
126 QTextStream &stream);
127
128 void printAssociationIncludeDecl(UMLAssociationList list, Uml::ID::Type this_id, QTextStream &stream);
129
130 void writeInitAttributeMethod(UMLClassifier * c, QTextStream &stream);
131 void writeInitAttributeDecl(UMLClassifier * c, QTextStream &stream);
132 void writeDataTypes(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream);
133
134 QString umlObjectName(UMLObject *obj);
135
136 QString fixTypeName(const QString &string);
137 QString fixInitialStringDeclValue(const QString &value, const QString &type);
138
139 QString getAttributeVariableName(UMLAttribute *at);
140 QString getAttributeMethodBaseName(const QString &fieldName);
141
142 void writeBlankLine(QTextStream &stream);
143
144 CPPCodeGenerationPolicy *policyExt();
145
146 QString VECTOR_METHOD_APPEND;
147 QString VECTOR_METHOD_REMOVE;
148 QString VECTOR_METHOD_INIT;
149 QString OBJECT_METHOD_INIT;
150
154 bool INLINE_ASSOCIATION_METHODS;
155
156 QStringList ObjectFieldVariables;
157 QStringList VectorFieldVariables;
158 bool m_stringIncludeRequired;
159 };
160
161
162 #endif // CPPWRITER_H
UMLObject::package
QString package(const QString &separator=QString(), bool includeRoot=false)
Definition: umlobject.cpp:577
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
CppWriter::OBJECT_METHOD_INIT
QString OBJECT_METHOD_INIT
Definition: cppwriter.h:149
CPPCodeGenerationPolicy::getDocToolTag
QString getDocToolTag()
Definition: cppcodegenerationpolicy.cpp:256
umlattributelist.h
datatype.h
template.h
UMLClassifier::getOpList
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Definition: classifier.cpp:939
CppWriter::CppWriter
CppWriter()
Definition: cppwriter.cpp:44
UMLClassifier::getUniAssociationToBeImplemented
virtual UMLAssociationList getUniAssociationToBeImplemented()
Definition: classifier.cpp:1325
UMLAttributeListIt
QListIterator< UMLAttribute * > UMLAttributeListIt
Definition: umlattributelist.h:20
Codegen_Utils::cppDatatypes
QStringList cppDatatypes()
Definition: codegen_utils.cpp:23
CppWriter::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: cppwriter.cpp:1437
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
UMLClassifier::isInterface
bool isInterface() const
Definition: classifier.cpp:118
UMLCanvasObject::getSuperClasses
UMLClassifierList getSuperClasses(bool withRealizations=true)
Definition: umlcanvasobject.cpp:349
CppWriter::writeSingleAttributeAccessorMethods
void writeSingleAttributeAccessorMethods(const QString &fieldClassName, const QString &Name, const QString &fieldName, const QString &description, Uml::Changeability::Enum change, bool isHeaderMethod, bool isStatic, bool writeMethodBody, QTextStream &cpp)
Definition: cppwriter.cpp:937
UMLAttributeList
Definition: umlattributelist.h:27
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
CppWriter::writeAttributeDecls
void writeAttributeDecls(UMLClassifier *c, Uml::Visibility::Enum visibility, bool writeStatic, QTextStream &stream)
Definition: cppwriter.cpp:524
umloperationlist.h
CPPCodeGenerationPolicy::getVectorClassName
QString getVectorClassName()
Definition: cppcodegenerationpolicy.cpp:205
CodeGenerator::getHeadingFile
virtual QString getHeadingFile(const QString &file)
Definition: codegenerator.cpp:407
UMLOperation::getParmList
UMLAttributeList getParmList() const
Definition: operation.cpp:178
UMLTemplate::getTypeName
virtual QString getTypeName() const
Definition: template.cpp:80
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
Uml::Changeability::Changeable
@ Changeable
Definition: basictypes.h:205
UMLClassifier::getFilteredList
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:998
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:26
UMLOperation::isConstructorOperation
bool isConstructorOperation()
Definition: operation.cpp:369
CppWriter::ObjectFieldVariables
QStringList ObjectFieldVariables
Definition: cppwriter.h:156
operation.h
UMLAttribute::getInitialValue
QString getInitialValue() const
Definition: attribute.cpp:99
UMLClassifierListItem::getTypeName
virtual QString getTypeName() const
Definition: classifierlistitem.cpp:112
UMLOperation::isDestructorOperation
bool isDestructorOperation()
Definition: operation.cpp:391
Uml::RoleType::A
@ A
Definition: basictypes.h:239
CppWriter
Definition: cppwriter.h:35
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2274
UMLClassifier::hasVectorFields
bool hasVectorFields()
Definition: classifier.cpp:1317
UMLOperation::getConst
bool getConst() const
Definition: operation.cpp:430
UMLEnumLiteral
Sets up attribute information.
Definition: enumliteral.h:26
association.h
SimpleCodeGenerator::fileName_
QString fileName_
Definition: simplecodegenerator.h:52
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:366
UMLClassifier::getTemplateList
UMLTemplateList getTemplateList() const
Definition: classifier.cpp:1148
CppWriter::INLINE_ASSOCIATION_METHODS
bool INLINE_ASSOCIATION_METHODS
Definition: cppwriter.h:154
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
UMLPackage::containedObjects
UMLObjectList & containedObjects()
Definition: package.cpp:228
CppWriter::language
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: cppwriter.cpp:79
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
CppWriter::writeClass
virtual void writeClass(UMLClassifier *c)
Definition: cppwriter.cpp:96
model_utils.h
Uml::TextRole::Name
@ Name
Definition: basictypes.h:182
CppWriter::writeInitAttributeMethod
void writeInitAttributeMethod(UMLClassifier *c, QTextStream &stream)
Definition: cppwriter.cpp:1057
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
CPPCodeGenerationPolicy
Definition: cppcodegenerationpolicy.h:23
SimpleCodeGenerator::indent
QString indent()
Definition: simplecodegenerator.cpp:76
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
SimpleCodeGenerator::m_indentLevel
int m_indentLevel
Definition: simplecodegenerator.h:77
CppWriter::umlObjectName
QString umlObjectName(UMLObject *obj)
Definition: cppwriter.cpp:1372
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
UMLObject::asUMLDatatype
UMLDatatype * asUMLDatatype()
Definition: umlobject.cpp:1311
CPPCodeGenerationPolicy::getStringClassName
QString getStringClassName()
Definition: cppcodegenerationpolicy.cpp:195
UMLEnumLiteral::value
QString value() const
Definition: enumliteral.cpp:55
CppWriter::writeDocumentation
void writeDocumentation(QString header, QString body, QString end, QTextStream &cpp)
Definition: cppwriter.cpp:659
CodeGenerator::forceDoc
bool forceDoc() const
Definition: codegenerator.cpp:765
CppWriter::policyExt
CPPCodeGenerationPolicy * policyExt()
Definition: cppwriter.cpp:87
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:94
CodeGenerator::formatSourceCode
static QString formatSourceCode(const QString &code, const QString &indentation)
Definition: codegenerator.cpp:743
Uml::Changeability::Enum
Enum
Definition: basictypes.h:204
CPPCodeGenerationPolicy::getAccessorsAreInline
bool getAccessorsAreInline()
Definition: cppcodegenerationpolicy.cpp:81
CppWriter::printTextAsSeparateLinesWithIndent
void printTextAsSeparateLinesWithIndent(const QString &text, const QString &indent, QTextStream &stream)
Definition: cppwriter.cpp:1389
UMLClassifier::getAttributeListStatic
UMLAttributeList getAttributeListStatic(Uml::Visibility::Enum scope) const
Definition: classifier.cpp:487
umlclassifierlistitemlist.h
CppWriter::VECTOR_METHOD_INIT
QString VECTOR_METHOD_INIT
Definition: cppwriter.h:148
CPPCodeGenerationPolicy::getStringClassNameInclude
QString getStringClassNameInclude()
Definition: cppcodegenerationpolicy.cpp:200
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
CppWriter::printAssociationIncludeDecl
void printAssociationIncludeDecl(UMLAssociationList list, Uml::ID::Type this_id, QTextStream &stream)
Definition: cppwriter.cpp:1325
Uml::Changeability::Frozen
@ Frozen
Definition: basictypes.h:206
Codegen_Utils::capitalizeFirstLetter
QString capitalizeFirstLetter(const QString &string)
Definition: codegen_utils.cpp:430
UMLClassifier::hasAssociations
bool hasAssociations()
Definition: classifier.cpp:1255
SimpleCodeGenerator::hasAbstractOps
bool hasAbstractOps(UMLClassifier *c)
Definition: simplecodegenerator.cpp:270
classifierlistitem.h
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
CppWriter::writeConstructorDecls
void writeConstructorDecls(QTextStream &h)
Definition: cppwriter.cpp:1023
CppWriter::writeAssociationDecls
void writeAssociationDecls(UMLAssociationList associations, Uml::Visibility::Enum permit, Uml::ID::Type id, QTextStream &stream)
Definition: cppwriter.cpp:681
UMLCanvasObject::getSpecificAssocs
UMLAssociationList getSpecificAssocs(Uml::AssociationType::Enum assocType)
Definition: umlcanvasobject.cpp:61
UMLOperation::getOverride
bool getOverride() const
Definition: operation.cpp:446
SimpleCodeGenerator::className_
QString className_
Definition: simplecodegenerator.h:51
a
QString a
Definition: petalnode.cpp:18
SimpleCodeGenerator::m_endl
QString m_endl
Definition: simplecodegenerator.h:78
CppWriter::fixTypeName
QString fixTypeName(const QString &string)
Definition: cppwriter.cpp:1168
CppWriter::writeBlankLine
void writeBlankLine(QTextStream &stream)
Definition: cppwriter.cpp:1380
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:107
CppWriter::writeHeaderAttributeAccessorMethodDecls
void writeHeaderAttributeAccessorMethodDecls(UMLClassifier *c, Uml::Visibility::Enum permitVisibility, QTextStream &stream)
CppWriter::fixInitialStringDeclValue
QString fixInitialStringDeclValue(const QString &value, const QString &type)
Definition: cppwriter.cpp:1354
CppWriter::getAttributeVariableName
QString getAttributeVariableName(UMLAttribute *at)
Definition: cppwriter.cpp:1404
UMLClassifier::hasAttributes
bool hasAttributes()
Definition: classifier.cpp:1266
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
CodeGenerator::formatDoc
static QString formatDoc(const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80)
Definition: codegenerator.cpp:712
CPPCodeGenerationPolicy::getVectorClassNameInclude
QString getVectorClassNameInclude()
Definition: cppcodegenerationpolicy.cpp:210
CppWriter::getAttributeMethodBaseName
QString getAttributeMethodBaseName(const QString &fieldName)
Definition: cppwriter.cpp:1416
codegenerationpolicy.h
uDebug
#define uDebug()
Definition: debug_utils.h:122
SimpleCodeGenerator
Definition: simplecodegenerator.h:34
CppWriter::m_stringIncludeRequired
bool m_stringIncludeRequired
Definition: cppwriter.h:158
CppWriter::VectorFieldVariables
QStringList VectorFieldVariables
Definition: cppwriter.h:157
Uml::RoleType::B
@ B
Definition: basictypes.h:240
CPPCodeGenerationPolicy::getClassMemberPrefix
QString getClassMemberPrefix()
Definition: cppcodegenerationpolicy.cpp:245
Uml::ProgrammingLanguage::Cpp
@ Cpp
Definition: basictypes.h:274
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
visibility
Definition: visibility.py:1
CppWriter::writeAssociationMethods
void writeAssociationMethods(UMLAssociationList associations, Uml::Visibility::Enum permitVisib, bool isHeaderMethod, bool writeMethodBody, bool writePointerVar, Uml::ID::Type id, QTextStream &stream)
Definition: cppwriter.cpp:778
CppWriter::writeAttributeMethods
void writeAttributeMethods(UMLAttributeList attribs, Uml::Visibility::Enum visib, bool isHeaderMethod, bool isStatic, bool writeMethodBody, QTextStream &stream)
Definition: cppwriter.cpp:601
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifier::hasOperationMethods
bool hasOperationMethods()
Definition: classifier.cpp:1297
UMLClassifier::getAttributeList
UMLAttributeList getAttributeList() const
Definition: classifier.cpp:436
cppcodegenerationpolicy.h
UMLDatatype::originType
UMLClassifier * originType() const
Definition: datatype.cpp:46
UMLCanvasObject::getAggregations
UMLAssociationList getAggregations()
Definition: umlcanvasobject.cpp:412
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
CppWriter::writeComment
void writeComment(const QString &text, const QString &indent, QTextStream &cpp)
Definition: cppwriter.cpp:637
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
CppWriter::writeAssociationRoleMethod
void writeAssociationRoleMethod(const QString &fieldClassName, bool isHeaderMethod, bool writeMethodBody, const QString &roleName, const QString &multi, const QString &description, Uml::Changeability::Enum change, QTextStream &stream)
Definition: cppwriter.cpp:831
CodeGenerator::codeGenerated
void codeGenerated(UMLClassifier *concept, bool generated)
CppWriter::writeOperations
void writeOperations(UMLClassifier *c, bool isHeaderMethod, Uml::Visibility::Enum permitScope, QTextStream &cpp)
Definition: cppwriter.cpp:1186
classifier.h
CppWriter::defaultDatatypes
QStringList defaultDatatypes()
Definition: cppwriter.cpp:1428
UMLOperation
Definition: operation.h:25
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
CppWriter::writeSourceFile
void writeSourceFile(UMLClassifier *c, QFile &file)
Definition: cppwriter.cpp:219
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2290
uml.h
UMLClassifier::hasAccessorMethods
bool hasAccessorMethods()
Definition: classifier.cpp:1289
enumliteral.h
Codegen_Utils::reservedCppKeywords
const QStringList reservedCppKeywords()
Definition: codegen_utils.cpp:51
UMLTemplateListIt
QListIterator< UMLTemplate * > UMLTemplateListIt
Definition: umltemplatelist.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
umlassociationlist.h
UMLAssociation
Sets up association information.
Definition: association.h:33
CppWriter::writeInitAttributeDecl
void writeInitAttributeDecl(UMLClassifier *c, QTextStream &stream)
Definition: cppwriter.cpp:1047
CppWriter::writeConstructorMethods
void writeConstructorMethods(UMLClassifier *c, QTextStream &cpp)
Definition: cppwriter.cpp:1113
CppWriter::writeAssociationRoleDecl
void writeAssociationRoleDecl(QString fieldClassName, QString roleName, QString multi, QString doc, QTextStream &stream)
Definition: cppwriter.cpp:725
UMLObject::isUMLDatatype
bool isUMLDatatype()
Definition: umlobject.h:206
CppWriter::writeHeaderAttributeAccessorMethods
void writeHeaderAttributeAccessorMethods(UMLClassifier *c, Uml::Visibility::Enum visibility, bool writeStatic, QTextStream &stream)
Definition: cppwriter.cpp:584
UMLCanvasObject::getCompositions
UMLAssociationList getCompositions()
Definition: umlcanvasobject.cpp:422
CppWriter::writeClassDecl
void writeClassDecl(UMLClassifier *c, QTextStream &cpp)
Definition: cppwriter.cpp:371
UMLTemplateList
QList< UMLTemplate * > UMLTemplateList
Definition: umltemplatelist.h:18
CppWriter::writeHeaderFile
void writeHeaderFile(UMLClassifier *c, QFile &file)
Definition: cppwriter.cpp:147
CppWriter::writeHeaderFieldDecl
void writeHeaderFieldDecl(UMLClassifier *c, Uml::Visibility::Enum permitVisibility, QTextStream &stream)
Definition: cppwriter.cpp:203
UMLTemplate
Sets up template information.
Definition: template.h:27
simplecodegenerator.h
uIgnoreZeroPointer
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:134
CppWriter::~CppWriter
virtual ~CppWriter()
Definition: cppwriter.cpp:71
CppWriter::writeHeaderAccessorMethodDecl
void writeHeaderAccessorMethodDecl(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream)
Definition: cppwriter.cpp:180
UMLDatatype::isReference
bool isReference() const
Definition: datatype.cpp:64
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
CppWriter::writeVectorAttributeAccessorMethods
void writeVectorAttributeAccessorMethods(const QString &fieldClassName, const QString &fieldVarName, const QString &fieldName, const QString &description, Uml::Changeability::Enum change, bool isHeaderMethod, bool writeMethodBody, QTextStream &stream)
Definition: cppwriter.cpp:855
cppwriter.h
CppWriter::writeDataTypes
void writeDataTypes(UMLClassifier *c, Uml::Visibility::Enum permitScope, QTextStream &stream)
Definition: cppwriter.cpp:1150
CodeGenerator::forceSections
bool forceSections() const
Definition: codegenerator.cpp:775
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
CodeGenerationPolicy::getAutoGenerateConstructors
bool getAutoGenerateConstructors()
Definition: codegenerationpolicy.cpp:365
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18
umltemplatelist.h
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
CppWriter::VECTOR_METHOD_APPEND
QString VECTOR_METHOD_APPEND
Definition: cppwriter.h:146
UMLAssociationList
QList< UMLAssociation * > UMLAssociationList
Definition: umlassociationlist.h:18
SimpleCodeGenerator::findFileName
QString findFileName(UMLPackage *concept, const QString &ext)
Definition: simplecodegenerator.cpp:91
CppWriter::writeIncludes
void writeIncludes(UMLClassifier *c, QTextStream &cpp)
Definition: cppwriter.cpp:345
codegen_utils.h
umldoc.h
CodeGenerator::openFile
bool openFile(QFile &file, const QString &name)
Definition: codegenerator.cpp:523
UMLOperation::getSourceCode
QString getSourceCode() const
Definition: operation.cpp:507
description
static const char description[]
Definition: main.cpp:37
CppWriter::VECTOR_METHOD_REMOVE
QString VECTOR_METHOD_REMOVE
Definition: cppwriter.h:147