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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

datatype.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2003-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DATATYPE_H
7#define DATATYPE_H
8
9#include "classifier.h"
10
20 class UMLDatatype : public UMLClassifier
21{
22 Q_OBJECT
23 public:
24 UMLDatatype(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None);
25 virtual ~UMLDatatype();
26
27 void setOriginType(UMLClassifier *origType);
28 UMLClassifier * originType() const;
29
30 void setIsReference(bool isRef = true);
31 bool isReference() const;
32
33 void setActive(bool active = true);
34 bool isActive() const;
35
36 virtual bool load1(QDomElement & element);
37 virtual void saveToXMI(QXmlStreamWriter& writer);
38
39 protected:
40 bool m_isRef;
41 bool m_isActive;
42};
43
44#endif
UMLClassifier
Information for a non-graphical Concept/Class.
Definition classifier.h:35
UMLDatatype
Non-graphical information for a Datatype.
Definition datatype.h:21
UMLDatatype::originType
UMLClassifier * originType() const
Definition datatype.cpp:42
UMLDatatype::UMLDatatype
UMLDatatype(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition datatype.cpp:14
UMLDatatype::m_isRef
bool m_isRef
Definition datatype.h:40
UMLDatatype::setOriginType
void setOriginType(UMLClassifier *origType)
Definition datatype.cpp:33
UMLDatatype::m_isActive
bool m_isActive
Definition datatype.h:41
UMLDatatype::load1
virtual bool load1(QDomElement &element)
Definition datatype.cpp:89
UMLDatatype::setIsReference
void setIsReference(bool isRef=true)
Definition datatype.cpp:51
UMLDatatype::isActive
bool isActive() const
Definition datatype.cpp:78
UMLDatatype::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition datatype.cpp:107
UMLDatatype::setActive
void setActive(bool active=true)
Definition datatype.cpp:69
UMLDatatype::~UMLDatatype
virtual ~UMLDatatype()
Definition datatype.cpp:25
UMLDatatype::isReference
bool isReference() const
Definition datatype.cpp:60
UMLObject::name
QString name() const
Definition umlobject.cpp:207
classifier.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition basictypes.h:373
Uml::ID::Type
std::string Type
Definition basictypes.h:371