umbrello  2.32.2
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  void setActive(bool active = true);
39  bool isActive() const;
40 
41  virtual bool load1(QDomElement & element);
42  virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
43 
44 protected:
45  bool m_isRef;
46  bool m_isActive;
47 };
48 
49 #endif
UMLDatatype::load1
virtual bool load1(QDomElement &element)
Definition: datatype.cpp:93
datatype.h
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLDatatype::isActive
bool isActive() const
Definition: datatype.cpp:82
UMLDatatype::setActive
void setActive(bool active=true)
Definition: datatype.cpp:73
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:53
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:845
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
UMLDatatype::originType
UMLClassifier * originType() const
Definition: datatype.cpp:46
classifier.h
UMLDatatype::setIsReference
void setIsReference(bool isRef=true)
Definition: datatype.cpp:55
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::m_isActive
bool m_isActive
Definition: datatype.h:54
UMLDatatype::setOriginType
void setOriginType(UMLClassifier *origType)
Definition: datatype.cpp:37
UMLDatatype::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: datatype.cpp:112