13 #ifndef __HARDWARECOMMUNICATIONINTERFACE_H__
14 #define __HARDWARECOMMUNICATIONINTERFACE_H__
19 typedef unsigned char Byte;
22 namespace CTA_Hardware {
27 class ControllerObject;
30 namespace CTA_Hardware {
44 virtual int close()=0;
45 virtual int init(std::string name)=0;
47 virtual int cmd(std::string value, std::string *retValue)=0;
49 virtual int set(std::string value)=0;
50 virtual int set(std::string value, std::vector<Byte> res)=0;
51 virtual int set(std::string value, std::vector<short int> res)=0;
52 virtual int set(std::string value, std::vector<int> res)=0;
53 virtual int set(std::string value, std::vector<long> res)=0;
54 virtual int set(std::string value, std::vector<float> res)=0;
56 virtual int get(std::string command, std::vector<Byte> *res)=0;
57 virtual int get(std::string command, std::vector<short int> *res)=0;
58 virtual int get(std::string command, std::vector<int> *res)=0;
59 virtual int get(std::string command, std::vector<long> *res)=0;
60 virtual int get(std::string command, std::vector<float> *res)=0;
61 virtual int get(std::string command, std::string *result)=0;
65 void setTabId(std::map<std::string, std::string> tableauDp) {
69 void setTabId(std::map<std::string, tableauDP_t> tableauDp2) {