umbrello 26.03.70-1a62d36 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

umlcomponent.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 "umlpackage.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
UMLComponent
Non-graphical information for a Component.
Definition: umlcomponent.h:23
UMLComponent::~UMLComponent
virtual ~UMLComponent()
Definition: umlcomponent.cpp:35
UMLComponent::clone
virtual UMLObject * clone() const
Definition: umlcomponent.cpp:42
UMLComponent::load1
bool load1(QDomElement &element)
Definition: umlcomponent.cpp:77
UMLComponent::setExecutable
void setExecutable(bool executable)
Definition: umlcomponent.cpp:119
UMLComponent::saveToXMI
void saveToXMI(QXmlStreamWriter &writer)
Definition: umlcomponent.cpp:53
UMLComponent::m_executable
bool m_executable
holds whether this is an executable component or not
Definition: umlcomponent.h:40
UMLComponent::getExecutable
bool getExecutable() const
Definition: umlcomponent.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: umlpackage.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
umlpackage.h