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

ChannelSwitch Class Reference

. More...

#include <channels.h>

Inheritance diagram for ChannelSwitch:

BufferedTransformation List of all members.

Public Methods

 ChannelSwitch ()
 ChannelSwitch (BufferedTransformation &destination)
 ChannelSwitch (BufferedTransformation &destination,const::string &outChannel)
void Put (byte inByte)
 input a byte for processing. More...

void Put (const byte *inString,unsigned int length)
 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 PutMessageEnd (const byte *inString,unsigned int length,int propagation=-1)
 same as Put() followed by MessageEnd() but may be more efficient. More...

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

void ChannelPut (const::string &channel,byte inByte)
void ChannelPut (const::string &channel,const byte *inString,unsigned int length)
void ChannelFlush (const::string &channel,bool completeFlush,int propagation=-1)
void ChannelMessageEnd (const::string &channel,int propagation=-1)
void ChannelPutMessageEnd (const::string &channel,const byte *inString,unsigned int length,int propagation=-1)
void ChannelMessageSeriesEnd (const::string &channel,int propagation=-1)
void AddDefaultRoute (BufferedTransformation &destination)
void RemoveDefaultRoute (BufferedTransformation &destination)
void AddDefaultRoute (BufferedTransformation &destination,const::string &outChannel)
void RemoveDefaultRoute (BufferedTransformation &destination,const::string &outChannel)
void AddRoute (const::string &inChannel,BufferedTransformation &destination,const::string &outChannel)
void RemoveRoute (const::string &inChannel,BufferedTransformation &destination,const::string &outChannel)

Friends

class  RouteIterator

Detailed Description

.

Definition at line 12 of file channels.h.


Constructor & Destructor Documentation

ChannelSwitch::ChannelSwitch ( ) [inline]
 

Definition at line 15 of file channels.h.

ChannelSwitch::ChannelSwitch ( BufferedTransformation & destination ) [inline]
 

Definition at line 16 of file channels.h.

ChannelSwitch::ChannelSwitch ( BufferedTransformation & destination,
const::string & outChannel ) [inline]
 

Definition at line 20 of file channels.h.


Member Function Documentation

void ChannelSwitch::AddDefaultRoute ( BufferedTransformation & destination,
const::string & outChannel )
 

Definition at line 170 of file channels.cpp.

void ChannelSwitch::AddDefaultRoute ( BufferedTransformation & destination )
 

Definition at line 155 of file channels.cpp.

void ChannelSwitch::AddRoute ( const::string & inChannel,
BufferedTransformation & destination,
const::string & outChannel )
 

Definition at line 185 of file channels.cpp.

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

Reimplemented from BufferedTransformation.

Definition at line 115 of file channels.cpp.

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

Reimplemented from BufferedTransformation.

Definition at line 125 of file channels.cpp.

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

Reimplemented from BufferedTransformation.

Definition at line 135 of file channels.cpp.

void ChannelSwitch::ChannelPut ( const::string & channel,
const byte * inString,
unsigned int length ) [virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 105 of file channels.cpp.

void ChannelSwitch::ChannelPut ( const::string & channel,
byte inByte ) [virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 95 of file channels.cpp.

void ChannelSwitch::ChannelPutMessageEnd ( const::string & channel,
const byte * inString,
unsigned int length,
int propagation = -1 ) [virtual]
 

Reimplemented from BufferedTransformation.

Definition at line 145 of file channels.cpp.

void ChannelSwitch::Flush ( bool completeFlush,
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 19 of file channels.cpp.

void ChannelSwitch::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 24 of file channels.cpp.

void ChannelSwitch::MessageSeriesEnd ( int propagation = -1 ) [virtual]
 

mark end of a series of messages.

There should be a MessageEnd immediately before MessageSeriesEnd.

Reimplemented from BufferedTransformation.

Definition at line 29 of file channels.cpp.

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

input multiple bytes.

Reimplemented from BufferedTransformation.

Definition at line 14 of file channels.cpp.

void ChannelSwitch::Put ( byte inByte ) [virtual]
 

input a byte for processing.

Reimplemented from BufferedTransformation.

Definition at line 9 of file channels.cpp.

void ChannelSwitch::PutMessageEnd ( const byte * inString,
unsigned int length,
int propagation = -1 ) [virtual]
 

same as Put() followed by MessageEnd() but may be more efficient.

Reimplemented from BufferedTransformation.

Definition at line 34 of file channels.cpp.

void ChannelSwitch::RemoveDefaultRoute ( BufferedTransformation & destination,
const::string & outChannel )
 

Definition at line 175 of file channels.cpp.

void ChannelSwitch::RemoveDefaultRoute ( BufferedTransformation & destination )
 

Definition at line 160 of file channels.cpp.

void ChannelSwitch::RemoveRoute ( const::string & inChannel,
BufferedTransformation & destination,
const::string & outChannel )
 

Definition at line 190 of file channels.cpp.


Friends And Related Function Documentation

class RouteIterator [friend]
 

Definition at line 57 of file channels.h.


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