SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
apps/source/platforms/ios/Utils_iOS.h
Go to the documentation of this file.
1 /**
2  * \file Utils_iOS.h
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);
24 
25  //! Returns the writable configuration directory
26  static std::string getAppsWritableDir();
27 
28  //! Returns the working directory
29  static std::string getCurrentWorkingDir();
30 
31  //! Deletes a file on the filesystem
32  static bool deleteFile(std::string& pathfilename);
33 };
34 //-----------------------------------------------------------------------------
35 #endif
SLFileSystem provides basic filesystem functions.
static std::string getCurrentWorkingDir()
Returns the working directory.
static bool deleteFile(std::string &pathfilename)
Deletes a file on the filesystem.
static std::string getAppsWritableDir()
Returns the writable configuration directory.
static std::vector< std::string > getAllNamesInDir(const std::string &dirName)
Returns all files and folders in a directory as a vector.
static bool fileExists(std::string &pathfilename)
Returns true if a file exists.