umbrello: umbrello/umlmodel/component.h Source File

umbrello 2.38.2 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
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:
40 bool m_executable;
41};
42
43#endif
UMLComponent
Non-graphical information for a Component.
Definition: component.h:23
UMLComponent::~UMLComponent
virtual ~UMLComponent()
Definition: component.cpp:35
UMLComponent::clone
virtual UMLObject * clone() const
Definition: component.cpp:42
UMLComponent::load1
bool load1(QDomElement &element)
Definition: component.cpp:77
UMLComponent::setExecutable
void setExecutable(bool executable)
Definition: component.cpp:119
UMLComponent::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: component.cpp:53
UMLComponent::m_executable
bool m_executable
holds whether this is an executable component or not
Definition: component.h:40
UMLComponent::getExecutable
bool getExecutable() const
Definition: component.cpp:127
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLObject::name
QString name() const
Definition: umlobject.cpp:207
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
package.h