Public Member Functions | Protected Member Functions

zeus::TFileOutputStream Class Reference

#include <FileOutputStream.h>

Inheritance diagram for zeus::TFileOutputStream:
zeus::TAbstractOutputStream zeus::TZObject zeus::IOutputStream zeus::IZUnknown zeus::IZUnknown

List of all members.

Public Member Functions

 TFileOutputStream (const IString &rFilename, bool bAppend)
 TFileOutputStream (TFile &rFile, bool bAppend=true)
virtual Retval MQUALIFIER write (const char *pBuffer, Int iBufferSize)
virtual Retval MQUALIFIER writeInt8 (Int8 cData)
virtual void MQUALIFIER close ()
virtual void MQUALIFIER flush ()

Protected Member Functions

virtual ~TFileOutputStream ()

Detailed Description

Implements an output stream to write into a file


Constructor & Destructor Documentation

zeus::TFileOutputStream::TFileOutputStream ( const IString strFilename,
bool  bAppend 
)

UNICODE PROBLEMs of this class:

  • The constructor of ifstream which takes a file name uses char*.
  • This could not be solved by using a constructor which takes a file descriptor (file handle, integer number). In this case, the file would be opened manually before constructor the ifstream object. However, constructing ifstream by giving a file descriptor always resulted in an opening failure (ifstream::is_open() returned false).

Creates an output file stream

Parameters:
strFilename: Name of the file to open
bAppend: if set the data will be appended to the existing content of the file
zeus::TFileOutputStream::TFileOutputStream ( TFile rFile,
bool  bAppend = true 
)

Creates an output file stream

Parameters:
rFile: File object
bAppend: if set the data will be appended to the existing content of the file
zeus::TFileOutputStream::~TFileOutputStream (  ) [protected, virtual]

Destroys the output file stream


Member Function Documentation

void MQUALIFIER zeus::TFileOutputStream::close (  ) [virtual]
void MQUALIFIER zeus::TFileOutputStream::flush (  ) [virtual]
Retval MQUALIFIER zeus::TFileOutputStream::write ( const char *  pBuffer,
Int  iBufferSize 
) [virtual]
Retval MQUALIFIER zeus::TFileOutputStream::writeInt8 ( Int8  cData ) [virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:33