umbrello API Documentation

ClassImport Class Reference

Interfaces classparser library to uml models Abstract base for programming language specific import classes. More...

#include <classimport.h>

Inheritance diagram for ClassImport:

CppImport NativeImportBase AdaImport IDLImport JavaImport PascalImport PythonImport List of all members.

Public Member Functions

void importFiles (const QStringList &files)
 Import files.

Static Public Member Functions

static ClassImportcreateImporterByFileExt (const QString &filename)
 Factory method.

Protected Member Functions

virtual void initialize ()=0
 Initialize the importer.
virtual void parseFile (const QString &filename)=0
 Import a single file.

Detailed Description

Interfaces classparser library to uml models Abstract base for programming language specific import classes.

Author:
Mikko Pasanen

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

Definition at line 25 of file classimport.h.


Member Function Documentation

void ClassImport::importFiles const QStringList &  files  ) 
 

Import files.

Parameters:
files List of files to import.

Definition at line 27 of file classimport.cpp.

References UMLApp::getDocument(), initialize(), parseFile(), and UMLDoc::writeToStatusBar().

Referenced by UMLApp::slotImportClasses(), and JavaImport::spawnImport().

ClassImport * ClassImport::createImporterByFileExt const QString &  filename  )  [static]
 

Factory method.

Definition at line 42 of file classimport.cpp.

Referenced by UMLApp::slotImportClasses().

virtual void ClassImport::initialize  )  [protected, pure virtual]
 

Initialize the importer.

This is called by importFiles() once, before entering the loop for importing one or more files. To be implemented by inheriting classes.

Implemented in CppImport, and NativeImportBase.

Referenced by importFiles().

virtual void ClassImport::parseFile const QString &  filename  )  [protected, pure virtual]
 

Import a single file.

To be implemented by inheriting classes.

Parameters:
filename The file to import.

Implemented in CppImport, IDLImport, JavaImport, and NativeImportBase.

Referenced by importFiles().


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:04 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003