umbrello  2.39.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
component.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 COMPONENT_H
7 #define COMPONENT_H
8 
9 #include "package.h"
10 
22 class UMLComponent : public UMLPackage
23 {
24  Q_OBJECT
25 public:
26  explicit UMLComponent(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
27  virtual ~UMLComponent();
28 
29  virtual UMLObject* clone() const;
30 
31  void saveToXMI(QXmlStreamWriter& writer);
32 
33  void setExecutable(bool executable);
34  bool getExecutable() const;
35 
36 protected:
37  bool load1(QDomElement & element);
38 
39 private:
40  bool m_executable;
41 };
42 
43 #endif
Non-graphical information for a Component.
Definition: component.h:23
virtual ~UMLComponent()
Definition: component.cpp:35
virtual UMLObject * clone() const
Definition: component.cpp:42
bool load1(QDomElement &element)
Definition: component.cpp:77
void setExecutable(bool executable)
Definition: component.cpp:119
void saveToXMI(QXmlStreamWriter &writer)
Definition: component.cpp:53
bool m_executable
holds whether this is an executable component or not
Definition: component.h:40
bool getExecutable() const
Definition: component.cpp:127
UMLComponent(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: component.cpp:25
The base class for UML objects.
Definition: umlobject.h:70
QString name() const
Definition: umlobject.cpp:207
Non-graphical information for a Package.
Definition: package.h:28
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
std::string Type
Definition: basictypes.h:371