mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Replaced all copyright symbols with (c) to improve cross-platform reading Added classes to XFX::Audio namespace Added and updated classes in XFX::Graphics namespace Updated event function signature Replaced const char* ToString() with const String& ToString()
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
/********************************************************
|
|
* Path.h *
|
|
* *
|
|
* XFX Path definition file *
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _SYSTEM_IO_PATH_
|
|
#define _SYSTEM_IO_PATH_
|
|
|
|
#include <System/String.h>
|
|
#include <System/Types.h>
|
|
|
|
namespace System
|
|
{
|
|
namespace IO
|
|
{
|
|
// Performs operations on String instances that contain file or directory path information.
|
|
// These operations are performed in a cross-platform manner.
|
|
class Path
|
|
{
|
|
private:
|
|
static bool dirEqualsVolume;
|
|
static const char* InvalidPathChars;
|
|
|
|
Path();
|
|
|
|
static void GetDrive(const char* szPartition, out char* cDriveLetter);
|
|
static char *GetInvalidFileNameChars();
|
|
|
|
public:
|
|
static const char AltDirectorySeparatorChar;
|
|
static const char DirectorySeparatorChar;
|
|
static const char PathSeparator;
|
|
static const char VolumeSeparatorChar;
|
|
|
|
static String ChangeExtension(const String& path, const String& extension);
|
|
static String Combine(const String& path1, const String& path2);
|
|
static String GetDirectoryName(char* path);
|
|
static String GetExtension(const String& path);
|
|
static char* GetFileName(char* path);
|
|
static String GetFileNameWithoutExtension(const String& path);
|
|
static char* GetFullPath(const String& path);
|
|
static char *GetInvalidPathChars();
|
|
static char* GetPathRoot(char* path);
|
|
static char* GetTempFileName();
|
|
static char* GetTempPath();
|
|
static bool HasExtension(const String& path);
|
|
static bool IsPathRooted(const String& path);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_IO_PATH_
|