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

algorithmTask.cpp

Go to the documentation of this file.
00001 #include "Event/algorithmTask.h"
00002 #include "Event/processManager.h"
00003 #include "Event/messageManager.h"
00004 
00005 //#####################################
00006 void algorithmTask::defineOption()
00007 //#####################################
00008 {
00009         optionVI::defineOption("addAlgorithm",&m_algName);
00010 }
00011 //#####################################
00012 void algorithmTask::setOption(std::string task, std::string algName)
00013 //#####################################
00014 {
00015         optionVI::setOption(task,algName);
00016         if (task == "addAlgorithm") {
00018                 algorithmVI* alg = processManager::instance()->getAlgorithm(algName);
00019                 if (alg == 0) return;
00020                 algorithmComposite::add(algName,alg);
00021                 message(" added "+algName+" into algorithmTask "+name(),"RELEASE");
00022         }
00023 }
00024 //#####################################
00025 void algorithmTask::writeOut() const
00026 //#####################################
00027 {
00028         if (!acceptLevel()) return;
00029         if (algorithmComposite::size() == 0 ) return;
00030         std::ostream& out = messageManager::instance()->out();
00031         messageVI::writeOut();
00032         out << " -- Algorithms in algorithmTask: "<< name() <<" -- " <<"\n";
00033         out << nameList();
00034 }

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