mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Now, the only thing keeping XFX from a full compile is my stupid attempt at Asynchronous IO. Will look at that, but most likely, I will comment it out and just get a new Demo out before New Year.
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/********************************************************
|
|
* DirectoryInfo.h *
|
|
* *
|
|
* XFX DirectoryInfo definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _SYSTEM_IO_DIRECTORYINFO_
|
|
#define _SYSTEM_IO_DIRECTORYINFO_
|
|
|
|
#include "../Types.h"
|
|
#include "FileSystemInfo.h"
|
|
|
|
namespace System
|
|
{
|
|
namespace IO
|
|
{
|
|
/// <summary>
|
|
/// Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This
|
|
/// class cannot be inherited.
|
|
/// </summary>
|
|
class DirectoryInfo : public FileSystemInfo
|
|
{
|
|
private:
|
|
char* current;
|
|
char* parent;
|
|
|
|
DirectoryInfo();
|
|
|
|
public:
|
|
bool Exists();
|
|
char* Name();
|
|
DirectoryInfo Parent();
|
|
DirectoryInfo Root();
|
|
|
|
DirectoryInfo(const char* path, bool junk);
|
|
|
|
void Create();
|
|
DirectoryInfo CreateSubDirectory(const char* path);
|
|
void Delete();
|
|
void Delete(bool recursive);
|
|
DirectoryInfo* GetDirectories();
|
|
DirectoryInfo* GetDirectories(const char* searchPattern);
|
|
FileSystemInfo* GetFileSystemInfos();
|
|
FileSystemInfo* GetFileSystemInfos(const char* searchPattern);
|
|
void MoveTo(const char* destDirName);
|
|
char* ToString();
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_IO_DIRECTORYINFO_
|