umbrello 26.03.70-1a62d36 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

umlartifact.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 "umlpackage.h"
10
22 class UMLArtifact : public UMLPackage
23{
24 Q_OBJECT
25 public:
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
50 protected:
51
52 bool load1(QDomElement & element);
53
54 private:
55
60 Draw_Type m_drawAsType;
61};
62
63#endif
UMLArtifact
Non-graphical information for a Artifact.
Definition: umlartifact.h:23
UMLArtifact::Draw_Type
Draw_Type
Definition: umlartifact.h:30
UMLArtifact::library
@ library
Definition: umlartifact.h:33
UMLArtifact::table
@ table
Definition: umlartifact.h:34
UMLArtifact::file
@ file
Definition: umlartifact.h:32
UMLArtifact::defaultDraw
@ defaultDraw
Definition: umlartifact.h:31
UMLArtifact::fullPath
QString fullPath() const
Definition: umlartifact.cpp:91
UMLArtifact::~UMLArtifact
virtual ~UMLArtifact()
Definition: umlartifact.cpp:29
UMLArtifact::load1
bool load1(QDomElement &element)
Definition: umlartifact.cpp:62
UMLArtifact::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umlartifact.cpp:49
UMLArtifact::clone
virtual UMLObject * clone() const
Definition: umlartifact.cpp:37
UMLArtifact::getDrawAsType
Draw_Type getDrawAsType() const
Definition: umlartifact.cpp:82
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Definition: umlartifact.cpp:73
UMLArtifact::m_drawAsType
Draw_Type m_drawAsType
Definition: umlartifact.h:60
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLPackage
Non-graphical information for a Package.
Definition: umlpackage.h:28
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
umlpackage.h