1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

56 lines
1.6 KiB
C
Raw Normal View History

/********************************************************
* Path.h *
* *
* XFX Path definition file *
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
********************************************************/
#ifndef _PATH_
#define _PATH_
#include <System/Types.h>
namespace System
{
namespace IO
{
/// <summary>
/// Performs operations on char* instances that contain file or directory path information. These
/// operations are performed in a cross-platform manner.
/// </summary>
class Path
{
private:
static bool dirEqualsVolume;
Path();
static void GetDrive(const char* szPartition, out char* cDriveLetter);
public:
static const char AltDirectorySeparatorChar;
static const char DirectorySeparatorChar;
static const char* InvalidPathChars;
static const char PathSeparator;
static const char VolumeSeparatorChar;
static char* ChangeExtension(char* path, char* extension);
static char* Combine(char* path1, char* path2);
static char* GetDirectoryName(char* path);
static char* GetExtension(char* path);
static char* GetFileName(char* path);
static char* GetFileNameWithoutExtension(char* path);
static char* GetFullPath(char* path);
static char *GetInvalidFileNameChars();
static char *GetInvalidPathChars();
static char* GetPathRoot(char* path);
static char* GetRandomFileName();
static char* GetTempFileName();
static char* GetTempPath();
static bool HasExtension(char* path);
static bool IsPathRooted(char* path);
};
}
}
#endif //_PATH_