15 #ifndef NYMPH_MESSAGE_H
16 #define NYMPH_MESSAGE_H
18 #include "nymph_types.h"
20 #include <Poco/Poco.h>
26 NYMPH_MESSAGE_REPLY = 0x01,
27 NYMPH_MESSAGE_EXCEPTION = 0x02,
28 NYMPH_MESSAGE_CALLBACK = 0x04
39 std::vector<NymphType*> values;
49 std::string callbackName;
51 std::string loggerName;
59 bool finish(std::string &output);
60 int getState() {
return state; }
61 void setInReplyTo(uint64_t msgId);
62 bool isCallback() {
return flags & NYMPH_MESSAGE_CALLBACK; }
63 uint64_t getResponseId() {
return responseId; }
64 uint64_t getMessageId() {
return messageId; }
66 NymphType* getResponse() {
return response; responseOwned =
false; }
67 std::vector<NymphType*> parameters() {
return values; }
68 uint32_t getMethodId() {
return methodId; }
71 std::string getCallbackName() {
return callbackName; }
72 bool isReply() {
return flags & NYMPH_MESSAGE_REPLY; }
73 bool isException() {
return flags & NYMPH_MESSAGE_EXCEPTION; }
74 bool setException(
int exceptionId, std::string value);
75 bool setCallback(std::string name);
Definition: nymph_message.h:38
Definition: nymph_types.h:133
Definition: nymph_message.h:32