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

codeoperation.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) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef CODEOPERATION_H
13 #define CODEOPERATION_H
14
15 #include "codemethodblock.h"
16 #include "operation.h"
17
18 #include <QString>
19
23 class CodeOperation : public CodeMethodBlock
24 {
25 Q_OBJECT
26 public:
27
31 CodeOperation (ClassifierCodeDocument * doc, UMLOperation * parent,
32 const QString & body = QString(), const QString & comment = QString());
33
37 virtual ~CodeOperation ();
38
39 UMLOperation * getParentOperation();
40
41 virtual void saveToXMI1 (QDomDocument & doc, QDomElement & root);
42
43 virtual void loadFromXMI1 (QDomElement & root);
44
45 static QString findTag (UMLOperation * op) ;
46
47 virtual void setAttributesFromObject (TextBlock * obj);
48
49 virtual void updateMethodDeclaration() = 0;
50 virtual void updateContent();
51
52 protected:
53
54 // list of parameters used by this code operation.
55 // QList<CodeParameter*> m_parameterVector;
56
57 virtual void setAttributesOnNode (QDomDocument & doc, QDomElement & blockElement);
58
59 virtual void setAttributesFromNode (QDomElement & element);
60
61 private:
62 void init (UMLOperation * parentOp);
63
64 };
65
66 #endif // CODEOPERATION_H
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
CodeMethodBlock::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codemethodblock.cpp:87
CodeOperation::~CodeOperation
virtual ~CodeOperation()
Definition: codeoperation.cpp:28
operation.h
CodeOperation::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codeoperation.cpp:133
CodeOperation::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: codeoperation.cpp:72
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
TextBlock::setTag
void setTag(const QString &value)
Definition: textblock.cpp:121
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
codeoperation.h
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
OwnedCodeBlock::getParentObject
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:64
CodeOperation::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeoperation.cpp:83
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
CodeMethodBlock::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codemethodblock.cpp:106
CodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()=0
CodeOperation::findTag
static QString findTag(UMLOperation *op)
Definition: codeoperation.cpp:91
classifiercodedocument.h
CodeOperation::init
void init(UMLOperation *parentOp)
Definition: codeoperation.cpp:142
CodeMethodBlock::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codemethodblock.cpp:124
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
TextBlock::setCanDelete
void setCanDelete(bool canDelete)
Definition: textblock.cpp:50
CodeOperation::getParentOperation
UMLOperation * getParentOperation()
Definition: codeoperation.cpp:64
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
CodeOperation
Definition: codeoperation.h:24
uml.h
CodeOperation::updateContent
virtual void updateContent()
Definition: codeoperation.cpp:151
debug_utils.h
CodeOperation::CodeOperation
CodeOperation(ClassifierCodeDocument *doc, UMLOperation *parent, const QString &body=QString(), const QString &comment=QString())
Definition: codeoperation.cpp:22
umlobject.h
codemethodblock.h
CodeOperation::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeoperation.cpp:109
TextBlock
Definition: textblock.h:25
CodeOperation::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codeoperation.cpp:100
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
CodeMethodBlock
Definition: codemethodblock.h:29