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

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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

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-2021 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
20class DClassDeclarationBlock;
21class DCodeGenerationPolicy;
22
32 class DClassifierCodeDocument : public ClassifierCodeDocument
33{
34 Q_OBJECT
35public:
36
37 explicit DClassifierCodeDocument(UMLClassifier * classifier);
38 virtual ~DClassifierCodeDocument();
39
40// CodeDocumentDialog getDialog();
41
42 DCodeGenerationPolicy * getDPolicy();
43
44 QString getDClassName(const QString &name) const;
45
46 QString getPath() const;
47
48 bool addCodeOperation(CodeOperation * op);
49
50 void updateContent();
51
52protected:
53
54 void resetTextBlocks();
55
56 virtual void loadChildTextBlocksFromNode(QDomElement & root);
57
58 void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock * codeBlock);
59
60 bool forceDoc();
61
62private:
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:91
DClassifierCodeDocument::forceDoc
bool forceDoc()
Definition dclassifiercodedocument.cpp:61
DClassifierCodeDocument::loadChildTextBlocksFromNode
virtual void loadChildTextBlocksFromNode(QDomElement &root)
Definition dclassifiercodedocument.cpp:131
DClassifierCodeDocument::addOrUpdateCodeClassFieldMethodsInCodeBlock
void addOrUpdateCodeClassFieldMethodsInCodeBlock(CodeClassFieldList &list, DClassDeclarationBlock *codeBlock)
DClassifierCodeDocument::~DClassifierCodeDocument
virtual ~DClassifierCodeDocument()
Definition dclassifiercodedocument.cpp:39
DClassifierCodeDocument::resetTextBlocks
void resetTextBlocks()
Definition dclassifiercodedocument.cpp:260
DClassifierCodeDocument::addCodeOperation
bool addCodeOperation(CodeOperation *op)
Definition dclassifiercodedocument.cpp:114
DClassifierCodeDocument::getClassDecl
DClassDeclarationBlock * getClassDecl()
Definition dclassifiercodedocument.cpp:246
DClassifierCodeDocument::getDPolicy
DCodeGenerationPolicy * getDPolicy()
Definition dclassifiercodedocument.cpp:44
DClassifierCodeDocument::updateContent
void updateContent()
Definition dclassifiercodedocument.cpp:278
DClassifierCodeDocument::classDeclCodeBlock
DClassDeclarationBlock * classDeclCodeBlock
Definition dclassifiercodedocument.h:64
DClassifierCodeDocument::getPath
QString getPath() const
Definition dclassifiercodedocument.cpp:67
DClassifierCodeDocument::getDClassName
QString getDClassName(const QString &name) const
Definition dclassifiercodedocument.cpp:85
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:14
dcodeclassfield.h
dcodeoperation.h
hierarchicalcodeblock.h