1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/IO/DirectoryInfo.h
Halofreak1990 95f3ff3ab6 Removed BeginRead and BeginWrite from Stream class; finally got it to compile :)
Now, there's only fixing cross-references and getting the namespace include headers sorted out. (Tech demo won't compile otherwise)
2010-12-28 01:12:19 +00:00

52 lines
1.7 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); // Initializes a new instance of the System::IO::DirectoryInfo class on the specified path.
void Create(); // Creates a directory.
DirectoryInfo CreateSubDirectory(const char* path); // Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the System::IO::DirectoryInfo class.
void Delete(); // Deletes this System::IO::DirectoryInfo if it is empty.
void Delete(bool recursive); // Deletes this instance of a System::IO::DirectoryInfo, specifying whether to delete subdirectories and files.
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_