umbrello: umbrello/uml1model/component.h Source File

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(QDomDocument & qDoc, QDomElement & qElement);
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
UMLComponent::m_executable
bool m_executable
holds whether this is an executable component or not
Definition: component.h:45
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
UMLComponent::setExecutable
void setExecutable(bool executable)
Definition: component.cpp:115
component.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
object_factory.h
association.h
UMLComponent::getExecutable
bool getExecutable()
Definition: component.cpp:123
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
model_utils.h
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLComponent::load1
bool load1(QDomElement &element)
Definition: component.cpp:76
UMLComponent
Non-graphical information for a Component.
Definition: component.h:28
uWarning
#define uWarning()
Definition: debug_utils.h:124
UMLObject::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlobject.cpp:833
UMLObject::save1
QDomElement save1(const QString &tag, QDomDocument &qDoc)
Definition: umlobject.cpp:844
UMLObjectListIt
QListIterator< QPointer< UMLObject > > UMLObjectListIt
Definition: umlobjectlist.h:19
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:314
Model_Utils::isCommonXMI1Attribute
bool isCommonXMI1Attribute(const QString &tag)
Definition: model_utils.cpp:761
UMLPackage::m_objects
UMLObjectList m_objects
Definition: package.h:75
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
UMLComponent::UMLComponent
UMLComponent(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: component.cpp:28
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3550
UMLPackage::addObject
bool addObject(UMLObject *pObject)
Definition: package.cpp:128
UMLComponent::~UMLComponent
virtual ~UMLComponent()
Definition: component.cpp:38
UMLObject::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: umlobject.cpp:954
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:615
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition: object_factory.cpp:374
debug_utils.h
UMLComponent::clone
virtual UMLObject * clone() const
Definition: component.cpp:45
UMLComponent::saveToXMI1
void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: component.cpp:56
idchangelog.h
uIgnoreZeroPointer
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:134
package.h
umldoc.h
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33