Fork.cpp

Go to the documentation of this file.
00001 
00002 
00003 #include "cafe/Fork.hpp"
00004 #include "cafe/ParseRun.hpp"
00005 #include "cafe/Config.hpp"
00006 #include "cafe/Event.hpp"
00007 
00008 namespace cafe {
00009 
00010     Fork::Fork(const char *name) 
00011         : Controller(name)
00012     {
00013     }
00014 
00015     // Processor interface
00016     bool Fork::processEvent(Event& event)
00017     {
00018         for(std::list<Processor*>::iterator it = _processors.begin();
00019             it != _processors.end();
00020             ++it) {
00021             event.untag(_untag.begin(), _untag.end());
00022             event.tag(_tag.begin(), _tag.end());
00023             (*it)->incEventCount();
00024             (*it)->processEvent(event) ;
00025         }
00026         return true;
00027     }
00028 }
00029 
00030 ClassImp(cafe::Fork);
00031 

Generated on Thu Apr 3 04:14:23 2008 for CAF by doxygen 1.3.4