umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
IDLImport Class Reference

#include <idlimport.h>

Inheritance diagram for IDLImport:
Collaboration diagram for IDLImport:

Public Member Functions

 IDLImport (CodeImpThread *thread=0)
 
virtual ~IDLImport ()
 
bool parseStmt ()
 
bool parseFile (const QString &file)
 
bool preprocess (QString &line)
 
void fillSource (const QString &word)
 
bool skipStructure ()
 
bool isValidScopedName (QString text)
 
- Public Member Functions inherited from NativeImportBase
 NativeImportBase (const QString &singleLineCommentIntro, CodeImpThread *thread=0)
 
virtual ~NativeImportBase ()
 
- Public Member Functions inherited from ClassImport
 ClassImport (CodeImpThread *thread=0)
 
virtual ~ClassImport ()
 
bool importFiles (const QStringList &fileNames)
 
bool importFile (const QString &fileName)
 
void setRootPath (const QString &path)
 
bool enabled () const
 

Protected Member Functions

QString joinTypename ()
 Check for split type names (e.g. unsigned long long) More...
 
- Protected Member Functions inherited from NativeImportBase
void initialize ()
 
void setMultiLineComment (const QString &intro, const QString &end)
 
void setMultiLineAltComment (const QString &intro, const QString &end)
 
virtual void initVars ()
 
void scan (const QString &line)
 
virtual QStringList split (const QString &line)
 
void skipStmt (const QString &until=QLatin1String(";"))
 
bool skipToClosing (QChar opener)
 
QString current ()
 
QString lookAhead ()
 
virtual QString advance ()
 
void pushScope (UMLPackage *p)
 
UMLPackagepopScope ()
 
UMLPackagecurrentScope ()
 
int scopeIndex ()
 
- Protected Member Functions inherited from ClassImport
virtual void initPerFile ()
 
void log (const QString &file, const QString &text)
 
void log (const QString &text)
 

Protected Attributes

UMLDocm_doc
 
bool m_isOneway
 
bool m_isReadonly
 
bool m_isAttribute
 
bool m_isUnionDefault
 
QStringList m_unionCases
 
- Protected Attributes inherited from NativeImportBase
QString m_singleLineCommentIntro
 start token of a single line comment More...
 
QStringList m_source
 the scanned lexemes More...
 
int m_srcIndex
 used for indexing m_source More...
 
QList< UMLPackage * > m_scope
 stack of scopes for use by the specific importer More...
 
UMLClassifierm_klass
 class currently being processed More...
 
Uml::Visibility::Enum m_currentAccess
 current access (public/protected/private) More...
 
QString m_comment
 intermediate accumulator for comment text More...
 
bool m_inComment
 
bool m_isAbstract
 accumulator for abstractness More...
 
QString m_multiLineCommentIntro
 multi line comment delimiter intro More...
 
QString m_multiLineCommentEnd
 multi line comment delimiter end More...
 
QString m_multiLineAltCommentIntro
 
QString m_multiLineAltCommentEnd
 
- Protected Attributes inherited from ClassImport
CodeImpThreadm_thread
 thread in which the work of importing is done More...
 
bool m_enabled
 state of importer More...
 
QString m_rootPath
 root path of import More...
 

Static Protected Attributes

static QString m_preProcessor
 
static QStringList m_preProcessorArguments
 
static bool m_preProcessorChecked = false
 
- Static Protected Attributes inherited from NativeImportBase
static QStringList m_parsedFiles
 

Additional Inherited Members

- Static Public Member Functions inherited from ClassImport
static ClassImportcreateImporterByFileExt (const QString &fileName, CodeImpThread *thread=0)
 

Detailed Description

CORBA IDL code import

Author
Oliver Kellogg Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

◆ IDLImport()

IDLImport::IDLImport ( CodeImpThread thread = 0)
explicit
Here is the call graph for this function:

◆ ~IDLImport()

IDLImport::~IDLImport ( )
virtual

Member Function Documentation

◆ fillSource()

void IDLImport::fillSource ( const QString &  word)
virtual

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

◆ isValidScopedName()

bool IDLImport::isValidScopedName ( QString  text)

Returns true if the given text is a valid IDL scoped name.

◆ joinTypename()

QString IDLImport::joinTypename ( )
protected

Check for split type names (e.g. unsigned long long)

Here is the call graph for this function:

◆ parseFile()

bool IDLImport::parseFile ( const QString &  filename)
virtual

Reimplement operation from NativeImportBase. Need to do this because we use the external C preprocessor.

Reimplemented from NativeImportBase.

Here is the call graph for this function:

◆ parseStmt()

bool IDLImport::parseStmt ( )
virtual

Implement abstract operation from NativeImportBase. The function only returns false if an error is encountered from which no recovery is possible. On recoverable syntax errors, the function issues an error message, skips to the end of the offending declaration, and returns true. Returning true in spite of a local syntax error is done in the interest of best effort (returning false would abort the entire code import). A syntax error is typically unrecoverable when it involves imbalance of braces, in particular when the closing "}" of an opening "{" is missing.

Implements NativeImportBase.

Here is the call graph for this function:

◆ preprocess()

bool IDLImport::preprocess ( QString &  line)
virtual

Override operation from NativeImportBase.

Reimplemented from NativeImportBase.

Here is the call graph for this function:

◆ skipStructure()

bool IDLImport::skipStructure ( )

Skip to the end of struct/union/valuetype/interface declaration.

Returns
True for success, false for non recoverable syntax error related to brace matching (missing opening or closing brace).
Here is the call graph for this function:

Member Data Documentation

◆ m_doc

UMLDoc* IDLImport::m_doc
protected

◆ m_isAttribute

bool IDLImport::m_isAttribute
protected

◆ m_isOneway

bool IDLImport::m_isOneway
protected

◆ m_isReadonly

bool IDLImport::m_isReadonly
protected

◆ m_isUnionDefault

bool IDLImport::m_isUnionDefault
protected

◆ m_preProcessor

QString IDLImport::m_preProcessor
staticprotected

◆ m_preProcessorArguments

QStringList IDLImport::m_preProcessorArguments
staticprotected

◆ m_preProcessorChecked

bool IDLImport::m_preProcessorChecked = false
staticprotected

◆ m_unionCases

QStringList IDLImport::m_unionCases
protected

The documentation for this class was generated from the following files: