iSpike
2.1
Spike conversion library for robotics
|
00001 #ifndef WRITERFACTORY_HPP_ 00002 #define WRITERFACTORY_HPP_ 00003 00004 //iSpike includes 00005 #include "iSpike/Writer/Writer.hpp" 00006 #include <iSpike/Description.hpp> 00007 00008 //Other includes 00009 #include <vector> 00010 #include <string> 00011 using namespace std; 00012 00013 namespace ispike { 00014 00016 class WriterFactory { 00017 private: 00019 vector<Description> writerList; 00020 string ip; 00021 unsigned port; 00022 00023 //========================= METHODS =========================== 00024 void printWriters(); 00025 00026 public: 00027 WriterFactory(); 00028 WriterFactory(std::string ip, unsigned port); 00029 Writer* create(Description& desc, map<string, Property>& writerProperties ); 00030 map<string, Property> getDefaultProperties(Description& desc); 00031 vector<Description> getWritersOfType(string writerType); 00032 00033 }; 00034 } 00035 00036 00037 #endif /* WRITERFACTORY_HPP_ */