iSpike  2.1
Spike conversion library for robotics
D:/Home/Programs/iSpike/include/iSpike/Reader/ReaderFactory.hpp
Go to the documentation of this file.
00001 #ifndef READERFACTORY_HPP_
00002 #define READERFACTORY_HPP_
00003 
00004 //iSpike includes
00005 #include "iSpike/Reader/Reader.hpp"
00006 #include <iSpike/Description.hpp>
00007 
00008 //Other includes
00009 #include <string>
00010 #include <vector>
00011 using namespace std;
00012 
00013 namespace ispike {
00014 
00016         class ReaderFactory {
00017                 public:
00018                         ReaderFactory();
00019                         ReaderFactory(string ip, unsigned port);
00020                         Reader* create(Description& desc, map<string, Property>& readerProperties);
00021                         map<string, Property> getDefaultProperties(Description& desc);
00022                         vector<Description> getReadersOfType(string readerType);
00023 
00024 
00025                 private:
00026                         //==============================  VARIABLES  =============================
00028                         vector<Description> readerList;
00029                         string ip;
00030                         unsigned port;
00031 
00032                         //=============================  METHODS  ================================
00033                         void printReaders();
00034 
00035         };
00036 
00037 }
00038 
00039 #endif /* READERFACTORY_HPP_ */
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines