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

strmod::strmod::CharChopper Class Reference

Chops up the data in chunks delimited by a character. More...

#include <StrMod/CharChopper.h>

Inheritance diagram for strmod::strmod::CharChopper:

Inheritance graph
[legend]
List of all members.

Public Methods

 CharChopper (char chopchar)
 Make a CharChopper.

virtual int AreYouA (const lcore::ClassIdent &cid) const
 Asks if a class is of a particular type, or publicly derived from that type.


Static Public Attributes

const STR_ClassIdent identifier
 Globally unique identifier for this class.


Detailed Description

Chops up the data in chunks delimited by a character.

If an object of this class is constructed with a 'g', and you have an incoming stream of data that arrives in the following chunks:

 <This ghost> < went to the gilded post t> <o admire the gold.> 

You'll end up with an outgoing stream of data that looks like this:

 <This g> <host went to the g> <ilded post to admire the g> 

It will hold the last few characters <old.>, waiting for another 'g' before it send them off again.

Definition at line 63 of file CharChopper.h.


Constructor & Destructor Documentation

strmod::strmod::CharChopper::CharChopper char    chopchar [inline]
 

Make a CharChopper.

Parameters:
chopchar The character to split by.
The character can be anything, including '\0'.

Definition at line 73 of file CharChopper.h.


Member Function Documentation

int strmod::strmod::CharChopper::AreYouA const lcore::ClassIdent &    cid const [inline, virtual]
 

Asks if a class is of a particular type, or publicly derived from that type.

Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.

Parameters:
cid Usually <class>::identifier for the class you want to ask if the object is an instance of.

Reimplemented from strmod::strmod::StreamProcessor.

Reimplemented in strmod::strmod::NewlineChopper.

Definition at line 100 of file CharChopper.h.


Member Data Documentation

const STR_ClassIdent strmod::strmod::CharChopper::identifier [static]
 

Globally unique identifier for this class.

Every class that might need to be identified should have a public static const identifier object in it.

Reimplemented from strmod::strmod::StreamProcessor.

Reimplemented in strmod::strmod::NewlineChopper.


The documentation for this class was generated from the following files:
Generated on Wed Jan 29 00:32:53 2003 for libNet by doxygen1.3-rc1