Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::ComplexStatsCollector2 Class Reference

#include <ComplexStatsCollector2.h>

Inheritance diagram for FastShower::ComplexStatsCollector2:

Inheritance graph
[legend]
Collaboration diagram for FastShower::ComplexStatsCollector2:

Collaboration graph
[legend]
List of all members.

Public Methods

 ComplexStatsCollector2 (std::string fName, int indent=0)
 ComplexStatsCollector2 (const ComplexStatsCollector2 &)
 the ping methods of the destination class uses this method to print

IPingerclone () const
virtual void action (const IDebug *)
 the ping methods of the destination class uses this method to print


Private Attributes

std::string m_fName

Constructor & Destructor Documentation

FastShower::ComplexStatsCollector2::ComplexStatsCollector2 std::string    fName,
int    indent = 0
[inline]
 

Definition at line 33 of file ComplexStatsCollector2.h.

References FastShower::IPrintPinger::indent(), and m_fName.

Referenced by clone().

00033                                                          :
00034       PrintPingerBase(indent), m_fName(fName){
00035     };
    ComplexStatsCollector2(const ComplexStatsCollector2& );

FastShower::ComplexStatsCollector2::ComplexStatsCollector2 const ComplexStatsCollector2 &   
 

the ping methods of the destination class uses this method to print

Definition at line 13 of file ComplexStatsCollector2.cxx.

References m_fName.

00014                                                                              :
00015     PrintPingerBase(rhs){
00016     m_fName = rhs.m_fName;
00017   }
  void ComplexStatsCollector2::action(const IDebug* d){

Member Function Documentation

IPinger * FastShower::ComplexStatsCollector2::clone   const [virtual]
 

Implements FastShower::IPrintPinger.

Definition at line 8 of file ComplexStatsCollector2.cxx.

References ComplexStatsCollector2().

00008                                                {
00009     IPinger* p = new ComplexStatsCollector2(*this);
00010     return p;
00011   }

void FastShower::ComplexStatsCollector2::action const IDebug   [virtual]
 

the ping methods of the destination class uses this method to print

Implements FastShower::IPrintPinger.

Definition at line 18 of file ComplexStatsCollector2.cxx.

References FastShower::IDebug::components(), FastShower::IPrintPinger::indent(), m_fName, FastShower::IFunctionStats::report(), FastShower::IDebug::statistics(), and FastShower::IDebug::text().

00018                                                     {
00019     
00020     std::fstream ofile;
00021     ofile.open(m_fName.c_str(), ios::out | ios::app);
00022     ofile<<indent()<<d->text()<< endl;
00023     d->statistics()->report(ofile);
00024     ofile.close();
00025 
00026     IDebug::Cpts parts;
00027     d->components(parts);
00028     ComplexStatsCollector2 q(*this);
00029     ++(*this);
00030     std::for_each(parts.begin(), parts.end(), PingEach(*this) );
00031     (*this)=q;
00032    }

Member Data Documentation

std::string FastShower::ComplexStatsCollector2::m_fName [private]
 

Definition at line 43 of file ComplexStatsCollector2.h.

Referenced by action(), and ComplexStatsCollector2().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:56:47 2003 for FastShowerUtils by doxygen1.3-rc1