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

algConditionalTask.cpp

Go to the documentation of this file.
00001 #include "Event/algConditionalTask.h"
00002 
00003 #include "Event/selectionManager.h"
00004 #include "Event/processManager.h"
00005 #include "Event/messageManager.h"
00006 
00007 //##############################
00008 void algConditionalTask::defineOption()
00009 //##############################
00010 {
00012         optionVI::defineOption("addCut",&m_cutName);
00014         optionVI::defineOption("addAlgorithm",&m_algName);
00015 }
00016 //##############################
00017 void algConditionalTask::setOption(std::string task, std::string con)
00018 //##############################
00019 {
00020         optionVI::setOption(task,con);
00021         if (task=="addCut") {
00022                 cutVI* cut = selectionManager::instance()->getCut(con);
00023                 setCut(cut);
00024                 message(" added cut "+con+" into algConditionalTask named "+name());
00025         } else if (task=="addAlgorithm") {
00026                 algorithmVI* alg = processManager::instance()->getAlgorithm(con);
00027                 setAlgorithm(alg);
00028                 message(" added algorithm "+con+" into algConditionalTask named "+name());
00029         }
00030 }
00031 //##############################
00032 void algConditionalTask::writeOut() const
00033 //##############################
00034 {
00035         if (!acceptLevel()) return;
00036         messageVI::writeOut();
00037         std::ostream& out = messageManager::instance()->out();
00038         out << " algConditionalTask cut name " << m_cutName <<"\n";
00039         out << " algConditionalTask algorithm name " << m_algName <<"\n";
00040 }

Generated at Fri Aug 18 12:57:37 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000