adaimport.h
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) 2005-2007 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef ADAIMPORT_H 00013 #define ADAIMPORT_H 00014 00015 #include <qmap.h> 00016 #include <qstringlist.h> 00017 00018 #include "nativeimportbase.h" 00019 #include "../umlobjectlist.h" 00020 00026 class AdaImport : public NativeImportBase { 00027 public: 00028 AdaImport(); 00029 virtual ~AdaImport(); 00030 00031 protected: 00035 void initVars(); 00036 00040 bool parseStmt(); 00041 00049 QStringList split(const QString& line); 00050 00054 void fillSource(const QString& word); 00055 00061 QString expand(const QString& name); 00062 00066 void parseStems(const QStringList& stems); 00067 00068 bool m_inGenericFormalPart; 00069 00075 UMLObjectList m_classesDefinedInThisScope; 00076 00077 typedef QMap<QString, QString> StringMap; 00078 00083 StringMap m_renaming; 00084 00085 }; 00086 00087 #endif 00088
