paysages3d/src/system/FileSystem.h

32 lines
627 B
C
Raw Normal View History

2014-08-21 07:58:11 +00:00
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include "system_global.h"
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.
*/
static std::string getTempFile(const std::string &filename);
/**
* Returns true if the given path points to a file.
*/
static bool isFile(const std::string &filepath);
/**
* Remove a file by its absolute path.
*/
static bool removeFile(const std::string &filepath);
2014-08-21 07:58:11 +00:00
};
}
}
#endif // FILESYSTEM_H