file_manager.hh
00001 #ifndef _FILE_MANAGER_HH_ 00002 #define _FILE_MANAGER_HH_ 00003 00004 #include <fstream> 00005 #include <string> 00006 #include <vector> 00007 00008 namespace Stg { 00009 00010 class FileManager { 00011 private: 00012 std::vector<std::string> paths; 00013 std::string SharePath; 00014 std::string AssetPath; 00015 std::string CtrlPath; 00016 std::string WorldsRoot; 00017 00018 std::string stripFilename( std::string path ); 00019 public: 00020 FileManager(); 00021 00022 std::string fullPath( std::string filename ); 00023 //std::string fullPathImage( std::string filename ); 00024 00025 inline const std::string worldsRoot() const { return WorldsRoot; } 00026 inline void newWorld( std::string worldfile ) { 00027 WorldsRoot = stripFilename( worldfile ); } 00028 00029 bool readable( std::string path ); 00030 }; 00031 00032 }; 00033 #endif
Generated on Wed Jul 30 11:36:06 2008 for Stage by 1.4.7