umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

adaimport.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2005-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef ADAIMPORT_H
12 #define ADAIMPORT_H
13
14 #include "nativeimportbase.h"
15 #include "umlobjectlist.h"
16
17 #include <QMap>
18 #include <QStringList>
19
25 class AdaImport : public NativeImportBase
26 {
27 public:
28 explicit AdaImport(CodeImpThread* thread = 0);
29 virtual ~AdaImport();
30
31 protected:
32
33 void initVars();
34
35 bool parseStmt();
36
37 QStringList split(const QString& line);
38
39 void fillSource(const QString& word);
40
41 QString expand(const QString& name);
42
43 void parseStems(const QStringList& stems);
44
45 bool m_inGenericFormalPart;
46
52 UMLObjectList m_classesDefinedInThisScope;
53
54 typedef QMap<QString, QString> StringMap;
55
60 StringMap m_renaming;
61
62 };
63
64 #endif
65
AdaImport::initVars
void initVars()
Definition: adaimport.cpp:51
AdaImport::fillSource
void fillSource(const QString &word)
Definition: adaimport.cpp:126
AdaImport::StringMap
QMap< QString, QString > StringMap
Definition: adaimport.h:54
NativeImportBase::scopeIndex
int scopeIndex()
Definition: nativeimportbase.cpp:176
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
Import_Utils::insertAttribute
UMLAttribute * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Definition: import_utils.cpp:426
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
NativeImportBase::m_currentAccess
Uml::Visibility::Enum m_currentAccess
current access (public/protected/private)
Definition: nativeimportbase.h:99
Uml::ParameterDirection::In
@ In
Definition: basictypes.h:257
AdaImport::AdaImport
AdaImport(CodeImpThread *thread=0)
Definition: adaimport.cpp:35
UMLAttribute::setParmKind
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:117
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1305
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:603
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3205
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
association.h
Import_Utils::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:178
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:256
NativeImportBase::m_klass
UMLClassifier * m_klass
class currently being processed
Definition: nativeimportbase.h:98
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Import_Utils::insertMethod
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, bool isDestructor, const QString &comment)
Definition: import_utils.cpp:498
AdaImport
Definition: adaimport.h:26
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
AdaImport::parseStmt
bool parseStmt()
Definition: adaimport.cpp:205
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
import_utils.h
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1316
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
Uml::ParameterDirection::InOut
@ InOut
Definition: basictypes.h:258
NativeImportBase::currentScope
UMLPackage * currentScope()
Definition: nativeimportbase.cpp:165
NativeImportBase::skipStmt
void skipStmt(const QString &until=QLatin1String(";"))
Definition: nativeimportbase.cpp:82
AdaImport::split
QStringList split(const QString &line)
Definition: adaimport.cpp:65
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
UMLAttribute::setInitialValue
void setInitialValue(const QString &iv)
Definition: attribute.cpp:109
AdaImport::m_renaming
StringMap m_renaming
Definition: adaimport.h:60
Import_Utils::remapUMLEnum
UMLEnum * remapUMLEnum(UMLObject *ns, UMLPackage *currentScope)
Definition: import_utils.cpp:738
adaimport.h
AdaImport::parseStems
void parseStems(const QStringList &stems)
Definition: adaimport.cpp:175
NativeImportBase::m_isAbstract
bool m_isAbstract
accumulator for abstractness
Definition: nativeimportbase.h:107
attribute.h
NativeImportBase::popScope
UMLPackage * popScope()
Definition: nativeimportbase.cpp:153
NativeImportBase::m_source
QStringList m_source
the scanned lexemes
Definition: nativeimportbase.h:95
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1481
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
folder.h
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
Import_Utils::addMethodParameter
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:572
uDebug
#define uDebug()
Definition: debug_utils.h:122
NativeImportBase::advance
virtual QString advance()
Definition: nativeimportbase.cpp:198
Uml::ParameterDirection::Out
@ Out
Definition: basictypes.h:259
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:528
NativeImportBase::m_comment
QString m_comment
intermediate accumulator for comment text
Definition: nativeimportbase.h:100
CodeImpThread
Definition: codeimpthread.h:36
UMLObject::setAbstract
void setAbstract(bool bAbstract)
Definition: umlobject.cpp:356
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:416
UMLDoc
Definition: umldoc.h:75
AdaImport::m_classesDefinedInThisScope
UMLObjectList m_classesDefinedInThisScope
Definition: adaimport.h:52
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
nativeimportbase.h
NativeImportBase::parseFile
virtual bool parseFile(const QString &filename)
Definition: nativeimportbase.cpp:417
Import_Utils::addEnumLiteral
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:593
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
uml.h
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:33
AdaImport::m_inGenericFormalPart
bool m_inGenericFormalPart
auxiliary variable
Definition: adaimport.h:45
NativeImportBase::pushScope
void pushScope(UMLPackage *p)
Definition: nativeimportbase.cpp:143
AdaImport::~AdaImport
virtual ~AdaImport()
Definition: adaimport.cpp:44
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
umlobjectlist.h
NativeImportBase::m_srcIndex
int m_srcIndex
used for indexing m_source
Definition: nativeimportbase.h:96
package.h
Uml::AssociationType::Dependency
@ Dependency
Definition: basictypes.h:109
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:559
NativeImportBase::m_parsedFiles
static QStringList m_parsedFiles
Definition: nativeimportbase.h:115
UMLObjectList
Definition: umlobjectlist.h:29
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:29
AdaImport::expand
QString expand(const QString &name)
Definition: adaimport.cpp:156
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
enum.h