umbrello API Documentation

actor.cpp

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #include "actor.h"
00013 
00014 UMLActor::UMLActor(const QString & name, Uml::IDType id) : UMLCanvasObject(name, id) {
00015     init();
00016 }
00017 
00018 UMLActor::~UMLActor() {}
00019 
00020 void UMLActor::init() {
00021     m_BaseType = Uml::ot_Actor;
00022 }
00023 
00024 UMLObject* UMLActor::clone() const {
00025     UMLActor *clone = new UMLActor();
00026     UMLObject::copyInto(clone);
00027     return clone;
00028 }
00029 
00030 void UMLActor::saveToXMI(QDomDocument& qDoc, QDomElement& qElement) {
00031     QDomElement actorElement = UMLObject::save("UML:Actor", qDoc);
00032     qElement.appendChild(actorElement);
00033 }
00034 
00035 bool UMLActor::load(QDomElement&) {
00036     return true;
00037 }
00038 
00039 
00040 #include "actor.moc"
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:53 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003