umbrello  2.32.1
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  * 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 COMPONENT_H
12 #define COMPONENT_H
13 
14 #include "package.h"
15 
27 class UMLComponent : public UMLPackage
28 {
29  Q_OBJECT
30 public:
31  explicit UMLComponent(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
32  virtual ~UMLComponent();
33 
34  virtual UMLObject* clone() const;
35 
36  void saveToXMI1(QXmlStreamWriter& writer);
37 
38  void setExecutable(bool executable);
39  bool getExecutable();
40 
41 protected:
42  bool load1(QDomElement & element);
43 
44 private:
45  bool m_executable;
46 };
47 
48 #endif
Non-graphical information for a Component.
Definition: component.h:28
virtual ~UMLComponent()
Definition: component.cpp:38
bool getExecutable()
Definition: component.cpp:123
virtual UMLObject * clone() const
Definition: component.cpp:45
void saveToXMI1(QXmlStreamWriter &writer)
Definition: component.cpp:56
bool load1(QDomElement &element)
Definition: component.cpp:76
void setExecutable(bool executable)
Definition: component.cpp:115
bool m_executable
holds whether this is an executable component or not
Definition: component.h:45
UMLComponent(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: component.cpp:28
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