#include <directory.h>
Inheritance diagram for EnumFilesHandler:

Public Member Functions | |
| EnumFilesHandler () | |
| const std::string & | getPath () const |
| void | popDir () |
| virtual bool | process (const std::string &filename)=0 |
| void | pushDir (const std::string &) |
| virtual | ~EnumFilesHandler () |
Private Attributes | |
| std::vector< std::string > | dirStack |
|
|
Definition at line 58 of file directory.cpp. 00059 {
00060 }
|
|
|
Definition at line 20 of file directory.h. 00020 {};
|
|
|
Definition at line 78 of file directory.cpp. References dirStack. Referenced by CatalogLoader< OBJDB >::process(), and SolarSystemLoader::process(). 00079 {
00080 // need this so we can return a non-temporary value:
00081 static const string emptyString("");
00082
00083 if (dirStack.size() > 0)
00084 return dirStack.back();
00085 else
00086 return emptyString;
00087 }
|
|
|
Definition at line 72 of file directory.cpp. References dirStack. 00073 {
00074 dirStack.pop_back();
00075 }
|
|
|
|
|
|
Definition at line 63 of file directory.cpp. References dirStack. Referenced by CelestiaCore::initSimulation(), and CelestiaCore::readStars(). 00064 {
00065 if (dirStack.size() > 0)
00066 dirStack.push_back(dirStack.back() + string("/") + dirName);
00067 else
00068 dirStack.push_back(dirName);
00069 }
|
|
|
Definition at line 29 of file directory.h. |
1.4.1