Falcon::FileStream Class Reference

#include <fstream.h>

Inheritance diagram for Falcon::FileStream:

Inheritance graph
[legend]

List of all members.

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)


Constructor & Destructor Documentation

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.


Member Function Documentation

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]


The documentation for this class was generated from the following file:

Generated on Mon Oct 19 10:11:35 2009 for Falcon_Core by  doxygen 1.5.8