umbrello 2.34.70-5524f40e1
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
22class UMLArtifact : public UMLPackage
23{
24 Q_OBJECT
25public:
26
30 enum Draw_Type {
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
47
48 QString fullPath() const;
49
50protected:
51
52 bool load1(QDomElement & element);
53
54private:
55
61};
62
63#endif
Non-graphical information for a Artifact.
Definition: artifact.h:23
Draw_Type
Definition: artifact.h:30
@ library
Definition: artifact.h:33
@ table
Definition: artifact.h:34
@ file
Definition: artifact.h:32
@ defaultDraw
Definition: artifact.h:31
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: artifact.cpp:19
QString fullPath() const
Definition: artifact.cpp:91
virtual ~UMLArtifact()
Definition: artifact.cpp:29
bool load1(QDomElement &element)
Definition: artifact.cpp:62
void saveToXMI(QXmlStreamWriter &writer)
Definition: artifact.cpp:49
virtual UMLObject * clone() const
Definition: artifact.cpp:37
Draw_Type getDrawAsType() const
Definition: artifact.cpp:82
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:73
Draw_Type m_drawAsType
Definition: artifact.h:60
The base class for UML objects.
Definition: umlobject.h:70
QString name() const
Definition: umlobject.cpp:207
Non-graphical information for a Package.
Definition: package.h:28
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
std::string Type
Definition: basictypes.h:371