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

FastShower::ComplexPinger Class Reference

#include <ComplexPinger.h>

Inheritance diagram for FastShower::ComplexPinger:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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


Constructor & Destructor Documentation

FastShower::ComplexPinger::ComplexPinger int    indent = 0 [inline]
 

Definition at line 26 of file ComplexPinger.h.

References FastShower::IPrintPinger::indent().

Referenced by clone().


Member Function Documentation

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

Implements FastShower::IPrintPinger.

Definition at line 6 of file ComplexPinger.cxx.

References ComplexPinger().

00006                                       {
00007     IPinger* p = new ComplexPinger(*this);
00008     return p;
00009   }

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

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

Implements FastShower::IPrintPinger.

Definition at line 11 of file ComplexPinger.cxx.

References FastShower::IDebug::components(), FastShower::IPrintPinger::indent(), and FastShower::IDebug::name().

00011                                            {
00012     cout<<indent()<<d->name()<< endl;
00013     IDebug::Cpts parts;
00014     d->components(parts);
00015     ComplexPinger q(*this);
00016     ++(*this);
00017     std::for_each(parts.begin(), parts.end(), PingEach(*this) );
00018     (*this)=q;
00019   }

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