logger
 All Classes Functions
Public Member Functions | Protected Member Functions | List of all members
StreamAccumulator Class Reference

#include <Accumulator.h>

Inheritance diagram for StreamAccumulator:
Accumulator

Public Member Functions

 StreamAccumulator (std::ostream &out=std::cerr, int capacity=1024)
void close ()
virtual ~StreamAccumulator ()
- Public Member Functions inherited from Accumulator
bool addMessage (std::string message)
 Accumulator (int capacity)
virtual ~Accumulator ()

Protected Member Functions

virtual std::ostream & getStream ()
- Protected Member Functions inherited from Accumulator
void stop ()

Detailed Description

Implémentation basique d'un accumulateur basé sur un flux de sortie

Constructor & Destructor Documentation

StreamAccumulator::StreamAccumulator ( std::ostream &  out = std::cerr,
int  capacity = 1024 
)
inline

Constructeur

virtual StreamAccumulator::~StreamAccumulator ( )
inlinevirtual

Destructeur apellant la fonction stop. Le flux out n'est pas fermé, ceci est laissé du programmeur si nécessaire. Raison : Il n'est pas toujours souhaitable de fermer le flux (par exemple std::cerr).

Member Function Documentation

void StreamAccumulator::close ( )
inlinevirtual

Implémentation de la fonction virtuelle de la classe mère

Implements Accumulator.

virtual std::ostream& StreamAccumulator::getStream ( )
inlineprotectedvirtual

Implémentation de la fonction virtuelle de la classe mère

Implements Accumulator.


The documentation for this class was generated from the following file: