umbrello: umbrello/codegenerators/codeoperation.h Source File

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
ClassifierCodeDocument
Definition: classifiercodedocument.h:33
CodeMethodBlock
Definition: codemethodblock.h:29
CodeOperation
Definition: codeoperation.h:24
CodeOperation::updateContent
virtual void updateContent()
Definition: codeoperation.cpp:151
CodeOperation::setAttributesOnNode
virtual void setAttributesOnNode(QDomDocument &doc, QDomElement &blockElement)
Definition: codeoperation.cpp:100
CodeOperation::getParentOperation
UMLOperation * getParentOperation()
Definition: codeoperation.cpp:64
CodeOperation::updateMethodDeclaration
virtual void updateMethodDeclaration()=0
CodeOperation::loadFromXMI1
virtual void loadFromXMI1(QDomElement &root)
Definition: codeoperation.cpp:83
CodeOperation::~CodeOperation
virtual ~CodeOperation()
Definition: codeoperation.cpp:28
CodeOperation::saveToXMI1
virtual void saveToXMI1(QDomDocument &doc, QDomElement &root)
Definition: codeoperation.cpp:72
CodeOperation::findTag
static QString findTag(UMLOperation *op)
Definition: codeoperation.cpp:91
CodeOperation::setAttributesFromObject
virtual void setAttributesFromObject(TextBlock *obj)
Definition: codeoperation.cpp:133
CodeOperation::init
void init(UMLOperation *parentOp)
Definition: codeoperation.cpp:142
CodeOperation::CodeOperation
CodeOperation(ClassifierCodeDocument *doc, UMLOperation *parent, const QString &body=QString(), const QString &comment=QString())
Definition: codeoperation.cpp:22
CodeOperation::setAttributesFromNode
virtual void setAttributesFromNode(QDomElement &element)
Definition: codeoperation.cpp:109
TextBlock
Definition: textblock.h:25
UMLOperation
Definition: operation.h:25
codemethodblock.h
operation.h