Inheritance diagram for CP_FileSystemSpec_Imp:
Getters | |
CP_String | GetName () const |
CP_String | GetFullPath () const |
Public Member Functions | |
virtual | ~CP_FileSystemSpec_Imp () |
CP_String | GetName () const |
bool | IsValid () const |
bool | ExistsOnDisk () const |
bool | IsEqual (const CP_FileSystemSpec_Imp &) const |
bool | IsDirectory () const |
virtual | ~CP_FileSystemSpec_Imp () |
void | GetParent (FSRef &inOutParentRef) const |
FSRefResult | GetParent () const |
void | GetName (HFSUniStr255 &inOutName) const |
CP_String | GetName () const |
FSRefResult | GetFSRef () const |
FSSpec | GetFSSpec () const |
OSVolume | GetVolume () const |
SInt16 | GetVolumeID () const |
SInt32 | GetParID () const |
CP_CFURL | GetAsCFURL () |
CP_String | GetFullPath_Posix () const |
CP_String | GetFullPath_HFS () const |
bool | operator== (const CP_FileSystemSpec_Imp &inFileSpec) |
bool | operator!= (const CP_FileSystemSpec_Imp &inFileSpec) |
void | Set (FSRef inFileRef) |
void | Set (const CP_String &inName, FSRef inParentRef) |
void | Set (const FSSpec &inFSSpec, CFStringEncoding inEncoding=::CFStringGetSystemEncoding()) |
void | Set (SInt16 vRefNum, SInt32 dirID) |
void | Set (const CP_String &inFullpath) |
void | SetName (const CP_String &inFileName) |
bool | IsValid () const |
bool | ExistsOnDisk () const |
bool | IsDirectory () const |
bool | IsEqual (const CP_FileSystemSpec_Imp &) const |
void | AssertDecomposedForm () const |
Makes sure the filespec is in decomposed form (parentDirRef + name). | |
Constructor / Destructor | |
virtual | ~CP_FileSystemSpec_Imp () |
Destructor. | |
Protected Member Functions | |
CP_FileSystemSpec_Imp () | |
CP_FileSystemSpec_Imp (const CP_FileSystemSpec_Imp &inFileSpec_Imp) | |
CP_FileSystemSpec_Imp (const CP_String &inFullPath) | |
CP_FileSystemSpec_Imp & | operator= (const CP_FileSystemSpec_Imp &) |
CP_FileSystemSpec_Imp () | |
CP_FileSystemSpec_Imp (const CP_FileSystemSpec_Imp &inFileSpec_Imp) | |
CP_FileSystemSpec_Imp (const CP_String &inFullPath) | |
CP_FileSystemSpec_Imp (FSRef inFileRef) | |
CP_FileSystemSpec_Imp (const FSSpec &inFSSpec, CFStringEncoding inEncoding=::CFStringGetSystemEncoding()) | |
CP_FileSystemSpec_Imp & | operator= (const CP_FileSystemSpec_Imp &) |
FSRef | FSSpecToFSRef (const FSSpec &inFSSpec) |
FSSpec | FSRefToFSSpec (const FSRef &inFSRef) |
CP_String | GetFullPathInStyle (CFURLPathStyle inPathStyle) const |
Constructor / Destructor | |
CP_FileSystemSpec_Imp () | |
Constructor. | |
CP_FileSystemSpec_Imp (const CP_FileSystemSpec_Imp &inFileSpec) | |
CP_FileSystemSpec_Imp (const CP_String &inFullPath) | |
operators | |
CP_FileSystemSpec_Imp & | operator= (const CP_FileSystemSpec_Imp &) |
Protected Attributes | |
CP_String | fName |
CP_String | fFullPath |
bool | fExists |
bool | fIsValid |
FSRef | fRef |
Classes | |
struct | FSRefResult |
Smart FSRef result class. More... |
|
Destructor. |
|
Constructor. |
|
Copy constructor. Sets the fields of this object from the passed in CP_FileSystemSpec_Imp object.
|
|
Constructor. Sets the fields of this specification from the passed in string containing the full path of the file or folder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the name of this file system object as a CP_Stringn.
|
|
Return true if this points to a valid file specification in the platforms native file system. The file can be valid, but not yet exist in the native file system.
|
|
Return true if this points to a file that currently exists in the platforms native file system.
|
|
|
|
Returns true if this file spec represents a directory.
|
|
Assignment operator. Assigns the information for this object from the passed in CP_FileSystemSpec_Imp object.
|
|
Returns an FSRef to the parent folder of this file system specification.
|
|
Returns an FSRef to the parent folder of this file system specification.
|
|
Returns the name of the file as a HFSUniStr255 in the passed in parameter.
|
|
|
|
Returns a reference to the FSRef for this file or folder. If the object does not exist on disk, or this object is not valid, an OSException is thrown with the errFSBadFSRef code.
|
|
Returns a MacOS FSSpec for this file.
|
|
|
|
Returns the volume id for this file system spec. none
|
|
Returns the par id for this file system spec. none
|
|
|
|
|
|
|
|
Inequality operator. Checks if this object is not equal to the passed in CP_FileSystemSpec_Imp object.
|
|
|
|
Sets this file system spec to point to the FSRef passed in.
|
|
Sets this file system spec to point to an object location in the parent folder specified by inParentRef with the file name inFileName. This could point to a non-existant file if it has not been created yet.
|
|
Sets this file system spec to point to the object specified in the passed inFSSpec. This could point to a non-existant file if it has not been created yet.
|
|
Sets this file system spec to point to the object specified in the passed volume reference number, and directory id. This specifies a folder.
|
|
Sets this file system spec to point to the full path passed in.
|
|
Sets the file name for this file system spec Will change the file name (file title + file extension) but not the file path or the file drive (volume)
|
|
Return true if this points to a valid file specification in the platforms native file system. The file can be valid, but not yet exist in the native file system.
|
|
Return true if this points to a file that currently exists in the platforms native file system.
|
|
|
|
|
|
Since an FSRef can't point to a non-existing file, file specs for those files must be represented as an FSRef for the parent directory and a string for the node's name.
|
|
|
|
Returns a FSRef to the file specified in the passed in FSSpec. This throws an OSError exception if not successful.
|
|
Returns a FSSpec to the file specified in the passed in FSRef. This throws an OSError exception if not successful.
|
|
|
|
|
|
Returns a CP_String containing the full path of our file specification.
Reimplemented in CP_FileSystemSpec. |
|
|
|
|
|
Return true if this points to a valid file specification in the platforms native file system. The file can be valid, but not yet exist in the native file system.
|
|
|
|
|
|
|
|
MacOS FSRef to the file |
|
Name of the file |
|
Full path of the file |
|
flag to indicate if the file exists in the platforms file system |
|
flag to indicate if this object holds a valid specification for a file, which may or may not currently exist in the file system. |