umbrello: umbrello/uml1model/datatype.h Source File

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