umbrello API Documentation

PascalImport Class Reference

Pascal code import. More...

#include <pascalimport.h>

Inheritance diagram for PascalImport:

NativeImportBase ClassImport List of all members.

Protected Types

enum  Section_Type {
  sect_NONE, sect_LABEL, sect_CONST, sect_RESOURCESTRING,
  sect_TYPE, sect_VAR, sect_THREADVAR
}

Protected Member Functions

void initVars ()
 Reimplement operation from NativeImportBase.
bool parseStmt ()
 Implement abstract operation from NativeImportBase.
void fillSource (const QString &word)
 Implement abstract operation from NativeImportBase.
void checkModifiers (bool &isVirtual, bool &isAbstract)
 Check for, and skip over, all modifiers following a method.

Protected Attributes

bool m_inInterface
 Auxiliary variable, becomes true when keyword "interface" is seen.
Section_Type m_section
 Auxiliary variable, contains the current section.

Detailed Description

Pascal code import.

Author:
Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 22 of file pascalimport.h.


Member Function Documentation

void PascalImport::initVars  )  [protected, virtual]
 

Reimplement operation from NativeImportBase.

Reimplemented from NativeImportBase.

Definition at line 38 of file pascalimport.cpp.

References m_inInterface, and m_section.

bool PascalImport::parseStmt  )  [protected, virtual]
 

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 88 of file pascalimport.cpp.

References Import_Utils::addEnumLiteral(), Import_Utils::addMethodParameter(), NativeImportBase::advance(), checkModifiers(), Import_Utils::createGeneralization(), Import_Utils::createUMLObject(), Import_Utils::insertAttribute(), Import_Utils::insertMethod(), m_inInterface, m_section, Import_Utils::makeOperation(), NativeImportBase::parseFile(), UMLAttribute::setInitialValue(), UMLAttribute::setParmKind(), UMLObject::setStereotype(), NativeImportBase::skipStmt(), and NativeImportBase::skipToClosing().

void PascalImport::fillSource const QString &  word  )  [protected, virtual]
 

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 44 of file pascalimport.cpp.

void PascalImport::checkModifiers bool &  isVirtual,
bool &  isAbstract
[protected]
 

Check for, and skip over, all modifiers following a method.

Set the output arguments on encountering abstract and/or virtual.

Parameters:
isVirtual return value, set to true when "virtual" seen
isAbstract return value, set to true when "abstract" seen

Definition at line 68 of file pascalimport.cpp.

References NativeImportBase::advance(), and NativeImportBase::skipStmt().

Referenced by parseStmt().


Member Data Documentation

bool PascalImport::m_inInterface [protected]
 

Auxiliary variable, becomes true when keyword "interface" is seen.

Definition at line 55 of file pascalimport.h.

Referenced by initVars(), and parseStmt().

Section_Type PascalImport::m_section [protected]
 

Auxiliary variable, contains the current section.

Definition at line 62 of file pascalimport.h.

Referenced by initVars(), and parseStmt().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003