umbrello  2.32.2
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 
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 saveToXMI1(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::m_executable
bool m_executable
holds whether this is an executable component or not
Definition: component.h:40
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
UMLComponent::setExecutable
void setExecutable(bool executable)
Definition: component.cpp:110
UMLObject::save1
void save1(const QString &tag, QXmlStreamWriter &writer)
Definition: umlobject.cpp:850
component.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
object_factory.h
association.h
UMLObject::save1end
void save1end(QXmlStreamWriter &writer)
Definition: umlobject.cpp:904
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
model_utils.h
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
UMLObject::m_BaseType
ObjectType m_BaseType
objects type
Definition: umlobject.h:276
UMLComponent::load1
bool load1(QDomElement &element)
Definition: component.cpp:71
number
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
UMLComponent
Non-graphical information for a Component.
Definition: component.h:22
uWarning
#define uWarning()
Definition: debug_utils.h:110
UMLObjectListIt
QListIterator< QPointer< UMLObject > > UMLObjectListIt
Definition: umlobjectlist.h:15
UMLObject::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: umlobject.cpp:309
UMLComponent::getExecutable
bool getExecutable() const
Definition: component.cpp:118
Model_Utils::isCommonXMI1Attribute
bool isCommonXMI1Attribute(const QString &tag)
Definition: model_utils.cpp:757
executable
if the work is an executable linked with the with the complete machine readable work that uses the as object code and or source so that the user can modify the Library and then relink to produce a modified executable containing the modified valid for at least three to give the same user the materials specified in for a charge no more than the cost of performing this distribution c If distribution of the work is made by offering access to copy from a designated offer equivalent access to copy the above specified materials from the same place d Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an executable
Definition: LGPL-2.0-only.txt:274
UMLPackage::m_objects
UMLObjectList m_objects
Definition: package.h:78
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:92
UMLComponent::saveToXMI1
void saveToXMI1(QXmlStreamWriter &writer)
Definition: component.cpp:51
UMLComponent::UMLComponent
UMLComponent(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: component.cpp:23
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3562
UMLComponent::~UMLComponent
virtual ~UMLComponent()
Definition: component.cpp:33
UMLObject::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &element)
Definition: umlobject.cpp:993
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:619
Object_Factory::makeObjectFromXMI
UMLObject * makeObjectFromXMI(const QString &xmiTag, const QString &stereoID)
Definition: object_factory.cpp:376
debug_utils.h
UMLComponent::clone
virtual UMLObject * clone() const
Definition: component.cpp:40
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:130
UMLObject::saveToXMI1
virtual void saveToXMI1(QXmlStreamWriter &writer)
Definition: umlobject.cpp:837
idchangelog.h
uIgnoreZeroPointer
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:120
package.h
umldoc.h
UMLPackage
Non-graphical information for a Package.
Definition: package.h:27