• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

adawriter.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           adawriter.h  -  description
00003                              -------------------
00004     Based on javawriter.h by Luis De la Parra Blum
00005     begin                : Sat Dec 14 2002
00006     copyright            : (C) 2002 by Oliver Kellogg
00007     email                : okellogg@users.sourceforge.net
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef ADAWRITER_H
00020 #define ADAWRITER_H
00021 
00022 #include "simplecodegenerator.h"
00023 
00024 class UMLAssociation;
00025 class UMLOperation;
00026 
00033 class AdaWriter : public SimpleCodeGenerator {
00034     Q_OBJECT
00035 public:
00036 
00040     AdaWriter ();
00041 
00045     virtual ~AdaWriter ();
00046 
00051     virtual void writeClass (UMLClassifier *c);
00052 
00056     virtual Uml::Programming_Language getLanguage();
00057 
00058     QStringList defaultDatatypes();
00059 
00067     virtual bool isReservedKeyword(const QString & rPossiblyReservedKeyword);
00068 
00072     virtual const QStringList reservedKeywords() const;
00073 
00074 private:
00075 
00081     void writeOperation (UMLOperation *op, QTextStream &ada, bool is_comment = false);
00082 
00091     void computeAssocTypeAndRole (UMLClassifier *c,
00092                                   UMLAssociation *a,
00093                                   QString& typeName, QString& roleName);
00094 
00095     bool isOOClass (UMLClassifier *c);
00096 
00097     QString className(UMLClassifier *c, bool inOwnScope = true);
00098 
00099     QString packageName(UMLPackage *p);
00100 
00101     static const QString defaultPackageSuffix;
00102 
00103 };
00104 
00105 #endif // ADAWRITER_H

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kate
  •     kate
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal