umbrello API Documentation

idlwriter.h

00001 /***************************************************************************
00002                           idlwriter.h  -  description
00003                              -------------------
00004     begin                : Sat Jan 4 2003
00005     copyright            : (C) 2003 by Oliver Kellogg
00006     email                : okellogg@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef IDLWRITER_H
00019 #define IDLWRITER_H
00020 
00021 #include "simplecodegenerator.h"
00022 
00023 class UMLAssociation;
00024 class UMLOperation;
00025 
00032 class IDLWriter : public SimpleCodeGenerator {
00033 public:
00034 
00035     IDLWriter ();
00036     virtual ~IDLWriter ();
00037 
00042     virtual void writeClass (UMLClassifier *c);
00043 
00047     virtual Uml::Programming_Language getLanguage();
00048 
00049     QStringList defaultDatatypes();
00050 
00054     virtual const QStringList reservedKeywords() const;
00055 
00056 private:
00057 
00063     void writeOperation(UMLOperation* op, QTextStream& idl, bool is_comment = false);
00064 
00065     void computeAssocTypeAndRole(UMLAssociation* a, UMLClassifier *c,
00066                                  QString& typeName, QString& roleName);
00067 
00068     static bool isOOClass(UMLClassifier* c);
00069 
00070     static bool assocTypeIsMappableToAttribute(Uml::Association_Type at);
00071 
00072 };
00073 
00074 #endif // IDLWRITER_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:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003