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

strmod::strmod::NewlineChopper Class Reference

Just a CharChopper that's hard wired to '\n' as the character. More...

#include <StrMod/NewlineChopper.h>

Inheritance diagram for strmod::strmod::NewlineChopper:

Inheritance graph
[legend]
List of all members.

Public Types

typedef CharChopper parentclass

Public Methods

 NewlineChopper ()
 Just pass a newline character to parent consructor.

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.


Protected Methods

virtual const lcore::ClassIdent * i_GetIdent () const
 Returns the class identifier for the class the object actually is.


Detailed Description

Just a CharChopper that's hard wired to '\n' as the character.

This is such a common case, I thought it deserved its own class.

Definition at line 45 of file NewlineChopper.h.


Member Function Documentation

int strmod::strmod::NewlineChopper::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::CharChopper.

Definition at line 66 of file NewlineChopper.h.

virtual const lcore::ClassIdent* strmod::strmod::NewlineChopper::i_GetIdent   const [inline, protected, virtual]
 

Returns the class identifier for the class the object actually is.

Should always be overridden in any class that has a static identifier member.

Reimplemented from strmod::strmod::CharChopper.

Definition at line 58 of file NewlineChopper.h.


Member Data Documentation

const STR_ClassIdent strmod::strmod::NewlineChopper::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::CharChopper.


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