SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
modules/utils/source/Utils_iOS.h
Go to the documentation of this file.
1 /**
2  * \file apps/app_demo_slproject/ios/Utils_iOS
3  * \date July 2014
4  * \authors Marcus Hudritsch
5  * \copyright http://opensource.org/licenses/GPL-3.0
6  * \remarks Please use clangformat to format the code. See more code style on
7  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8 */
9 
10 #ifndef UTILS_IOS_H
11 #define UTILS_IOS_H
12 
13 #include <string>
14 #include <vector>
15 //-----------------------------------------------------------------------------
16 //! SLFileSystem provides basic filesystem functions
17 class Utils_iOS
18 {
19 public:
20  //! Returns true if a file exists.
21  static bool fileExists(std::string& pathfilename);
22 
23  //! Returns all files and folders in a directory as a vector
24  static std::vector<std::string> getAllNamesInDir(const std::string& dirName, bool fullPath = true);
25 
26  //! Returns the writable configuration directory
27  static std::string getAppsWritableDir();
28 
29  //! Returns the writable documents directory
30  static std::string getAppsDocumentsDir();
31 
32  //! Returns the working directory
33  static std::string getCurrentWorkingDir();
34 
35  //! Deletes a file on the filesystem
36  static bool deleteFile(std::string& pathfilename);
37 };
38 //-----------------------------------------------------------------------------
39 #endif
SLFileSystem provides basic filesystem functions.
static bool deleteFile(std::string &pathfilename)
Deletes a file on the filesystem.
static std::vector< std::string > getAllNamesInDir(const std::string &dirName, bool fullPath=true)
Returns all files and folders in a directory as a vector.
static std::string getCurrentWorkingDir()
Returns the working directory.
static std::string getAppsDocumentsDir()
Returns the writable documents directory.
static bool fileExists(std::string &pathfilename)
Returns true if a file exists.
static std::string getAppsWritableDir()
Returns the writable configuration directory.