00001 #include "FastShowerUtils/Pinger/ComplexArmer.h" 00002 #include <algorithm> 00003 #include <iostream> 00004 00005 namespace FastShower{ 00006 IPinger* ComplexArmer::clone() const { 00007 IPinger* npa = new ComplexArmer(*this); 00008 return npa; 00009 } 00010 // 00011 void ComplexArmer::action(const IDebug* d){ 00012 d->arm(); 00013 // cout<<d->name()<<endl; 00014 IDebug::Cpts parts; 00015 d->components(parts); 00016 std::for_each(parts.begin(), parts.end(), PingEach(*this) ); 00017 } 00018 } 00019