umbrello API Documentation

sqlwriter.h

00001 /***************************************************************************
00002                           sqlwriter.h  -  description
00003                              -------------------
00004     begin                : 10.02.2003
00005     copyright            : (C) 2003 by Nikolaus Gradwohl
00006     email                : guru@local-guru.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 SQLWRITER_H
00019 #define SQLWRITER_H
00020 
00021 #include "simplecodegenerator.h"
00022 #include "../umlattributelist.h"
00023 
00030 class SQLWriter : public SimpleCodeGenerator {
00031     Q_OBJECT
00032 public:
00033 
00034     SQLWriter();
00035     virtual ~SQLWriter();
00036 
00041     virtual void writeClass(UMLClassifier *c);
00042 
00046     virtual Uml::Programming_Language getLanguage();
00047 
00051     virtual QStringList defaultDatatypes();
00052 
00056     virtual const QStringList reservedKeywords() const;
00057 
00058 private:
00059 
00065     void writeAttributes(UMLClassifier *c, QTextStream &j);
00066 
00074     void printAttributes(QTextStream& sql, UMLAttributeList attributeList, bool first);
00075 };
00076 
00077 #endif // SQLWRITER_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:08:00 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003