umbrello: umbrello/uml1model/datatype.h Source File

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

datatype.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-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DATATYPE_H
12 #define DATATYPE_H
13
14 #include "classifier.h"
15
25 class UMLDatatype : public UMLClassifier
26 {
27 Q_OBJECT
28 public:
29 UMLDatatype(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None);
30 virtual ~UMLDatatype();
31
32 void setOriginType(UMLClassifier *origType);
33 UMLClassifier * originType() const;
34
35 void setIsReference(bool isRef = true);
36 bool isReference() const;
37
38 virtual bool loadFromXMI1(QDomElement & element);
39 virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
40
41 protected:
42 bool m_isRef;
43 };
44
45 #endif
datatype.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:25
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:370
UMLObject::m_SecondaryId
QString m_SecondaryId
Definition: umlobject.h:286
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1280
UMLDatatype::m_isRef
bool m_isRef
Definition: datatype.h:50
Uml::ID::Type
std::string Type
Definition: basictypes.h:368
UMLDatatype::~UMLDatatype
virtual ~UMLDatatype()
Definition: datatype.cpp:29
UMLObject::m_pSecondary
QPointer< UMLObject > m_pSecondary
Definition: umlobject.h:282
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:844
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
UMLDatatype::originType
UMLClassifier * originType() const
Definition: datatype.cpp:46
UMLDatatype::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: datatype.cpp:74
classifier.h
UMLDatatype::setIsReference
void setIsReference(bool isRef=true)
Definition: datatype.cpp:55
UMLObject::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: umlobject.cpp:954
UMLDatatype::UMLDatatype
UMLDatatype(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: datatype.cpp:19
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
UMLDatatype::isReference
bool isReference() const
Definition: datatype.cpp:64
UMLDatatype::setOriginType
void setOriginType(UMLClassifier *origType)
Definition: datatype.cpp:37
UMLDatatype::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: datatype.cpp:93