umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
actor.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) 2002-2020 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef ACTOR_H
12 #define ACTOR_H
13 
14 #include "umlcanvasobject.h"
15 
27 class UMLActor : public UMLCanvasObject
28 {
29  Q_OBJECT
30 public:
31  explicit UMLActor(const QString & name = QString(), Uml::ID::Type id = Uml::ID::None);
32  virtual ~UMLActor();
33 
34  virtual void init();
35 
36  virtual UMLObject* clone() const;
37 
38  void saveToXMI1(QXmlStreamWriter& writer);
39 
40 protected:
41  bool load1(QDomElement & element);
42 };
43 
44 #endif
Information for a non-graphical UML Actor.
Definition: actor.h:28
void saveToXMI1(QXmlStreamWriter &writer)
Definition: actor.cpp:53
virtual void init()
Definition: actor.cpp:35
UMLActor(const QString &name=QString(), Uml::ID::Type id=Uml::ID::None)
Definition: actor.cpp:19
virtual UMLObject * clone() const
Definition: actor.cpp:43
bool load1(QDomElement &element)
Definition: actor.cpp:62
virtual ~UMLActor()
Definition: actor.cpp:28
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:37
The base class for UML objects.
Definition: umlobject.h:75
QString name() const
Definition: umlobject.cpp:211
const Type None
special value for uninitialized ID
Definition: basictypes.h:387
std::string Type
Definition: basictypes.h:385