17 #if defined(AJA_WINDOWS)
81 const std::string & fileName,
83 const int properties);
86 const std::wstring & fileName,
88 const int properties);
113 uint32_t Read(uint8_t* pBuffer,
const uint32_t length);
123 uint32_t Read(std::string& buffer,
const uint32_t length);
133 uint32_t Write(
const uint8_t* pBuffer,
const uint32_t length)
const;
142 uint32_t Write(
const std::string& buffer)
const;
186 AJAStatus FileInfo(int64_t& createTime, int64_t& modTime, int64_t& size);
187 AJAStatus FileInfo(int64_t& createTime, int64_t& modTime, int64_t& size, std::string& filePath);
196 static bool FileExists(
const std::wstring& fileName);
197 static bool FileExists(
const std::string& fileName);
207 static AJAStatus Delete(
const std::string& fileName);
208 static AJAStatus Delete(
const std::wstring& fileName);
221 const std::string& directory,
222 const std::string& filePattern,
223 std::vector<std::string>& fileContainer);
226 const std::wstring& directory,
227 const std::wstring& filePattern,
228 std::vector<std::wstring>& fileContainer);
240 const std::string& directory,
241 const std::string& filePattern);
244 const std::wstring& directory,
245 const std::wstring& filePattern);
255 static AJAStatus DoesDirectoryExist(
const std::string& directory);
256 static AJAStatus DoesDirectoryExist(
const std::wstring& directory);
266 static bool DirectoryExists(
const std::string& directory);
267 static bool DirectoryExists(
const std::wstring& directory);
277 static AJAStatus IsDirectoryEmpty(
const std::string& directory);
278 static AJAStatus IsDirectoryEmpty(
const std::wstring& directory);
287 static AJAStatus TempDirectory(std::string& directory);
288 static AJAStatus TempDirectory(std::wstring& directory);
297 static AJAStatus GetWorkingDirectory(std::string& directory);
298 static AJAStatus GetWorkingDirectory(std::wstring& directory);
309 static AJAStatus GetDirectoryName(
const std::string& path, std::string& directory);
310 static AJAStatus GetDirectoryName(
const std::wstring& path, std::wstring& directory);
321 static AJAStatus GetFileName(
const std::string& path, std::string& filename);
322 static AJAStatus GetFileName(
const std::wstring& path, std::wstring& filename);
331 static AJAStatus GetExecutablePath(std::string& path);
332 static AJAStatus GetExecutablePath(std::wstring& path);
339 void SetHandle(FILE *fp);
341 #if defined(AJA_WINDOWS)
342 void *GetHandle(
void) {
return mFileDescriptor;}
349 #if defined(AJA_WINDOWS)
357 #endif // AJA_FILE_IO_H