#include <string>#include <vector>Include dependency graph for directory.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| bool | IsDirectory (const std::string &) |
| Directory * | OpenDirectory (const std::string &) |
| std::string | WordExp (const std::string &) |
|
|
Definition at line 93 of file unixdirectory.cpp. Referenced by Directory::enumFiles(), and VirtualTexture::populateTileTree(). 00094 {
00095 struct stat buf;
00096 stat(filename.c_str(), &buf);
00097 return S_ISDIR(buf.st_mode);
00098 }
|
|
|
Definition at line 87 of file unixdirectory.cpp. Referenced by Directory::enumFiles(), CelestiaCore::initSimulation(), VirtualTexture::populateTileTree(), and CelestiaCore::readStars(). 00088 {
00089 return new UnixDirectory(dirname);
00090 }
|
|
|
Definition at line 100 of file unixdirectory.cpp. Referenced by CelestiaCore::initSimulation(), and ReadCelestiaConfig(). 00100 {
00101 wordexp_t result;
00102 std::string expanded;
00103
00104 switch(wordexp(filename.c_str(), &result, WRDE_NOCMD)) {
00105 case 0: // successful
00106 break;
00107 case WRDE_NOSPACE:
00108 // If the error was `WRDE_NOSPACE',
00109 // then perhaps part of the result was allocated.
00110 wordfree(&result);
00111 default: // some other error
00112 return filename;
00113 }
00114
00115 if (result.we_wordc != 1) {
00116 wordfree(&result);
00117 return filename;
00118 }
00119
00120 expanded = result.we_wordv[0];
00121 wordfree(&result);
00122
00123 return expanded;
00124 }
|
1.4.1