#include <physfs_file_system.hpp>
Inherits FileSystem.
Public Member Functions | |
PhysFSFileSystem () | |
std::vector< std::string > | open_directory (const std::string &pathname) |
std::auto_ptr< std::istream > | open_file (const std::string &filename) |
Definition at line 22 of file physfs_file_system.hpp.
PhysFSFileSystem::PhysFSFileSystem | ( | ) |
std::vector< std::string > PhysFSFileSystem::open_directory | ( | const std::string & | pathname | ) |
Definition at line 26 of file physfs_file_system.cpp.
00027 { 00028 std::vector<std::string> files; 00029 00030 char** directory = PHYSFS_enumerateFiles(pathname.c_str()); 00031 for(char** i = directory; *i != 0; ++i) 00032 { 00033 files.push_back(*i); 00034 } 00035 PHYSFS_freeList(directory); 00036 00037 return files; 00038 }
std::auto_ptr< std::istream > PhysFSFileSystem::open_file | ( | const std::string & | filename | ) |
Definition at line 41 of file physfs_file_system.cpp.
00042 { 00043 return std::auto_ptr<std::istream>(new IFileStream(filename)); 00044 }