umbrello API Documentation

codeoperation.h

00001 
00002 /***************************************************************************
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  ***************************************************************************/
00010 
00011 /*  This code generated by:
00012  *      Author : thomas
00013  *      Date   : Fri Jun 20 2003
00014  */
00015 
00016 
00017 #ifndef CODEOPERATION_H
00018 #define CODEOPERATION_H
00019 
00020 #include <qstring.h>
00021 
00022 #include "codemethodblock.h"
00023 #include "operation.h"
00024 
00025 // class CodeParameter;
00026 
00027 class CodeOperation : public CodeMethodBlock
00028 {
00029     Q_OBJECT
00030 public:
00031 
00032     // Constructors/Destructors
00033     //
00034 
00038     CodeOperation ( ClassifierCodeDocument * doc , UMLOperation * parent,
00039                     const QString & body = "", const QString & comment = "");
00040 
00044     virtual ~CodeOperation ( );
00045 
00049     UMLOperation * getParentOperation( );
00050 
00054     virtual void saveToXMI ( QDomDocument & doc, QDomElement & root );
00055 
00059     virtual void loadFromXMI ( QDomElement & root );
00060 
00063     static QString findTag (UMLOperation * op) ;
00064 
00067     virtual void setAttributesFromObject (TextBlock * obj);
00068 
00069 protected:
00070 
00071     // list of parameters used by this code operation.
00072     // QPtrList<CodeParameter> m_parameterVector;
00073 
00077     virtual void setAttributesOnNode ( QDomDocument & doc, QDomElement & blockElement);
00078 
00082     virtual void setAttributesFromNode ( QDomElement & element);
00083 
00084     virtual void updateMethodDeclaration() = 0;
00085     virtual void updateContent();
00086 
00087 private:
00088 
00089     UMLOperation * m_parentOperation;
00090     void init (UMLOperation * parentOp);
00091 
00092 };
00093 
00094 #endif // CODEOPERATION_H
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:55 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003