Alida-C++ 0.5

operator/aldOperator.cc

Go to the documentation of this file.
00001 /*
00002  * This file is part of Alida-C++ library for
00003  *
00004  * Automatic Logging of Process Information in Data Analysis.
00005  *
00006  * Copyright (C) 2012 - @YEAR@
00007  *
00008  * This program is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 3 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00020  *
00021  * Fore more information on Alida, visit
00022  *
00023  *    http://www.informatik.uni-halle.de/alida/
00024  *
00025  */
00026 
00027 /*
00028  * Most recent change(s):
00029  *
00030  * $Rev: 64 $
00031  * $Date: 2012-03-06 22:59:17 +0100 (Di, 06 Mrz 2012) $
00032  * $Author: posch $
00033  *
00034  */
00035 
00036 #include <math.h>
00037 #include <stdio.h>
00038 #include <fstream>
00039 #include <string>
00040 #include <iostream>
00041 
00042 #include "operator/aldOperator.h"
00043 
00044 using namespace std;
00045 
00046 using namespace Alida;
00047 
00048 void ALDOperator::runOp()
00049 {
00050   cout << endl << "Entering runOp()..." << endl << endl;
00051 
00052   this->operate();
00053 
00054   cout << endl << "...leaving runOp()!" << endl;
00055 }
00056 
00057 std::map<std::string, ALDOpParameterDescriptor*>& ALDOperator::getParameters()
00058 {
00059   return this->parameters;
00060 }
00061 
00062 void* ALDOperator::getParameter(std::string name)
00063 {
00064   return this->parameters[name]->value;
00065 }
00066 
00067 void ALDOperator::setParameter(std::string name, void* val)
00068 {
00069   this->parameters[name]->value = val;
00070 }
00071 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines