umbrello  2.31.70
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 {
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(QDomDocument & qDoc, QDomElement & qElement);
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
bool load1(QDomElement &element)
Definition: artifact.cpp:68
QString fullPath() const
Definition: artifact.cpp:97
Non-graphical information for a Package.
Definition: package.h:32
Draw_Type m_drawAsType
Definition: artifact.h:65
Definition: artifact.h:39
virtual UMLObject * clone() const
Definition: artifact.cpp:42
Draw_Type getDrawAsType()
Definition: artifact.cpp:88
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: artifact.cpp:55
virtual ~UMLArtifact()
Definition: artifact.cpp:34
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: artifact.cpp:24
The base class for UML objects.
Definition: umlobject.h:73
QString name() const
Definition: umlobject.cpp:211
Definition: artifact.h:36
Draw_Type
Definition: artifact.h:35
std::string Type
Definition: basictypes.h:351
Definition: artifact.h:37
Non-graphical information for a Artifact.
Definition: artifact.h:27
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:79
Definition: artifact.h:38
const Type None
special value for uninitialized ID
Definition: basictypes.h:353