1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 e7a47c8ed9 Revamped the List class so that it can (properly) handle pointers as well
Added 'ValueTypes' Single and Double
Added some components in the new System::Net namespace
Added the Console class, which can be used to output text to the screen
Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types
Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions.

BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
2011-11-07 01:29:50 +00:00

50 lines
1.6 KiB
C++

/********************************************************
* Directory.h *
* *
* XFX Directory class definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _SYSTEM_IO_DIRECTORY_
#define _SYSTEM_IO_DIRECTORY_
#include "../Types.h"
#include "../Object.h"
namespace System
{
class DateTime;
namespace IO
{
class DirectoryInfo;
// Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
class Directory : virtual Object
{
private:
Directory();
public:
static DirectoryInfo CreateDirectory(char* path);
static void Delete(char* path);
static void Delete(char* path, bool recursive);
static bool Exists(char* path);
static DateTime GetCreationTime(const char* path);
static char* GetCurrentDirectory();
static char** GetDirectories(char* path);
static char** GetDirectories(char* path, char* searchPattern);
static char* GetDirectoryRoot(char* path);
static char** GetFiles(char* path);
static char** GetFiles(char* path, char* searchPattern);
static char** GetFileSystemEntries(char* path);
static char** GetFileSystemEntries(char* path, char* searchPattern);
static DateTime GetLastAccessTime(char* path);
static DateTime GetLastWriteTime(char* path);
static void Move(char* sourceDirName, char* destDirName);
static void SetCurrentDirectory(char* path);
};
}
}
#endif //_SYSTEM_IO_DIRECTORY_