/******************************************************** * Path.h * * * * XFX Path definition file * * Copyright © XFX Team. All Rights Reserved * ********************************************************/ #ifndef _PATH_ #define _PATH_ #include namespace System { namespace IO { /// /// Performs operations on char* instances that contain file or directory path information. These /// operations are performed in a cross-platform manner. /// 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_