Inheritance diagram for CP_FileSystemSpec:
Public Member Functions | |
CP_String | GetName () const |
void | GetName (HFSUniStr255 &inOutName) const |
CP_String | GetName () const |
bool | IsValid () const |
bool | IsValid () const |
bool | ExistsOnDisk () const |
bool | ExistsOnDisk () const |
bool | IsEqual (const CP_FileSystemSpec_Imp &) const |
bool | IsEqual (const CP_FileSystemSpec_Imp &) const |
bool | IsDirectory () const |
bool | IsDirectory () const |
void | GetParent (FSRef &inOutParentRef) const |
FSRefResult | GetParent () 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) |
void | AssertDecomposedForm () const |
Makes sure the filespec is in decomposed form (parentDirRef + name). | |
Constructor / Destructor | |
CP_FileSystemSpec () | |
Constructor. | |
CP_FileSystemSpec (const CP_FileSystemSpec &inFileSpec) | |
CP_FileSystemSpec (const CP_String &inFullPath) | |
CP_FileSystemSpec (const CP_FileSystemSpec &inParent, const CP_String &inName) | |
virtual | ~CP_FileSystemSpec () |
Destructor. | |
Getters | |
CP_FileSystemSpec | GetParentSpec () const |
CP_String | GetFullPath () const |
operators | |
const CP_FileSystemSpec & | operator= (const CP_FileSystemSpec &inFileSpec) |
bool | operator== (const CP_FileSystemSpec &inFileSpec) const |
bool | operator!= (const CP_FileSystemSpec &inFileSpec) const |
Constructor / Destructor | |
CP_FileSystemSpec (FSRef inFileRef) | |
Constructor. | |
CP_FileSystemSpec (const FSSpec &inFSSpec, CFStringEncoding inEncoding=::CFStringGetSystemEncoding()) | |
Getters | |
CP_String | GetName () const |
Testers | |
bool | IsValid () const |
bool | IsEqual (const CP_FileSystemSpec_Imp &inFileSpec_Imp) const |
bool | IsDirectory () const |
Setters | |
void | Set (const CP_String &inFullpath) |
void | SetName (const CP_String &inFileName) |
Setters | |
void | Set (const CP_String &inFullpath) |
void | SetName (const CP_String &inFileName) |
Testers | |
bool | IsValid () const |
bool | IsEqual (const CP_FileSystemSpec_Imp &inFileSpec_Imp) const |
bool | IsDirectory () const |
Protected Member Functions | |
FSRef | FSSpecToFSRef (const FSSpec &inFSSpec) |
FSSpec | FSRefToFSSpec (const FSRef &inFSRef) |
CP_String | GetFullPathInStyle (CFURLPathStyle inPathStyle) const |
Protected Attributes | |
CP_String | fName |
CP_String | fFullPath |
bool | fExists |
bool | fIsValid |
FSRef | fRef |
|
Constructor.
|
|
Copy constructor.
|
|
Constructor. This version specifies the file from the passed in full path.
|
|
Constructor. This version specifies the file from a parent file spec that points to the parent folder, and a string that contains the file name.
|
|
Destructor.
|
|
Constructor. This constructs the file system spec from a MacOS FSRef.
|
|
Constructor. This constructs the file system spec from a MacOS FSSpec.
|
|
Returns a CP_FileSystemSpec that points to the parent directory for this object.
|
|
Returns the full path of this file system spec as a CP_String. Under MacOSX the path will be returned as a posix style path.
Reimplemented from CP_FileSystemSpec_Imp. |
|
Assignment operator.
|
|
Compares the passed in file spec for equality with this one.
|
|
|
|
Return the name of this file system object as a CP_Stringn.
|
|
Returns the name of the file as a HFSUniStr255 in the passed in parameter.
|
|
|
|
|
|
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 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 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.
|
|
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.
|
|
|
|
|
|
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 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)
|
|
|
|
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.
|
|
|
|
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. |