|
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:
List 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 | ( | | ) | |
|
Member Function Documentation
void DGD::funnelbuf::post_process | ( | | ) | [private, virtual] |
|
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 | ( | Callback * | cb | ) | [private] |
|
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 1.3
|