umbrello 2.38.4
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
23{
24 Q_OBJECT
25public:
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
36protected:
37 bool load1(QDomElement & element);
38
39private:
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
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