DGD Library
Version: 0.1.0.14 | Updated: Thu Aug 10 16:58:00 2006
Home
DGD News
FAQ
Code Documentation
DGD Installation Guide
Bugs-n-Features
DGD at Sourceforge.net
Download DGD
Subversion
Code Documentation
Documentation
Namespaces
Class Hierarchy
Class List
File List
Namespace Members
Functions
Globals
Tutorial
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

DGD::funnelbuf Class Reference

DGD::funnelbuf is a special kind of the channelbuf. More...

#include <dgFunnel.h>

Inheritance diagram for DGD::funnelbuf:

DGD::channelbufList of all members.

Public Member Functions

Private Member Functions

Private Attributes

Friends


Detailed Description

DGD::funnelbuf is a special kind of the channelbuf.

It overrides the channelbuf::post_process() method in order to get current line, column and amount of the written bytes.

DGD::funnelbuf keeps a pointer to a special callback object which must be derived from DGD::funnelbuf::Callback class. This pointer is initially NULL, meaning no callback. It can be set using funnelbuf::callback(Callback*) method. Once the pointer is not NULL, post_process() which is automatically invoked by channelbuf, will call the Callback::operator().

Note that funnelbuf hides post_process(), assoc() amd callback() methods, thus making them accessible by DGD::funnel objects only.

See also:
DGD::funnel

DGD::channelbuf


Constructor & Destructor Documentation

DGD::funnelbuf::funnelbuf  ) 
 

funnelbuf default constructor.

Initially it has no associated callback

DGD::funnelbuf::~funnelbuf  ) 
 

funnelbuf destructor


Member Function Documentation

void DGD::funnelbuf::post_process  )  [private, virtual]
 

This method overloads channelbuf::post_process().

It checks whether the callback is set and invokes the callback passing the current line, column and number of bytes written.

See also:
channelbuf::post_process()

Reimplemented from DGD::channelbuf.

void DGD::funnelbuf::assoc std::ostream * str )  [private]
 

This is overloaded method from channelbuf.

It calls the channelbuf::assoc(). The method is implemented for hiding the assoc() interface.

See also:
channelbuf::assoc(std::ostream*)

assoc(std::ostream*,channel& channel)

void DGD::funnelbuf::callback Callbackcb )  [private]
 

Set callback object pointer.

See also:
funnelbuf::Callback

const funnelbuf::Callback * DGD::funnelbuf::callback  )  const [private]
 

Get callback object pointer.

See also:
funnelbuf::Callback


Friends And Related Function Documentation

friend class funnel [friend]
 


Member Data Documentation

Callback* DGD::funnelbuf::m_callback [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Aug 10 16:48:31 2006 for DGD Library by doxygen1.3

SourceForge.net Logo Powered by Mason Powered by Perl
Web design derived from Pasilda design found on www.oswd.org.
Copyright (c) 2002, 2003. Dimitry Kloper <kloper@users.sourceforge.net>