umbrello: umbrello/codeimport/idlimport.h Source File

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

idlimport.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 IDLIMPORT_H
12 #define IDLIMPORT_H
13
14 #include "nativeimportbase.h"
15
21 class IDLImport : public NativeImportBase {
22 public:
23 explicit IDLImport(CodeImpThread* thread = 0);
24 virtual ~IDLImport();
25
26 bool parseStmt();
27
28 bool parseFile(const QString& file);
29
30 bool preprocess(QString& line);
31
32 void fillSource(const QString& word);
33
34 protected:
35 QString joinTypename();
36 bool m_isOneway, m_isReadonly, m_isAttribute;
37 static QString m_preProcessor;
38 static QStringList m_preProcessorArguments;
39 static bool m_preProcessorChecked;
40 };
41
42 #endif
43
NativeImportBase::scopeIndex
int scopeIndex()
Definition: nativeimportbase.cpp:176
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
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
umlpackagelist.h
IDLImport::fillSource
void fillSource(const QString &word)
Definition: idlimport.cpp:132
IDLImport::m_isReadonly
bool m_isReadonly
Definition: idlimport.h:44
idlimport.h
NativeImportBase::m_currentAccess
Uml::Visibility::Enum m_currentAccess
current access (public/protected/private)
Definition: nativeimportbase.h:99
UMLAttribute::setParmKind
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:117
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1304
NativeImportBase::preprocess
virtual bool preprocess(QString &line)
Definition: nativeimportbase.cpp:226
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
IDLImport::m_isAttribute
bool m_isAttribute
Definition: idlimport.h:44
operation.h
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:603
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
IDLImport::parseFile
bool parseFile(const QString &file)
Definition: idlimport.cpp:165
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:273
IDLImport::m_isOneway
bool m_isOneway
Definition: idlimport.h:44
IDLImport::m_preProcessorChecked
static bool m_preProcessorChecked
Definition: idlimport.h:47
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
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
NativeImportBase::setMultiLineComment
void setMultiLineComment(const QString &intro, const QString &end)
Definition: nativeimportbase.cpp:59
import_utils.h
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1315
NativeImportBase::m_scope
QList< UMLPackage * > m_scope
stack of scopes for use by the specific importer
Definition: nativeimportbase.h:97
ClassImport::m_enabled
bool m_enabled
state of importer
Definition: classimport.h:68
NativeImportBase::currentScope
UMLPackage * currentScope()
Definition: nativeimportbase.cpp:165
NativeImportBase::skipStmt
void skipStmt(const QString &until=QLatin1String(";"))
Definition: nativeimportbase.cpp:82
Uml::Visibility::Public
@ Public
Definition: basictypes.h:77
Import_Utils::remapUMLEnum
UMLEnum * remapUMLEnum(UMLObject *ns, UMLPackage *currentScope)
Definition: import_utils.cpp:738
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
IDLImport::~IDLImport
virtual ~IDLImport()
Definition: idlimport.cpp:97
IDLImport::IDLImport
IDLImport(CodeImpThread *thread=0)
Definition: idlimport.cpp:45
NativeImportBase::scan
void scan(const QString &line)
Definition: nativeimportbase.cpp:374
IDLImport
Definition: idlimport.h:21
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
Import_Utils::addIncludePath
void addIncludePath(const QString &path)
Definition: import_utils.cpp:784
NativeImportBase::advance
virtual QString advance()
Definition: nativeimportbase.cpp:198
UMLObject::setStereotype
void setStereotype(const QString &_name)
Definition: umlobject.cpp:527
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
IDLImport::m_preProcessorArguments
static QStringList m_preProcessorArguments
Definition: idlimport.h:46
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:416
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
nativeimportbase.h
IDLImport::m_preProcessor
static QString m_preProcessor
Definition: idlimport.h:45
Import_Utils::addEnumLiteral
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment, const QString &value)
Definition: import_utils.cpp:593
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
IDLImport::preprocess
bool preprocess(QString &line)
Definition: idlimport.cpp:117
uml.h
Model_Utils::stringToDirection
int stringToDirection(QString input, Uml::ParameterDirection::Enum &result)
Definition: model_utils.cpp:912
debug_utils.h
NativeImportBase::pushScope
void pushScope(UMLPackage *p)
Definition: nativeimportbase.cpp:143
NativeImportBase::m_singleLineCommentIntro
QString m_singleLineCommentIntro
start token of a single line comment
Definition: nativeimportbase.h:94
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
IDLImport::parseStmt
bool parseStmt()
Definition: idlimport.cpp:236
Uml::Visibility::Private
@ Private
Definition: basictypes.h:78
NativeImportBase::m_srcIndex
int m_srcIndex
used for indexing m_source
Definition: nativeimportbase.h:96
package.h
Import_Utils::includePathList
QStringList includePathList()
Definition: import_utils.cpp:771
IDLImport::joinTypename
QString joinTypename()
Check for split type names (e.g. unsigned long long)
Definition: idlimport.cpp:102
UMLEnum
Non-graphical Information for an Enum.
Definition: enum.h:29
umldoc.h
enum.h