umbrello/umbrello
#include <classimport.h>
Public Member Functions | |
ClassImport (CodeImpThread *thread=0) | |
virtual | ~ClassImport () |
bool | enabled () |
bool | importFile (const QString &fileName) |
bool | importFiles (const QStringList &fileNames) |
Static Public Member Functions | |
static ClassImport * | createImporterByFileExt (const QString &fileName, CodeImpThread *thread=0) |
Protected Member Functions | |
virtual void | initialize ()=0 |
void | log (const QString &file, const QString &text) |
void | log (const QString &text) |
virtual bool | parseFile (const QString &fileName)=0 |
Protected Attributes | |
bool | m_enabled |
CodeImpThread * | m_thread |
Detailed Description
Interfaces classparser library to uml models Abstract base for programming language specific import classes.
Definition at line 25 of file classimport.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 28 of file classimport.h.
|
inlinevirtual |
Definition at line 29 of file classimport.h.
Member Function Documentation
|
static |
Factory method.
- Parameters
-
fileName name of imported file
- Returns
- the class import object
Definition at line 38 of file classimport.cpp.
|
inline |
Return state of the importer.
It may be disabled because of missing dependencies for example.
- Returns
- false - disabled, true - enabled
Definition at line 39 of file classimport.h.
bool ClassImport::importFile | ( | const QString & | fileName | ) |
Import files.
- Parameters
-
files List of files to import.
Definition at line 83 of file classimport.cpp.
bool ClassImport::importFiles | ( | const QStringList & | fileNames | ) |
Import files.
:TODO: can be deleted
- Parameters
-
fileNames List of files to import.
Definition at line 62 of file classimport.cpp.
|
protectedpure 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 NativeImportBase, and CppImport.
|
protected |
Write info to a logger or to the debug output.
- Parameters
-
file the name of the parsed file text the text to write
Definition at line 94 of file classimport.cpp.
|
protected |
Write info to a logger or to the debug output.
- Parameters
-
text the text to write
Definition at line 108 of file classimport.cpp.
|
protectedpure virtual |
Import a single file.
To be implemented by inheriting classes.
- Parameters
-
fileName The file to import.
Implemented in NativeImportBase, CSharpImport, JavaImport, CppImport, and IDLImport.
Member Data Documentation
|
protected |
state of importer
Definition at line 65 of file classimport.h.
|
protected |
thread in which the work of importing is done
Definition at line 64 of file classimport.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.