import_utils.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
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 );
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 }
00169
00170 #endif
This file is part of the documentation for umbrello Version 3.1.0.