umbrello  2.32.2
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  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2003-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef ARTIFACT_H
12 #define ARTIFACT_H
13 
14 #include "package.h"
15 
27 class UMLArtifact : public UMLPackage
28 {
29  Q_OBJECT
30 public:
31 
35  enum Draw_Type {
39  table
40  };
41 
42  explicit UMLArtifact(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
43  virtual ~UMLArtifact();
44 
45  virtual UMLObject* clone() const;
46 
47  void saveToXMI1(QXmlStreamWriter& writer);
48 
49  void setDrawAsType(Draw_Type type);
50 
52 
53  QString fullPath() const;
54 
55 protected:
56 
57  bool load1(QDomElement & element);
58 
59 private:
60 
66 };
67 
68 #endif
Non-graphical information for a Artifact.
Definition: artifact.h:28
Draw_Type
Definition: artifact.h:35
@ library
Definition: artifact.h:38
@ table
Definition: artifact.h:39
@ file
Definition: artifact.h:37
@ defaultDraw
Definition: artifact.h:36
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: artifact.cpp:24
void saveToXMI1(QXmlStreamWriter &writer)
Definition: artifact.cpp:55
QString fullPath() const
Definition: artifact.cpp:97
Draw_Type getDrawAsType()
Definition: artifact.cpp:88
virtual ~UMLArtifact()
Definition: artifact.cpp:34
bool load1(QDomElement &element)
Definition: artifact.cpp:68
virtual UMLObject * clone() const
Definition: artifact.cpp:42
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:79
Draw_Type m_drawAsType
Definition: artifact.h:65
The base class for UML objects.
Definition: umlobject.h:75
QString name() const
Definition: umlobject.cpp:211
Non-graphical information for a Package.
Definition: package.h:33
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
std::string Type
Definition: basictypes.h:385