umbrello: umbrello/uml1model/port.h Source File

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

port.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) 2014-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef PORT_H
12 #define PORT_H
13
14 #include "umlcanvasobject.h"
15
26 class UMLPort : public UMLCanvasObject
27 {
28 Q_OBJECT
29 public:
30
31 explicit UMLPort(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
32 virtual ~UMLPort();
33
34 virtual void init();
35
36 virtual UMLObject* clone() const;
37
38 void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
39
40 protected:
41
42 bool load1(QDomElement & element);
43
44 };
45
46 #endif
port.h
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:34
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
umlcanvasobject.h
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLPort
Non-graphical information for a Port.
Definition: port.h:27
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLPort::init
virtual void init()
Definition: port.cpp:37
UMLPort::~UMLPort
virtual ~UMLPort()
Definition: port.cpp:30
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLPort::load1
bool load1(QDomElement &element)
Definition: port.cpp:64
UMLPort::clone
virtual UMLObject * clone() const
Definition: port.cpp:45
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:844
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
UMLPort::UMLPort
UMLPort(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: port.cpp:21
UMLPort::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: port.cpp:55