rocs/RocsCore
#include <IncludeManager.h>
Public Member Functions | |
| IncludeManager () | |
| ~IncludeManager () | |
| void | addPath (const QString &str) |
| void | addPath (const QStringList &str) |
| bool | checkIfWasIncluded (const QString &file) |
| QString | include (const QString &script, const QString &actualPath=QString(), const QString &filename=QString()) |
| void | initialize (const QStringList &tempPath=QStringList()) |
| QString | seekFile (const QString &arg1) |
| QStringList const | tempPath () const |
Detailed Description
Definition at line 27 of file IncludeManager.h.
Constructor & Destructor Documentation
| IncludeManager::IncludeManager | ( | ) |
Definition at line 28 of file IncludeManager.cpp.
|
inline |
Definition at line 37 of file IncludeManager.h.
Member Function Documentation
| void IncludeManager::addPath | ( | const QString & | str | ) |
insert additional path to seek files.
Definition at line 155 of file IncludeManager.cpp.
| void IncludeManager::addPath | ( | const QStringList & | str | ) |
Definition at line 165 of file IncludeManager.cpp.
|
inline |
check if the file was included before.
It's avoid cyclic includes. filename should be path to file not only the name of file.
Definition at line 46 of file IncludeManager.h.
| QString IncludeManager::include | ( | const QString & | script, |
| const QString & | actualPath = QString(), |
||
| const QString & | filename = QString() |
||
| ) |
Definition at line 51 of file IncludeManager.cpp.
| void IncludeManager::initialize | ( | const QStringList & | tempPath = QStringList() | ) |
Definition at line 41 of file IncludeManager.cpp.
| QString IncludeManager::seekFile | ( | const QString & | arg1 | ) |
Try find the fileName in the paths' list.
If found, returns an absolute path to the file, otherwise return QString(). In the case of fileName be a absolute path to file, the fileName is returned.
Definition at line 135 of file IncludeManager.cpp.
| QStringList const IncludeManager::tempPath | ( | ) | const |
Definition at line 176 of file IncludeManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference