umbrello  2.31.70
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
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: datatype.cpp:93
QString name() const
Definition: umlobject.cpp:211
bool m_isRef
Definition: datatype.h:42
Non-graphical information for a Datatype.
Definition: datatype.h:25
virtual ~UMLDatatype()
Definition: datatype.cpp:29
UMLClassifier * originType() const
Definition: datatype.cpp:46
void setIsReference(bool isRef=true)
Definition: datatype.cpp:55
std::string Type
Definition: basictypes.h:351
virtual bool loadFromXMI1(QDomElement &element)
Definition: datatype.cpp:74
UMLDatatype(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: datatype.cpp:19
bool isReference() const
Definition: datatype.cpp:64
void setOriginType(UMLClassifier *origType)
Definition: datatype.cpp:37
const Type None
special value for uninitialized ID
Definition: basictypes.h:353