7 #ifndef NAZARA_DIRECTORY_HPP 8 #define NAZARA_DIRECTORY_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Core/MovablePtr.hpp> 12 #include <Nazara/Core/String.hpp> 14 #if defined(NAZARA_PLATFORM_WINDOWS) 15 #define NAZARA_DIRECTORY_SEPARATOR '\\' 16 #elif defined(NAZARA_PLATFORM_LINUX) 17 #define NAZARA_DIRECTORY_SEPARATOR '/' 20 #define NAZARA_DIRECTORY_SEPARATOR '/' 23 #if NAZARA_CORE_THREADSAFE && NAZARA_THREADSAFETY_DIRECTORY 24 #include <Nazara/Core/ThreadSafety.hpp> 26 #include <Nazara/Core/ThreadSafetyOff.hpp> 48 String GetResultName()
const;
49 String GetResultPath()
const;
50 UInt64 GetResultSize()
const;
53 bool IsResultDirectory()
const;
55 bool NextResult(
bool skipDots =
true);
59 void SetPath(
const String& dirPath);
60 void SetPattern(
const String& pattern);
62 static bool Copy(
const String& sourcePath,
const String& destPath);
63 static bool Create(
const String& dirPath,
bool recursive =
false);
64 static bool Exists(
const String& dirPath);
65 static String GetCurrent();
66 static const char* GetCurrentFileRelativeToEngine(
const char* currentFile);
67 static bool Remove(
const String& dirPath,
bool emptyDirectory =
false);
68 static bool SetCurrent(
const String& dirPath);
74 NazaraMutexAttrib(m_mutex,
mutable)
82 #endif // NAZARA_DIRECTORY_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a string.
Definition: String.hpp:22
Core class that represents a directory.
Definition: Directory.hpp:33