31 lines
655 B
C++
31 lines
655 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 addSpecialArgument(const std::wstring &);
|
|
//void addSpecialArgument(int);
|
|
//void addSpecialArgument(const char *);
|
|
void addArgument(int);
|
|
void addArgument(const char *);
|
|
|
|
static bool nextIsInt(const std::wstring &);
|
|
static bool nextIsString(const std::wstring &);
|
|
|
|
static std::wstring takeString(std::wstring *);
|
|
static int takeInt(std::wstring *);
|
|
|
|
private:
|
|
|
|
};
|
|
}
|
|
|
|
#endif //MESSAGE_H
|