34 #ifndef PTLIB_FILEPATH_H
35 #define PTLIB_FILEPATH_H
301 #include "msos/ptlib/filepath.h"
303 #include "unix/ptlib/filepath.h"
308 #endif // PTLIB_FILEPATH_H
PFilePathString GetFileName() const
Get the actual directory entry name component of the full file specification.
static PBoolean IsValid(char c)
Test if the character is valid in a filename.
PFilePathString GetTitle() const
Get the title component of the full file specification, eg for the DOS file "C:\SRC\PWLIB\FRED.DAT" this would be "FRED".
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
PFilePathString GetVolume() const
Get the drive/volume name component of the full file specification.
PFilePath & operator=(const PFilePath &path)
Change the file specification object to the specified file name.
PDirectory GetDirectory() const
Get the the directory that the file is contained in.
PFilePath & operator+=(const PString &str)
Concatenate a string to the file path, modifiying that path.
BOOL PBoolean
Definition: object.h:102
Class to represent a directory in the operating system file system.
Definition: pdirect.h:182
PFilePath()
Create a file specification object.
void SetType(const PFilePathString &type)
Set the type component of the full file specification, eg for the DOS file "C:\SRC\PWLIB\FRED.DAT" would become "C:\SRC\PWLIB\FRED.TXT".
The character string class.
Definition: pstring.h:108
Base string type for a file path.
Definition: filepath.h:48
virtual void AssignContents(const PContainer &cont)
Copy the container contents.
Abstract class to embody the base functionality of a container.
Definition: contain.h:104
PFilePathString GetType() const
Get the file type of the file.
static bool IsAbsolutePath(const PString &path)
Test if path is an absolute path or relative path.
PFilePathString GetPath() const
Get the directory path component of the full file specification.