#include <pathname.h>
Inheritance diagram for FilePath:
Public Member Functions | |
FilePath () | |
FilePath class constructors. | |
FilePath (const FilePath &) | |
FilePath (const String_256 &) | |
BOOL | SetFilePath (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 file 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 path and returns the filetype, filename and location to the caller 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. Routine called by IsValid to actually go and do the work involved with checking the pathname. Done this way so that internal calls do not have to parse the data again to get at the variables. |
Definition at line 205 of file pathname.h.
|
FilePath class constructors.
Definition at line 1796 of file pathname.cpp. 01796 : PathName() 01797 { 01798 }
|
|
Definition at line 1799 of file pathname.cpp. 01799 : PathName(newPath) 01800 { 01801 }
|
|
Definition at line 1802 of file pathname.cpp. 01802 : PathName(path) 01803 { 01804 }
|
|
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 1864 of file pathname.cpp. 01865 { 01866 return PathName::IsValid(); 01867 }
|
|
Parses a string representing a file 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 1842 of file pathname.cpp. 01843 { 01844 return PathName::IsValid(path); 01845 }
|
|
Parses a string representing a path and returns the filetype, filename and location to the caller 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. Routine called by IsValid to actually go and do the work involved with checking the pathname. Done this way so that internal calls do not have to parse the data again to get at the variables.
Reimplemented from PathName. Definition at line 1898 of file pathname.cpp. 01900 { 01901 return PathName::IsValidAndReturnInfo(ConstPath, tempFilename, tempLocation, tempFiletype, 01902 tempDrivename, SetErrors); 01903 }
|
|
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 1821 of file pathname.cpp. 01822 { 01823 return PathName::SetPathName(path); 01824 }
|