ht::example::WordCount Class Reference

#include <WordCount.h>

Inheritance diagram for ht::example::WordCount:

ht::example::WordReader ht::graph::NodeBase ht::graph::Node List of all members.

Public Member Functions

void process (const WordBuffer &buf)
void connect (ht::graph::Node *next)
void stop ()
int words ()
int lines ()
int bytes ()

Detailed Description

Count lines, words and characters and push forward a text message with those values.


Member Function Documentation

void ht::example::WordCount::process ( const WordBuffer buf  )  [virtual]

Do something with a word

Implements ht::example::WordReader.

void ht::example::WordCount::connect ( ht::graph::Node  )  [virtual]

Do nothing

Reimplemented from ht::graph::NodeBase.

void ht::example::WordCount::stop (  )  [virtual]

Send the count of lines, words and characters as whole numbers, space separated

Reimplemented from ht::graph::NodeBase.

int ht::example::WordCount::words (  )  [inline]

Used for testing.

int ht::example::WordCount::lines (  )  [inline]

Used for testing.

int ht::example::WordCount::bytes (  )  [inline]

Used for testing.


The documentation for this class was generated from the following files:
Generated on Thu Jan 3 15:26:45 2008 by  doxygen 1.5.2