10 #import <Foundation/Foundation.h>
19 iOSFileIO(
const std::string& assetPathPrefix = std::string(
""));
21 iOSFileIO(
const std::vector<std::string>& bundleIdentifiers,
22 const std::string& assetPathPrefix);
25 virtual bool GetUrl(
const std::string& name,
char* fileURL);
27 virtual bool OpenFile(std::fstream& stream,
size_t& size,
const std::string& name, std::ios_base::openmode mode=std::ifstream::in);
28 virtual bool WriteFile(
const Byte* data,
size_t size,
const std::string& name, std::ios_base::openmode mode=std::ifstream::out);
29 virtual bool DeleteFile(
const std::string& name);
30 virtual bool Exists(
const std::string& name);
32 virtual std::string GetAppFilePathname(
const std::string& filename);
35 CFURLRef FindResourceUrlInBundles(CFStringRef resourceName, CFStringRef resourceExtension, CFStringRef subDirectoryName)
const;
37 const std::string m_assetPathPrefix;
39 std::vector<CFBundleRef> m_bundles;