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 //-----------------------------------------------------------------------------
15 //! SLFileSystem provides basic filesystem functions
16 class Utils_iOS
17 {
18 public:
19  //! Returns true if a file exists.
20  static bool fileExists(std::string& pathfilename);
21 
22  //! Returns all files and folders in a directory as a vector
23  static std::vector<std::string> getAllNamesInDir(const std::string& dirName, bool fullPath = true);
24 
25  //! Returns the writable configuration directory
26  static std::string getAppsWritableDir();
27 
28  //! Returns the writable documents directory
29  static std::string getAppsDocumentsDir();
30 
31  //! Returns the working directory
32  static std::string getCurrentWorkingDir();
33 
34  //! Deletes a file on the filesystem
35  static bool deleteFile(std::string& pathfilename);
36 };
37 //-----------------------------------------------------------------------------
38 #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.