00001 #include "Event/cutSelection.h" 00002 #include "Event/selectionManager.h" 00003 #include "Event/messageManager.h" 00004 00005 //##################################### 00006 void cutSelection::defineOption() 00007 //##################################### 00008 { 00009 optionVI::defineOption("addCut",&m_cutName); 00010 } 00011 //##################################### 00012 void cutSelection::setOption(std::string var, std::string content) 00013 //##################################### 00014 { 00015 optionVI::setOption(var,content); 00016 if (var == "addCut") { 00017 cutVI* cut = selectionManager::instance()->getCut(content); 00018 if (cut==0) return; 00019 add(content,cut); 00020 message(" cut "+ content+ " added to the cutSelection "+ name(),"RELEASE"); 00021 } 00022 } 00023 //##################################### 00024 void cutSelection::writeOut() const 00025 //##################################### 00026 { 00027 if (!acceptLevel()) return; 00028 serviceI::writeOut(); 00029 00030 std::ostream& out = messageManager::instance()->out(); 00031 00032 out << " ** cuts in cutSelection : "+name()+" ** " << "\n"; 00033 out << nameList(); 00034 }