umbrello/umbrello
adaimport.cpp
Go to the documentation of this file.
357 UMLObject::ObjectType t = (next == "interface" ? UMLObject::ot_Interface : UMLObject::ot_Class);
363 UMLObject *p = Import_Utils::createUMLObject(UMLObject::ot_Interface, base, m_scope[m_scopeIndex]);
515 UMLObject *type = Import_Utils::createUMLObject(UMLObject::ot_Class, typeName, m_scope[m_scopeIndex]);
void skipStmt(const QString &until=";")
Advance m_srcIndex until m_source[m_srcIndex] contains the lexeme given by `until'.
Definition: nativeimportbase.cpp:81
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLObject * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Create a UMLAttribute and insert it into the document.
Definition: import_utils.cpp:364
Definition: umlobject.h:55
Intermediate base class for native Umbrello implementations of programming language import...
Definition: nativeimportbase.h:44
Uml::Visibility::Enum m_currentAccess
current access (public/protected/private)
Definition: nativeimportbase.h:94
void parseStems(const QStringList &stems)
Parse all files that can be formed by concatenation of the given stems.
Definition: adaimport.cpp:174
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
Definition: basictypes.h:102
Definition: basictypes.h:58
This class contains the non-graphic representation of an association.
Definition: association.h:32
UMLObjectList m_classesDefinedInThisScope
List for keeping track of tagged objects declared in the current scope.
Definition: adaimport.h:52
QList< UMLPackage * > m_scope
stack of scopes for use by the specific importer
Definition: nativeimportbase.h:91
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:108
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype)
Find or create a document object.
Definition: import_utils.cpp:169
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
QString advance()
Advance m_srcIndex until m_source[m_srcIndex] contains a non-comment.
Definition: nativeimportbase.cpp:143
void fillSource(const QString &word)
Implement abstract operation from NativeImportBase.
Definition: adaimport.cpp:126
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, const QString &comment)
Insert the UMLOperation into the given classifier.
Definition: import_utils.cpp:435
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Add an argument to a UMLOperation.
Definition: import_utils.cpp:507
Definition: basictypes.h:229
uint m_scopeIndex
indexes m_scope, index 0 is reserved for global scope
Definition: nativeimportbase.h:92
QStringList split(const QString &line)
Split the line so that a string is returned as a single element of the list.
Definition: adaimport.cpp:65
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
Thread class that does the code import work for one file.
Definition: codeimpthread.h:35
Definition: basictypes.h:57
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:53
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Create a UMLOperation.
Definition: import_utils.cpp:354
Definition: umlobject.h:56
Definition: umlobject.h:49
Definition: basictypes.h:39
Definition: basictypes.h:227
QString expand(const QString &name)
Apply package renamings to the given name.
Definition: adaimport.cpp:155
Definition: umlobject.h:52
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment)
Add an enum literal to an UMLEnum.
Definition: import_utils.cpp:528
Definition: basictypes.h:228
void createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Create a generalization from the given child classifier to the given parent classifier.
Definition: import_utils.cpp:538
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
virtual bool parseFile(const QString &filename)
Import a single file.
Definition: nativeimportbase.cpp:353
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:116
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2676
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.