umbrello  2.34.3
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 
22 class UMLArtifact : public UMLPackage
23 {
24  Q_OBJECT
25 public:
26 
30  enum Draw_Type {
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 
61 };
62 
63 #endif
UMLArtifact::load1
bool load1(QDomElement &element)
Definition: artifact.cpp:62
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:22
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLArtifact::getDrawAsType
Draw_Type getDrawAsType() const
Definition: artifact.cpp:82
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:93
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
artifact.h
UMLArtifact::m_drawAsType
Draw_Type m_drawAsType
Definition: artifact.h:60
UMLArtifact::clone
virtual UMLObject * clone() const
Definition: artifact.cpp:37
association.h
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:651
UMLObject::save1end
void save1end(QXmlStreamWriter &writer)
Definition: umlobject.cpp:937
UMLArtifact::~UMLArtifact
virtual ~UMLArtifact()
Definition: artifact.cpp:29
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:308
UMLArtifact::UMLArtifact
UMLArtifact(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: artifact.cpp:19
UMLArtifact::defaultDraw
@ defaultDraw
Definition: artifact.h:31
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
UMLArtifact::table
@ table
Definition: artifact.h:34
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:310
UMLArtifact::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: artifact.cpp:49
UMLArtifact::library
@ library
Definition: artifact.h:33
UMLArtifact::Draw_Type
Draw_Type
Definition: artifact.h:30
idchangelog.h
package.h
UMLArtifact::file
@ file
Definition: artifact.h:32
UMLArtifact::fullPath
QString fullPath() const
Definition: artifact.cpp:91
UMLArtifact::setDrawAsType
void setDrawAsType(Draw_Type type)
Definition: artifact.cpp:73
UMLObject::save1
void save1(QXmlStreamWriter &writer, const QString &type, const QString &tag=QString())
Definition: umlobject.cpp:861
UMLPackage
Non-graphical information for a Package.
Definition: package.h:27