umbrello: umbrello/umlmodel/artifact.h Source File

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

artifact.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 ARTIFACT_H
7#define ARTIFACT_H
8
9#include "package.h"
10
22 class UMLArtifact : public UMLPackage
23{
24 Q_OBJECT
25public:
26
30 enum Draw_Type {
31 defaultDraw,
32 file,
33 library,
34 table
35 };
36
37 explicit UMLArtifact(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
38 virtual ~UMLArtifact();
39
40 virtual UMLObject* clone() const;
41
42 void saveToXMI(QXmlStreamWriter& writer);
43
44 void setDrawAsType(Draw_Type type);
45
46 Draw_Type getDrawAsType() const;
47
48 QString fullPath() const;
49
50protected:
51
52 bool load1(QDomElement & element);
53
54private:
55
60 Draw_Type m_drawAsType;
61};
62
63#endif
UMLArtifact::Draw_Type
Draw_Type
Definition artifact.h:30
UMLArtifact::library
@ library
Definition artifact.h:33
UMLArtifact::table
@ table
Definition artifact.h:34
UMLArtifact::file
@ file
Definition artifact.h:32
UMLArtifact::defaultDraw
@ defaultDraw
Definition artifact.h:31
UMLArtifact::UMLArtifact
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition artifact.cpp:19
UMLArtifact::fullPath
QString fullPath() const
Definition artifact.cpp:91
UMLArtifact::~UMLArtifact
virtual ~UMLArtifact()
Definition artifact.cpp:29
UMLArtifact::load1
bool load1(QDomElement &element)
Definition artifact.cpp:62
UMLArtifact::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition artifact.cpp:49
UMLArtifact::clone
virtual UMLObject * clone() const
Definition artifact.cpp:37
UMLArtifact::getDrawAsType
Draw_Type getDrawAsType() const
Definition artifact.cpp:82
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Definition artifact.cpp:73
UMLArtifact::m_drawAsType
Draw_Type m_drawAsType
Definition artifact.h:60
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLObject::name
QString name() const
Definition umlobject.cpp:207
UMLPackage::UMLPackage
UMLPackage(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition package.cpp:38
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
package.h