#include <pathname.h>
Inheritance diagram for DirPath:
Public Member Functions | |
DirPath () | |
DirPath class constructors. | |
DirPath (const DirPath &) | |
DirPath (const String_256 &) | |
BOOL | SetDirPath (const String_256 &) |
Parses a string representing a path and sets up the class variables filetype, filename and location if the path is valid otherwise it sets them to null strings. | |
virtual BOOL | IsValid (const String_256 &) const |
Parses a string representing a directory path and sets up the class variables filetype, filename and location if the path is valid. Cannot do the usual 8.3 checking of things like filenames as this is no longer valid given Chicago and NT non-FAT filing systems. | |
virtual BOOL | IsValid () const |
Says whether the pathname currently in the class has been parsed correctly. This should only be used if the non-blank contructors have been called and more specifically the contructor which takes a pathname as a parameter has been used. This function then returns the result of the validation that happens in the constructor as of course constructors cannot return results! | |
Protected Member Functions | |
virtual BOOL | IsValidAndReturnInfo (const String_256 &, String_256 &, String_256 &, String_256 &, String_256 &, BOOL=TRUE) const |
Parses a string representing a directory path and returns if it's valid or not. It also splits the string up into drivename, location and last directory name in the list. (it does this because it's overriding the pathname version, and can be useful if you know what it's doing !). |
Definition at line 170 of file pathname.h.
|
DirPath class constructors.
Definition at line 1665 of file pathname.cpp. 01665 : PathName() 01666 { 01667 }
|
|
Definition at line 1668 of file pathname.cpp. 01668 : PathName(newPath) 01669 { 01670 }
|
|
Definition at line 1671 of file pathname.cpp. 01671 : PathName(path) 01672 { 01673 }
|
|
Says whether the pathname currently in the class has been parsed correctly. This should only be used if the non-blank contructors have been called and more specifically the contructor which takes a pathname as a parameter has been used. This function then returns the result of the validation that happens in the constructor as of course constructors cannot return results!
Reimplemented from PathName. Definition at line 1733 of file pathname.cpp. 01734 { 01735 return PathName::IsValid(); 01736 }
|
|
Parses a string representing a directory path and sets up the class variables filetype, filename and location if the path is valid. Cannot do the usual 8.3 checking of things like filenames as this is no longer valid given Chicago and NT non-FAT filing systems.
Reimplemented from PathName. Definition at line 1711 of file pathname.cpp. 01712 { 01713 return PathName::IsValid(path); 01714 }
|
|
Parses a string representing a directory path and returns if it's valid or not. It also splits the string up into drivename, location and last directory name in the list. (it does this because it's overriding the pathname version, and can be useful if you know what it's doing !).
Reimplemented from PathName. Definition at line 1771 of file pathname.cpp. 01773 { 01774 // This routine doesn't actually do very much because it was found that the pathname class 01775 // returns ok for "C:\"... Possibly the FilePath class should detect this and return FALSE ? 01776 01777 return PathName::IsValidAndReturnInfo(ConstPath, tempFilename, tempLocation, tempFiletype, 01778 tempDrivename, SetErrors); 01779 }
|
|
Parses a string representing a path and sets up the class variables filetype, filename and location if the path is valid otherwise it sets them to null strings.
Definition at line 1690 of file pathname.cpp. 01691 { 01692 return PathName::SetPathName(path); 01693 }
|