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(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
UMLArtifact::load1
bool load1(QDomElement &element)
Definition: artifact.cpp:68
UMLArtifact::getDrawAsType
Draw_Type getDrawAsType()
Definition: artifact.cpp:88
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:28
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
artifact.h
UMLArtifact::m_drawAsType
Draw_Type m_drawAsType
Definition: artifact.h:65
UMLArtifact::clone
virtual UMLObject * clone() const
Definition: artifact.cpp:42
association.h
UMLArtifact::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: artifact.cpp:55
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
UMLArtifact::~UMLArtifact
virtual ~UMLArtifact()
Definition: artifact.cpp:34
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLArtifact::UMLArtifact
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: artifact.cpp:24
UMLArtifact::defaultDraw
@ defaultDraw
Definition: artifact.h:36
UMLArtifact::table
@ table
Definition: artifact.h:39
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:845
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
UMLArtifact::library
@ library
Definition: artifact.h:38
UMLArtifact::Draw_Type
Draw_Type
Definition: artifact.h:35
idchangelog.h
package.h
UMLArtifact::file
@ file
Definition: artifact.h:37
UMLArtifact::fullPath
QString fullPath() const
Definition: artifact.cpp:97
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:79
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33