Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FileSink Class Reference

. More...

#include <files.h>

Inheritance diagram for FileSink:

Sink BufferedTransformation List of all members.

Public Methods

 FileSink (::ostream &out)
 FileSink (const char *filename,bool binary=true)
::ostream& GetStream ()
void Flush (bool=true,int=-1)
 process everything in internal buffers and output them. More...

void MessageEnd (int=-1)
 mark end of an input segment, message, or packet. More...

void Put (byte inByte)
 input a byte for processing. More...

void Put (const byte *inString,unsigned int length)
 input multiple bytes. More...


Detailed Description

.

Definition at line 64 of file files.h.


Constructor & Destructor Documentation

FileSink::FileSink ( const char * filename,
bool binary = true )
 

Definition at line 91 of file files.cpp.


Member Function Documentation

void FileSink::Flush ( bool completeFlush = true,
int propagation = -1 ) [virtual]
 

process everything in internal buffers and output them.

throws exception if completeFlush == true and it's not possible to flush everything

Reimplemented from BufferedTransformation.

Definition at line 98 of file files.cpp.

Referenced by MessageEnd().

ostream & FileSink::GetStream ( ) [inline]
 

Definition at line 78 of file files.h.

void FileSink::MessageEnd ( int propagation = -1 ) [virtual]
 

mark end of an input segment, message, or packet.

propagation != 0 means pass on the signal to attached BufferedTransformation objects, with propagation decremented at each step until it reaches 0. -1 means unlimited propagation.

Reimplemented from BufferedTransformation.

Definition at line 105 of file files.cpp.

void FileSink::Put ( const byte * inString,
unsigned int length ) [virtual]
 

input multiple bytes.

Reimplemented from BufferedTransformation.

Definition at line 110 of file files.cpp.

void FileSink::Put ( byte inByte ) [inline, virtual]
 

input a byte for processing.

Reimplemented from BufferedTransformation.

Definition at line 82 of file files.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:49 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000