#ifndef MESSAGE_H #define MESSAGE_H #include namespace TelldusCore { class Message : public std::wstring { public: Message(); Message(const std::wstring &); ~Message(void); void addArgument(const std::wstring &); void addArgument(int); void addArgument(const char *); bool getClientBoolFromSocket(); int getClientIntegerFromSocket(); std::wstring getClientWStringFromSocket(); static std::wstring charToWstring(const char *value); static std::wstring charUnsignedToWstring(const unsigned char value); static std::wstring intToWstring(int value); static bool nextIsInt(const std::wstring &); static bool nextIsString(const std::wstring &); static std::wstring takeString(std::wstring *); static int takeInt(std::wstring *); static int wideToInteger(const std::wstring &input); private: }; } #endif //MESSAGE_H