Alida-C++ 0.5

dataio/provider/provider.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: 34 $
00031  * $Date: 2012-02-18 20:29:54 +0100 (Sa, 18 Feb 2012) $
00032  * $Author: moeller $
00033  *
00034  */
00035 
00036 #include <iostream>
00037 
00038 #include "provider.h"
00039 
00040 using namespace std;
00041 
00042 using namespace Alida;
00043 
00044 /*
00045  * ... wird aus irgendwelchen magischen GrĂ¼nden ignoriert...
00046  */
00047 //map<string, Provider*>* Provider::registrationTable = NULL;
00048 //       = new map<string, Provider*>();
00049 
00050 //void* Provider::readData(string input, string type)
00051 //{
00052 //  cout << "Reading " << type << "-data from string " << input << endl;
00053 //  Provider* provObj;
00054 //  if (this->registrationTable == NULL)
00055 //      cout << "Table is null" << endl;
00056 //  if (this->registrationTable->find(type) == this->registrationTable->end()) {
00057 //      cerr << "Generate provider - no prototype found!" << endl;
00058 //      return NULL;
00059 //  }
00060 //  provObj = (*(this->registrationTable))[type];
00061 //  if (provObj == NULL)
00062 //      cout << "Object is null!" << endl;
00063 //  return provObj->parseInput(input, type);
00064 //}
00065 
00066 //Provider* Provider::registerProvider(string type, Provider *p)
00067 //{
00068 //  if (this->registrationTable == NULL)
00069 //      this->registrationTable = new map<string, Provider*>();
00070 //  cout << "[Provider] Registering provider for type " << type << endl;
00071 //  (*registrationTable)[type] = p;
00072 //  map<string, Provider*>::iterator it;
00073 //  return p;
00074 //}
00075 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines