paysages3d/src/system/FileSystem.h

34 lines
626 B
C
Raw Normal View History

2014-08-21 07:58:11 +00:00
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include "system_global.h"
#include <string>
2014-08-21 07:58:11 +00:00
namespace paysages {
namespace system {
class SYSTEMSHARED_EXPORT FileSystem {
public:
2014-08-21 07:58:11 +00:00
/**
* Get an absolute path to a temporary file.
*
* filename must not contain directory separators.
*/
2015-12-10 23:36:50 +00:00
static string getTempFile(const string &filename);
/**
* Returns true if the given path points to a file.
*/
2015-12-10 23:36:50 +00:00
static bool isFile(const string &filepath);
/**
* Remove a file by its absolute path.
*/
2015-12-10 23:36:50 +00:00
static bool removeFile(const string &filepath);
2014-08-21 07:58:11 +00:00
};
}
}
#endif // FILESYSTEM_H