#ifndef _OWLPS_POSITIONING_OUTPUTSOCKET_HH_ #define _OWLPS_POSITIONING_OUTPUTSOCKET_HH_ #include "outputmedium.hh" #include #include // is not C++ 98 compliant #include //#include //#include /// Send a result to socket class OutputSocket: public OutputMedium { private: int socketDescriptor ; std::string m_ip ; unsigned short int serverPort ; public: OutputSocket(const std::string &remote_ip): m_ip(remote_ip) { init_socket(); } ~OutputSocket() ; void write(const Result &result) ; std::string float2string(float f) ; std::string uint2string(uint64_t f) ; std::string int2string(int f) ; void init_socket() ; void kill_socket() ; void send_data(std::string msg) ; void send_screen() ; } ; #endif // _OWLPS_POSITIONING_OUTPUTSOCKET_HH_