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

Redirector Class Reference

Redirect input to another BufferedTransformation without owning it. More...

#include <filters.h>

Inheritance diagram for Redirector:

Sink BufferedTransformation List of all members.

Public Methods

 Redirector ()
 Redirector (BufferedTransformation &target,bool passSignal=true)
void Redirect (BufferedTransformation &target)
void StopRedirect ()
bool GetPassSignal ()const
void SetPassSignal (bool passSignal)
void Put (byte b)
 input a byte for processing. More...

void Put (const byte *string,unsigned int len)
 input multiple bytes. More...

void Flush (bool completeFlush,int propagation=-1)
 process everything in internal buffers and output them. More...

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

void MessageSeriesEnd (int propagation=-1)
 mark end of a series of messages. More...

void ChannelPut (const::string &channel,byte b)
void ChannelPut (const::string &channel,const byte *string,unsigned int len)
void ChannelFlush (const::string &channel,bool completeFlush,int propagation=-1)
void ChannelMessageEnd (const::string &channel,int propagation=-1)
void ChannelMessageSeriesEnd (const::string &channel,int propagation=-1)

Detailed Description

Redirect input to another BufferedTransformation without owning it.

Definition at line 244 of file filters.h.


Constructor & Destructor Documentation

Redirector::Redirector ( ) [inline]
 

Definition at line 247 of file filters.h.

Redirector::Redirector ( BufferedTransformation & target,
bool passSignal = true ) [inline]
 

Definition at line 248 of file filters.h.


Member Function Documentation

void Redirector::ChannelFlush ( const::string & channel,
bool completeFlush,
int propagation = -1 ) [inline, virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 270 of file filters.h.

void Redirector::ChannelMessageEnd ( const::string & channel,
int propagation = -1 ) [inline, virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 272 of file filters.h.

void Redirector::ChannelMessageSeriesEnd ( const::string & channel,
int propagation = -1 ) [inline, virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 274 of file filters.h.

void Redirector::ChannelPut ( const::string & channel,
const byte * string,
unsigned int len ) [inline, virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 268 of file filters.h.

void Redirector::ChannelPut ( const::string & channel,
byte b ) [inline, virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 266 of file filters.h.

void Redirector::Flush ( bool completeFlush,
int propagation = -1 ) [inline, 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 259 of file filters.h.

bool Redirector::GetPassSignal ( ) const [inline]
 

Definition at line 252 of file filters.h.

void Redirector::MessageEnd ( int propagation = -1 ) [inline, 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 261 of file filters.h.

void Redirector::MessageSeriesEnd ( int propagation = -1 ) [inline, virtual]
 

mark end of a series of messages.

There should be a MessageEnd immediately before MessageSeriesEnd.

Reimplemented from BufferedTransformation.

Definition at line 263 of file filters.h.

void Redirector::Put ( const byte * string,
unsigned int len ) [inline, virtual]
 

input multiple bytes.

Reimplemented from BufferedTransformation.

Definition at line 257 of file filters.h.

void Redirector::Put ( byte b ) [inline, virtual]
 

input a byte for processing.

Reimplemented from BufferedTransformation.

Definition at line 255 of file filters.h.

void Redirector::Redirect ( BufferedTransformation & target ) [inline]
 

Definition at line 250 of file filters.h.

void Redirector::SetPassSignal ( bool passSignal ) [inline]
 

Definition at line 253 of file filters.h.

void Redirector::StopRedirect ( ) [inline]
 

Definition at line 251 of file filters.h.


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