Do not derive your own classes from this class.
Use the functions in this group to construct or destroy objects of class IFile.
![]() |
public:
virtual ~IFile()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFile(const IFile& copy)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IFile()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use this operator to replace the existing object with the assigned, given one.
![]() |
public:
IFile& operator =(const IFileSystemEntity& right)
IEntityTypeMismatch | thrown if the specified entity is not a file |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
The kind of the file system entity. A form of homegrown RTTI.
![]() |
public:
static const IFileKind _IMPORT kKind
This constant is used for dynamic type checking.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the functions in this group to set and get a file's size, get a file's modification time, or to create a temporary file.
![]() |
public:
static IFile createTemporary( const IFileName& name = uniqueName ( ), const IFileSize initialSize = 0u )
IEntityExists | thrown if a name is provided and a a temporary file with that name already exists. |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFSFileRecord* getRecord() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void setModificationTime( const ITimeStamp& modificationTime ) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void setSize(IFileSize newSize)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IFileSize size() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the constructors in this group to create IFile objects based on the given information, such as a host path name, a partial path name, a file system entity, or a file system directory record.
![]() |
public:
IFile( const IPathName& path, ECreateFlags flags = kMustExist )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IFile(const IFileSystemEntity& copy)
IEntityTypeMismatch | thrown if the specified entity is not a file |
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IFile( const IHostPathName& path, ECreateFlags flags = kMustExist, const ICompoundNameParser& = defaultParser ( ) )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IFile(IFSFileRecord* Record)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use the function in this group to create a stream.
![]() |
public:
IDataStream* createStream( int modeForMe = in + out, int modeForOthers = 0, IDataStream::EStreamEncoding encoding = IDataStream::kInteroperableBinary )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
enum EOpenMode { in=1, out=2, ate=4, app=010, trunc=020 }
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IFileSystemEntity()
bool connected() const
IFileSystemEntity copyTo( IDirectory& destination, const IFileName& newName = "", EFailureAction action = kStop ) const
static const ICompoundNameParser& defaultParser()
void deleteSelf(bool deleteChildren = false)
IFSRecord* getRecord() const
IHostPathName hostPath( const ICompoundNameParser& parser = defaultParser ( ) ) const
IFileSystemEntity(const IPathName& path)
IFileSystemEntity( const IHostPathName& hostPath, const ICompoundNameParser& = defaultParser ( ) )
IFileSystemEntity(const IFileSystemEntity& copy)
IFileSystemEntity(IFSRecord* Record)
IFileSystemEntity()
bool isA(const IFileKind& kind) const
ITimeStamp modificationTime() const
void moveTo( IDirectory& destination, const IFileName& newName = "", EFailureAction action = kStop )
IFileName name() const
bool operator !=(const IFileSystemEntity& object) const
virtual IFileSystemEntity& operator =( const IFileSystemEntity& right )
bool operator ==(const IFileSystemEntity& object) const
IDirectory parent() const
IPathName path() const
virtual void readFromStream(IDataStream& fromwhere)
void setName(const IFileName& newName) const
bool temporary() const
IDirectory topmostParent() const
static const IFileName& uniqueName()
bool valid() const
IVolume volume() const
virtual void writeToStream(IDataStream& towhere) const
virtual ~IMStreamable()
void externalizeToStream(IDataStream& towhere) const
void internalizeFromStream(IDataStream& fromwhere)
virtual const ITypeRepresentation& typeRepresentation() const = 0
IMStreamable(const IMStreamable& other)
IMStreamable()
virtual void readFromStream(IDataStream& fromwhere) = 0
virtual void writeToStream(IDataStream& towhere) const = 0
void setInvalid()
void typeSafeAssign( const IFileSystemEntity& right, const IFileKind& kind )