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

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

- File List
- File Members

umldatatype.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 "umlclassifier.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: umlclassifier.h:35
UMLDatatype
Non-graphical information for a Datatype.
Definition: umldatatype.h:21
UMLDatatype::originType
UMLClassifier * originType() const
Definition: umldatatype.cpp:42
UMLDatatype::m_isRef
bool m_isRef
Definition: umldatatype.h:40
UMLDatatype::setOriginType
void setOriginType(UMLClassifier *origType)
Definition: umldatatype.cpp:33
UMLDatatype::m_isActive
bool m_isActive
Definition: umldatatype.h:41
UMLDatatype::load1
virtual bool load1(QDomElement &element)
Definition: umldatatype.cpp:89
UMLDatatype::setIsReference
void setIsReference(bool isRef=true)
Definition: umldatatype.cpp:51
UMLDatatype::isActive
bool isActive() const
Definition: umldatatype.cpp:78
UMLDatatype::saveToXMI
virtual void saveToXMI(QXmlStreamWriter &writer)
Definition: umldatatype.cpp:107
UMLDatatype::setActive
void setActive(bool active=true)
Definition: umldatatype.cpp:69
UMLDatatype::~UMLDatatype
virtual ~UMLDatatype()
Definition: umldatatype.cpp:25
UMLDatatype::isReference
bool isReference() const
Definition: umldatatype.cpp:60
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
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
umlclassifier.h