00001 #include <CLAM/OutControlBase.hxx> 00002 #include <CLAM/Processing.hxx> 00003 00004 namespace CLAM{ 00005 OutControlBase::OutControlBase(const std::string &name, Processing * proc) 00006 : mName(name) 00007 , mProcessing(proc) 00008 { 00009 if (proc) proc->RegisterOutControl(this); 00010 } 00011 00012 OutControlBase::~OutControlBase() 00013 { 00014 while (!mLinks.empty()) 00015 RemoveLink(*mLinks.front()); 00016 if (mProcessing) 00017 mProcessing->GetOutControls().ProcessingInterface_Unregister(this); 00018 } 00019 OutControlBase::Peers::iterator OutControlBase::BeginInControlsConnected() 00020 { 00021 return mLinks.begin(); 00022 } 00023 00024 OutControlBase::Peers::iterator OutControlBase::EndInControlsConnected() 00025 { 00026 return mLinks.end(); 00027 } 00028 00029 }