DGD Library
Version: 0.1.0.14 | Updated: Thu Aug 10 16:57:54 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::funnel Class Reference

Best association target. More...

#include <dgFunnel.h>

Inheritance diagram for DGD::funnel:

DGD::funnelbuf::CallbackDGD::multifile_logList of all members.

Public Types

Public Member Functions

  • funnel (std::ostream &physical_stream)
    DGD::funnel constructor.

  • funnelbuf & rdbuf ()
    Get funnelbuf of this funnel.

  • virtual void header ()
    This method overloads the corresponding method in DGD::channel.

Protected Member Functions

Private Attributes


Detailed Description

Best association target.

There is a good chance that DGD will produce incorrect output when there are multiple DGD::channel objects associated with the single physical stream. DGD::funnel is designed to solve the multiple association problem. The main idea is to associate your channels with a single funnel which sits on top of the physical stream. The funnel synchronizes the output of all the channels, applies its own formatting (if any) and writes the resulting mix to the physical stream.

DGD::funnel can be used as a stream counter of data passed through it. It is derived from funnelbuf::Callback and serves as a callback of self funnelbuf. The empty operator()(unsigned long, unsigned long, unsigned long) can be overridden in subclasses.

Note that DGD::funnel inherits from std::ostream, so it can't be used as a plain DGD::channel. Specifically, it can't be used for the second parameter to assoc(), but it can be used for the first one.

See also:
DGD::channel

DGD::multifile_log


Member Typedef Documentation

typedef std::ostream DGD::funnel::Parent
 


Constructor & Destructor Documentation

DGD::funnel::funnel std::ostream & physical_stream ) 
 

DGD::funnel constructor.

Funnel can be associated with a single physical stream, this the constructor receives reference to the stream. By default, character wrapping is disabled for funnels. This can be turned on in the subclass or by using funnel::rdbuf() method.

See also:
channelbuf

funnelbuf

funnel


Member Function Documentation

funnelbuf & DGD::funnel::rdbuf  ) 
 

Get funnelbuf of this funnel.

void DGD::funnel::header  )  [virtual]
 

This method overloads the corresponding method in DGD::channel.

See also:
channel::header();

virtual void DGD::funnel::operator() unsigned long line,
unsigned long column,
unsigned long bytes
[inline, protected, virtual]
 

funnelbuf::Callback operator.

Empty for simple funnel, but can be overridden in subclasses.

Implements DGD::funnelbuf::Callback.

Reimplemented in DGD::multifile_log.


Member Data Documentation

funnelbuf DGD::funnel::m_buffer [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>