|
| | gFile () |
| |
| | gFile (const std::string &fullPath, int fileMode=FILEMODE_READONLY, bool isBinary=true) |
| |
| virtual | ~gFile () |
| |
| bool | load (const std::string &fullPath, int fileMode=FILEMODE_READONLY, bool isBinary=true) |
| |
| bool | loadFile (const std::string &filePath, int fileMode=FILEMODE_READONLY, bool isBinary=true) |
| |
| void | close () |
| |
| fs::path | getPath () |
| |
| int | getMode () |
| |
| bool | isBinary () |
| |
| void | write (const std::string &content) |
| |
| void | write (std::vector< char > newBytes) |
| |
| void | write (const char *bytes, size_t length) |
| |
| std::vector< char > | getBytes () |
| |
| const std::vector< char > & | getBytesConst () |
| |
| std::string | getText () |
| |
| int | getSize () |
| |
| std::string | getFilename () |
| |
| std::string | getDirectory () |
| |
| bool | exists () |
| |
| bool | isFile () |
| |
| bool | isLink () |
| |
| bool | isDirectory () |
| |
| bool | isDevice () |
| |
| bool | isOpen () |
| |
| | gObject () |
| |
| void | logi (std::string message) |
| |
| void | logd (std::string message) |
| |
| void | logw (std::string message) |
| |
| void | loge (std::string message) |
| |
| void | logi (std::string tag, std::string message) |
| |
| void | logd (std::string tag, std::string message) |
| |
| void | logw (std::string tag, std::string message) |
| |
| void | loge (std::string tag, std::string message) |
| |
|
| static bool | doesFileExist (const std::string &fullPath) |
| |
| static bool | doesFileExistInAssets (const std::string &filePath) |
| |
| static bool | isFile (const std::string &fullPath) |
| |
| static bool | isFileInAssets (const std::string &filePath) |
| |
| static bool | isLink (const std::string &fullPath) |
| |
| static bool | isLinkInAssets (const std::string &filePath) |
| |
| static bool | isDirectory (const std::string &fullPath) |
| |
| static bool | isDirectoryInAssets (const std::string &filePath) |
| |
| static bool | isDevice (const fs::path &path) |
| |
| static std::string | getFilename (const fs::path &path) |
| |
| static std::string | getDirectory (const fs::path &path) |
| |
| static std::string | addComplementarySlashIfNeeded (const fs::path &filePath) |
| |
| static void | copy (const std::string &fromFullPath, const std::string &toFullPath, int copyOption=CopyOptions::NONE) |
| |
| static bool | copyFile (const std::string &fromFullPath, const std::string &toFullPath, int copyOption=CopyOptions::NONE) |
| |
| static void | copySymlink (const std::string &existingSymlinkFullPath, const std::string &newSymlinkFullPath) |
| |
| static bool | createDirectory (const std::string &fullPath) |
| |
| static void | createDirectorySymlink (const std::string &toFullPath, const std::string &symlinkFullPath) |
| |
| static void | createSymlink (const std::string &toFullPath, const std::string &symlinkFullPath) |
| |
| static bool | isEmpty (const std::string &fullPath) |
| |
| static bool | isEquivalent (const std::string &fullPath1, const std::string &fullPath2) |
| |
| static bool | isSymlink (const std::string &fullPath) |
| |
| static bool | remove (const std::string &fullPath) |
| |
| static bool | removeAll (const std::string &fullPath) |
| |
| static void | rename (const std::string &fromFullPath, const std::string &toFullPath) |
| |
| static std::vector< std::string > | getDirectoryContent (const std::string &fullPath) |
| |
| static std::string | gGetAppDir () |
| |
| static std::string | gGetAssetsDir () |
| |
| static void | gSetAssetsDir (std::string assetsDir) |
| |
| static std::string | gGetFilesDir () |
| |
| static std::string | gGetImagesDir () |
| |
| static std::string | gGetFontsDir () |
| |
| static std::string | gGetModelsDir () |
| |
| static std::string | gGetTexturesDir () |
| |
| static std::string | gGetShadersDir () |
| |
| static std::string | gGetSoundsDir () |
| |
| static std::string | gGetDatabasesDir () |
| |
| static std::string | gGetVideosDir () |
| |
| static void | setCurrentResolution (int scalingNo, int currentResolutionNo) |
| |