umbrello: umbrello/codegenerators/codeoperation.h Source File

umbrello 2.38.5 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

codeoperation.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov>
5 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef CODEOPERATION_H
9#define CODEOPERATION_H
10
11#include "codemethodblock.h"
12#include "operation.h"
13
14#include <QString>
15
19 class CodeOperation : public CodeMethodBlock
20{
21 Q_OBJECT
22public:
23
27 CodeOperation (ClassifierCodeDocument * doc, UMLOperation * parent,
28 const QString & body = QString(), const QString & comment = QString());
29
33 virtual ~CodeOperation ();
34
35 UMLOperation * getParentOperation();
36
37 virtual void saveToXMI(QXmlStreamWriter& writer);
38
39 virtual void loadFromXMI (QDomElement & root);
40
41 static QString findTag (UMLOperation * op) ;
42
43 virtual void setAttributesFromObject (TextBlock * obj);
44
45 virtual void updateMethodDeclaration() = 0;
46 virtual void updateContent();
47
48protected:
49
50 // list of parameters used by this code operation.
51 // QList<CodeParameter*> m_parameterVector;
52
53 virtual void setAttributesOnNode (QXmlStreamWriter& writer);
54
55 virtual void setAttributesFromNode (QDomElement & element);
56
57private:
58 void init (UMLOperation * parentOp);
59
60};
61
62#endif // CODEOPERATION_H
ClassifierCodeDocument
Definition classifiercodedocument.h:29
CodeMethodBlock
Definition codemethodblock.h:26
CodeOperation
Definition codeoperation.h:20
CodeOperation::updateContent
virtual void updateContent()
Definition codeoperation.cpp:150
CodeOperation::getParentOperation
UMLOperation * getParentOperation()
Definition codeoperation.cpp:63
CodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()=0
CodeOperation::setAttributesOnNode
virtual void setAttributesOnNode(QXmlStreamWriter &writer)
Definition codeoperation.cpp:99
CodeOperation::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition codeoperation.cpp:71
CodeOperation::~CodeOperation
virtual ~CodeOperation()
Definition codeoperation.cpp:27
CodeOperation::loadFromXMI
virtual void loadFromXMI(QDomElement &root)
Definition codeoperation.cpp:82
CodeOperation::findTag
static QString findTag(UMLOperation *op)
Definition codeoperation.cpp:90
CodeOperation::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition codeoperation.cpp:132
CodeOperation::init
void init(UMLOperation *parentOp)
Definition codeoperation.cpp:141
CodeOperation::CodeOperation
CodeOperation(ClassifierCodeDocument *doc, UMLOperation *parent, const QString &body=QString(), const QString &comment=QString())
Definition codeoperation.cpp:21
CodeOperation::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition codeoperation.cpp:108
TextBlock
Definition textblock.h:23
UMLOperation
Definition operation.h:20
codemethodblock.h
operation.h