umbrello: umbrello/codegenerators/d/dclassifiercodedocument.h Source File

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

dclassifiercodedocument.h
Go to the documentation of this file.
1 /*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2007 Jari-Matti Mäkelä <jmjm@iki.fi>
5 SPDX-FileCopyrightText: 2008-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6 */
7
8 #ifndef DCLASSIFIERCODEDOCUMENT_H
9 #define DCLASSIFIERCODEDOCUMENT_H
10
11 #include "codeclassfieldlist.h"
12 #include "classifiercodedocument.h"
13 #include "classifier.h"
14 #include "hierarchicalcodeblock.h"
15 #include "dcodeclassfield.h"
16 #include "dcodeoperation.h"
17
18 #include <QString>
19
20 class DClassDeclarationBlock;
21 class DCodeGenerationPolicy;
22
32 class DClassifierCodeDocument : public ClassifierCodeDocument
33 {
34 Q_OBJECT
35 public:
36
37 explicit DClassifierCodeDocument(UMLClassifier * classifier);
38 virtual ~DClassifierCodeDocument();
39
40 // CodeDocumentDialog getDialog();
41
42 DCodeGenerationPolicy * getDPolicy();
43
44 QString getDClassName(const QString &name);
45
46 QString getPath();
47
48 bool addCodeOperation(CodeOperation * op);
49
50 void updateContent();
51
52 protected:
53
54 void resetTextBlocks();
55
56 virtual void loadChildTextBlocksFromNode(QDomElement & root);
57
58 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock * codeBlock);
59
60 bool forceDoc();
61
62 private:
63
64 DClassDeclarationBlock * classDeclCodeBlock;
65 HierarchicalCodeBlock * constructorBlock;
66 HierarchicalCodeBlock * operationsBlock;
67
68 /*
69 QString fileName; // Just for our convenience in creating code
70 QString endLine; // characters for ending line. Just for our convenience in creating code
71 QString DClassName;
72 */
73 void init();
74 DClassDeclarationBlock * getClassDecl();
75
76 };
77
78 #endif // DCLASSIFIERCODEDOCUMENT_H
ClassifierCodeDocument
Definition: classifiercodedocument.h:29
CodeOperation
Definition: codeoperation.h:20
DClassDeclarationBlock
Definition: dclassdeclarationblock.h:17
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:33
DClassifierCodeDocument::init
void init()
Definition: dclassifiercodedocument.cpp:89
DClassifierCodeDocument::forceDoc
bool forceDoc()
Definition: dclassifiercodedocument.cpp:59
DClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: dclassifiercodedocument.cpp:129
DClassifierCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock *codeBlock)
DClassifierCodeDocument::~DClassifierCodeDocument
virtual ~DClassifierCodeDocument()
Definition: dclassifiercodedocument.cpp:37
DClassifierCodeDocument::getPath
QString getPath()
Definition: dclassifiercodedocument.cpp:65
DClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: dclassifiercodedocument.cpp:257
DClassifierCodeDocument::DClassifierCodeDocument
DClassifierCodeDocument(UMLClassifier *classifier)
Definition: dclassifiercodedocument.cpp:28
DClassifierCodeDocument::getDClassName
QString getDClassName(const QString &name)
Definition: dclassifiercodedocument.cpp:83
DClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: dclassifiercodedocument.cpp:112
DClassifierCodeDocument::getClassDecl
DClassDeclarationBlock * getClassDecl()
Definition: dclassifiercodedocument.cpp:243
DClassifierCodeDocument::getDPolicy
DCodeGenerationPolicy * getDPolicy()
Definition: dclassifiercodedocument.cpp:42
DClassifierCodeDocument::updateContent
void updateContent()
Definition: dclassifiercodedocument.cpp:275
DClassifierCodeDocument::classDeclCodeBlock
DClassDeclarationBlock * classDeclCodeBlock
Definition: dclassifiercodedocument.h:64
DClassifierCodeDocument::constructorBlock
HierarchicalCodeBlock * constructorBlock
Definition: dclassifiercodedocument.h:65
DClassifierCodeDocument::operationsBlock
HierarchicalCodeBlock * operationsBlock
Definition: dclassifiercodedocument.h:66
DCodeGenerationPolicy
Definition: dcodegenerationpolicy.h:19
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:21
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:35
classifier.h
classifiercodedocument.h
codeclassfieldlist.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:12
dcodeclassfield.h
dcodeoperation.h
hierarchicalcodeblock.h