umbrello API Documentation

import_utils.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-2006                                                *
00009  *  Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                   *
00010  ***************************************************************************/
00011 
00012 #ifndef IMPORT_UTILS_H
00013 #define IMPORT_UTILS_H
00014 
00015 #include <qstringlist.h>
00016 #include "../umlnamespace.h"
00017 #include "../umlattributelist.h"
00018 
00019 class UMLDoc;
00020 class UMLObject;
00021 class UMLClassifier;
00022 class UMLPackage;
00023 class UMLOperation;
00024 class UMLEnum;
00025 class CppDriver;
00026 
00033 namespace Import_Utils {
00034 
00038     UMLObject* createUMLObject(Uml::Object_Type type,
00039                                const QString& name,
00040                                UMLPackage *parentPkg = NULL,
00041                                const QString& comment = QString::null,
00042                                const QString& stereotype = QString::null);
00050     void putAtGlobalScope(bool yesno);
00051 
00056     void setRelatedClassifier(UMLClassifier *c);
00057 
00065     void assignUniqueIdOnCreation(bool yesno);
00066 
00070     UMLObject* insertAttribute(UMLClassifier *klass, Uml::Visibility scope,
00071                                const QString& name,
00072                                const QString& type,
00073                                const QString& comment = QString::null,
00074                                bool isStatic = false);
00079     UMLObject* insertAttribute(UMLClassifier *klass, Uml::Visibility scope,
00080                                const QString& name,
00081                                UMLClassifier *attrType,
00082                                const QString& comment /* ="" */,
00083                                bool isStatic /* =false */);
00093     UMLOperation* makeOperation(UMLClassifier *parent, const QString &name);
00094 
00106     void insertMethod(UMLClassifier *klass, UMLOperation* &op,
00107                       Uml::Visibility scope, const QString& type,
00108                       bool isStatic, bool isAbstract,
00109                       bool isFriend = false, bool isConstructor = false,
00110                       const QString& comment = QString::null);
00111 
00117     UMLAttribute* addMethodParameter(UMLOperation *method,
00118                                      const QString& type,
00119                                      const QString& name);
00120 
00124     void addEnumLiteral(UMLEnum *enumType, const QString &literal,
00125                         const QString &comment = QString());
00126 
00131     void createGeneralization(UMLClassifier *child, UMLClassifier *parent);
00132 
00137     void createGeneralization(UMLClassifier *child, const QString &parentName);
00138 
00142     QString formatComment(const QString &comment);
00143 
00150     QStringList includePathList();
00151 
00155     void addIncludePath(const QString& path);
00156 
00161     bool newUMLObjectWasCreated();
00162 
00166     bool isDatatype(const QString& name, UMLPackage *parentPkg = NULL);
00167 
00168 } // end namespace Import_Utils
00169 
00170 #endif
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