This class describes a full description for a file on the particular platform.
Overrides from class PObject
Overrides from class PContainer
Size/Length functions
Concatenation operators *
Comparison operators
Search & replace functions
Sub-string functions
Conversion functions
New functions for class
Common functions for containers
Run Time Type functions
Comparison functions
I/O functions
This class describes a full description for a file on the particular platform. This will always uniquely identify the file on currently mounted volumes.The ancestor class is dependent on the platform. For file systems that are case sensitive, eg Unix, the ancestor is PString. For other platforms, the ancestor class is PCaselessString.
The string passed in may be a full or partial specification for a file
as determined by the platform. It is unusual for this to be a literal
string, unless only the file title is specified, as that would be
platform specific. The partial file specification is translated into a canonical form
which always absolutely references the file.
The string passed in may be a full or partial specification for a file
as determined by the platform. It is unusual for this to be a literal
string, unless only the file title is specified, as that would be
platform specific. The partial file specification is translated into a canonical form
which always absolutely references the file.
The string passed in may be a full or partial specifiaction for a file
as determined by the platform. It is unusual for this to be a literal
string, unless only the file title is specified, as that would be
platform specific. The partial file specification is translated into a canonical form
which always absolutely references the file.
The string passed in may be a full or partial specifiaction for a file
as determined by the platform. It is unusual for this to be a literal
string, unless only the file title is specified, as that would be
platform specific. The partial file specification is translated into a canonical form
which always absolutely references the file.
PFilePath( const char * cstr )
PFilePath( const PString & str )
PFilePath( const PFilePath & path )
PFilePath( const char * prefix, const char * dir )
dir - Directory in which to place the file.PFilePath& operator=( const PFilePath & path )
PFilePath& operator=( const PString & str )
PFilePath& operator=( const char * cstr )
PFilePath& operator+=( const char * cstr )
myStr += "fred";
PFilePath& operator+=( char ch )
myStr += '!';
Note there are standard translations from file extensions, eg ".TXT"
and some Macintosh file types, eg "TEXT".
Note that for Unix platforms, this returns the physical path
of the directory. That is all symlinks are resolved. Thus the directory
returned may not be the same as the value of GetPath().
PFilePathString GetPath() const
PFilePathString GetTitle() const
PFilePathString GetType() const
PFilePathString GetFileName() const
PDirectory GetDirectory() const
void SetType( const PFilePathString & type )
static BOOL IsValid( const PString & str )
Alphabetic index HTML hierarchy of classes or Java