PhysFSFileSystem Class Reference

#include <physfs_file_system.hpp>

Inherits FileSystem.

List of all members.

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)


Detailed Description

Definition at line 22 of file physfs_file_system.hpp.


Constructor & Destructor Documentation

PhysFSFileSystem::PhysFSFileSystem (  ) 

Definition at line 21 of file physfs_file_system.cpp.

00022 {
00023 }


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:33 2014 for SuperTux by  doxygen 1.5.1