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

cppsourcecodedocument.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) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CPPSOURCECODEDOCUMENT_H
12 #define CPPSOURCECODEDOCUMENT_H
13
14 #include "classifiercodedocument.h"
15 #include "hierarchicalcodeblock.h"
16
17 #include <QString>
18
22 class CPPSourceCodeDocument : public ClassifierCodeDocument
23 {
24 Q_OBJECT
25 public:
26
30 explicit CPPSourceCodeDocument(UMLClassifier * classifier);
31
35 virtual ~CPPSourceCodeDocument();
36
44 bool addCodeOperation(CodeOperation * op);
45
55 void updateContent();
56
57 protected:
58
62 void resetTextBlocks();
63
64 private:
65
66 HierarchicalCodeBlock * m_constructorBlock;
67 HierarchicalCodeBlock * m_methodsBlock;
68
69 };
70
71 #endif // CPPSOURCECODEDOCUMENT_H
CodeClassField::Composition
@ Composition
Definition: codeclassfield.h:34
CPPSourceCodeDocument::CPPSourceCodeDocument
CPPSourceCodeDocument(UMLClassifier *classifier)
Definition: cppsourcecodedocument.cpp:36
CPPSourceCodeDocument::~CPPSourceCodeDocument
virtual ~CPPSourceCodeDocument()
Definition: cppsourcecodedocument.cpp:51
cppcodedocumentation.h
cppcodeclassfield.h
CodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: codedocument.cpp:338
cppcodegenerator.h
CodeGenObjectWithTextBlocks::addOrUpdateTaggedCodeBlockWithComments
CodeBlockWithComments * addOrUpdateTaggedCodeBlockWithComments(const QString &tag, const QString &text, const QString &ctext, int indentLevel, bool forceUserBlockUpdate)
Definition: codegenobjectwithtextblocks.cpp:280
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
hierarchicalcodeblock.h
TextBlock::setWriteOutText
void setWriteOutText(bool write)
Definition: textblock.cpp:131
CodeDocument::setFileExtension
void setFileExtension(const QString &new_var)
Definition: codedocument.cpp:72
UMLApp::commonPolicy
CodeGenerationPolicy * commonPolicy() const
Definition: uml.cpp:2283
cppsourcecodeclassfielddeclarationblock.h
CodeClassField::Aggregation
@ Aggregation
Definition: codeclassfield.h:34
CodeClassField::PlainAssociation
@ PlainAssociation
Definition: codeclassfield.h:34
CodeClassField::Attribute
@ Attribute
Definition: codeclassfield.h:34
CPPSourceCodeDocument::updateContent
void updateContent()
Definition: cppsourcecodedocument.cpp:82
CPPSourceCodeDocument::m_methodsBlock
HierarchicalCodeBlock * m_methodsBlock
Definition: cppsourcecodedocument.h:67
CodeGenPolicyExt
Definition: codegenpolicyext.h:28
CPPCodeGenerationPolicy
Definition: cppcodegenerationpolicy.h:23
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
HierarchicalCodeBlock::addCodeClassFieldMethods
void addCodeClassFieldMethods(CodeClassFieldList &list)
Definition: hierarchicalcodeblock.cpp:215
UMLOperation::isLifeOperation
bool isLifeOperation()
Definition: operation.cpp:414
ClassifierCodeDocument::getSpecificClassFields
CodeClassFieldList getSpecificClassFields(CodeClassField::ClassFieldType cfType)
Definition: classifiercodedocument.cpp:54
classifiercodedocument.h
CPPSourceCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: cppsourcecodedocument.cpp:72
HierarchicalCodeBlock::addTextBlock
bool addTextBlock(TextBlock *add_object)
Definition: hierarchicalcodeblock.cpp:93
ClassifierCodeDocument::getCodeClassFieldList
CodeClassFieldList * getCodeClassFieldList()
Definition: classifiercodedocument.cpp:266
CodeBlockWithComments
Definition: codeblockwithcomments.h:24
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
cppcodegenerationpolicy.h
CPPSourceCodeDocument
Definition: cppsourcecodedocument.h:23
CodeGenObjectWithTextBlocks::getHierarchicalCodeBlock
virtual HierarchicalCodeBlock * getHierarchicalCodeBlock(const QString &tag, const QString &comment, int indentLevel)
Definition: codegenobjectwithtextblocks.cpp:177
ClassifierCodeDocument::getParentClassifier
UMLClassifier * getParentClassifier()
Definition: classifiercodedocument.cpp:275
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:23
CodeOperation::getParentOperation
UMLOperation * getParentOperation()
Definition: codeoperation.cpp:64
uError
#define uError()
Definition: debug_utils.h:123
CodeOperation
Definition: codeoperation.h:24
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2299
uml.h
CodeGenerationPolicy::getNewLineEndingChars
QString getNewLineEndingChars() const
Definition: codegenerationpolicy.cpp:253
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:17
cppsourcecodedocument.h
CPPSourceCodeDocument::m_constructorBlock
HierarchicalCodeBlock * m_constructorBlock
Definition: cppsourcecodedocument.h:66
CPPCodeGenerationPolicy::getAutoGenerateAccessors
bool getAutoGenerateAccessors()
Definition: cppcodegenerationpolicy.cpp:190
CPPSourceCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: cppsourcecodedocument.cpp:55