18 #ifndef ZENI_FILE_OPS_H
19 #define ZENI_FILE_OPS_H
26 #include <android/asset_manager.h>
27 #include <android/asset_manager_jni.h>
32 class ZENI_DLL File_Ops;
35 ZENI_EXT
template class ZENI_DLL Singleton<File_Ops>;
52 static void init_AAssetManager(AAssetManager *
const &asset_manager);
53 static AAssetManager *
const get_AAssetManager();
57 static const String & get_uniqname();
58 const String & get_username();
61 static bool create_directory(
const String &directory_path);
62 static bool remove_directory(
const String &directory_path);
65 static bool delete_file(
const String &file_path);
66 static bool copy_file(
const String &from,
const String &to);
69 static void preinit(
const String &unique_app_identifier);
72 static String & get_unique_app_identifier();
75 static AAssetManager * m_asset_manager;
89 struct ZENI_DLL File_Ops_No_AAssetManager :
public Error {
90 File_Ops_No_AAssetManager() : Error(
"Zeni File_Ops No AAssetManager") {}
File_Ops_Asset_Load_Failure()
File_Ops & get_File_Ops()
Get access to the singleton.