#include <fstream.h>
Public Member Functions | |
virtual bool | create (const String &filename, t_attributes mode, t_shareMode share=e_smExclusive) |
Create the file. | |
FileStream () | |
Default constructor. | |
FileStream (FileSysData *fsdata) | |
Constructs a stream based on system resources. | |
virtual bool | open (const String &filename, t_openMode mode=e_omReadOnly, t_shareMode share=e_smExclusive) |
Open the file. | |
virtual void | setSystemData (const FileSysData &data) |
Falcon::FileStream::FileStream | ( | FileSysData * | fsdata | ) | [inline] |
Constructs a stream based on system resources.
The implementor must create a FileSysData suitable for the host system containing the resoruces the target system need to access files.
Falcon::FileStream::FileStream | ( | ) |
Default constructor.
System specific implementations will create a consistent FileSysData representing an unopened system resource.
Use this constructor if this stream must be used to manage a file that must be created or opened.
If the stream is created or opened independently, use the FileStream( FileSysData *) constructor.
virtual bool Falcon::FileStream::create | ( | const String & | filename, | |
t_attributes | mode, | |||
t_shareMode | share = e_smExclusive | |||
) | [virtual] |
Create the file.
If the file already existed, it is destroyed and overwritten.
On success, the internal file system specific data are filled with the newly created data. On failure, lastError() will return the error code.
virtual bool Falcon::FileStream::open | ( | const String & | filename, | |
t_openMode | mode = e_omReadOnly , |
|||
t_shareMode | share = e_smExclusive | |||
) | [virtual] |
Open the file.
On success, the internal file system specific data are filled with the newly created data. On failure, lastError() will return the error code.
virtual void Falcon::FileStream::setSystemData | ( | const FileSysData & | data | ) | [virtual] |