telldus/telldus-core/common/Message.h
2010-10-15 12:38:12 +00:00

37 lines
911 B
C++

#ifndef MESSAGE_H
#define MESSAGE_H
#include <string>
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