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

umbrello 2.32.3 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 * 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) 2007 Jari-Matti Mäkelä <jmjm@iki.fi> *
8 * copyright (C) 2008-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DCLASSIFIERCODEDOCUMENT_H
13 #define DCLASSIFIERCODEDOCUMENT_H
14
15 #include "codeclassfieldlist.h"
16 #include "classifiercodedocument.h"
17 #include "classifier.h"
18 #include "hierarchicalcodeblock.h"
19 #include "dcodeclassfield.h"
20 #include "dcodeoperation.h"
21
22 #include <QString>
23
24 class DClassDeclarationBlock;
25 class DCodeGenerationPolicy;
26
36 class DClassifierCodeDocument : public ClassifierCodeDocument
37 {
38 Q_OBJECT
39 public:
40
41 explicit DClassifierCodeDocument(UMLClassifier * classifier);
42 virtual ~DClassifierCodeDocument();
43
44 // CodeDocumentDialog getDialog();
45
46 DCodeGenerationPolicy * getDPolicy();
47
48 QString getDClassName(const QString &name);
49
50 QString getPath();
51
52 bool addCodeOperation(CodeOperation * op);
53
54 void updateContent();
55
56 protected:
57
58 void resetTextBlocks();
59
60 virtual void loadChildTextBlocksFromNode(QDomElement & root);
61
62 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock * codeBlock);
63
64 bool forceDoc();
65
66 private:
67
68 DClassDeclarationBlock * classDeclCodeBlock;
69 HierarchicalCodeBlock * constructorBlock;
70 HierarchicalCodeBlock * operationsBlock;
71
72 /*
73 QString fileName; // Just for our convenience in creating code
74 QString endLine; // characters for ending line. Just for our convenience in creating code
75 QString DClassName;
76 */
77 void init();
78 DClassDeclarationBlock * getClassDecl();
79
80 };
81
82 #endif // DCLASSIFIERCODEDOCUMENT_H
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
CodeOperation
Definition: codeoperation.h:24
DClassDeclarationBlock
Definition: dclassdeclarationblock.h:21
DClassifierCodeDocument
Definition: dclassifiercodedocument.h:37
DClassifierCodeDocument::init
void init()
Definition: dclassifiercodedocument.cpp:93
DClassifierCodeDocument::forceDoc
bool forceDoc()
Definition: dclassifiercodedocument.cpp:63
DClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition: dclassifiercodedocument.cpp:133
DClassifierCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock *codeBlock)
DClassifierCodeDocument::~DClassifierCodeDocument
virtual ~DClassifierCodeDocument()
Definition: dclassifiercodedocument.cpp:41
DClassifierCodeDocument::getPath
QString getPath()
Definition: dclassifiercodedocument.cpp:69
DClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition: dclassifiercodedocument.cpp:261
DClassifierCodeDocument::DClassifierCodeDocument
DClassifierCodeDocument(UMLClassifier *classifier)
Definition: dclassifiercodedocument.cpp:32
DClassifierCodeDocument::getDClassName
QString getDClassName(const QString &name)
Definition: dclassifiercodedocument.cpp:87
DClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition: dclassifiercodedocument.cpp:116
DClassifierCodeDocument::getClassDecl
DClassDeclarationBlock * getClassDecl()
Definition: dclassifiercodedocument.cpp:247
DClassifierCodeDocument::getDPolicy
DCodeGenerationPolicy * getDPolicy()
Definition: dclassifiercodedocument.cpp:46
DClassifierCodeDocument::updateContent
void updateContent()
Definition: dclassifiercodedocument.cpp:279
DClassifierCodeDocument::classDeclCodeBlock
DClassDeclarationBlock * classDeclCodeBlock
Definition: dclassifiercodedocument.h:68
DClassifierCodeDocument::constructorBlock
HierarchicalCodeBlock * constructorBlock
Definition: dclassifiercodedocument.h:69
DClassifierCodeDocument::operationsBlock
HierarchicalCodeBlock * operationsBlock
Definition: dclassifiercodedocument.h:70
DCodeGenerationPolicy
Definition: dcodegenerationpolicy.h:23
HierarchicalCodeBlock
Definition: hierarchicalcodeblock.h:23
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
classifier.h
classifiercodedocument.h
codeclassfieldlist.h
CodeClassFieldList
QList< CodeClassField * > CodeClassFieldList
Definition: codeclassfieldlist.h:17
dcodeclassfield.h
dcodeoperation.h
hierarchicalcodeblock.h