5 #ifndef _Message_h_included_ 6 #define _Message_h_included_ 17 namespace migratorydata
32 std::vector<MigratoryDataField> fields;
33 std::string replyToSubject;
70 MigratoryDataMessage(
const std::string& subject,
const std::string& content,
const std::string& closure);
79 MigratoryDataMessage(
const std::string& subject,
const std::string& content, std::vector<MigratoryDataField>& fields);
89 MigratoryDataMessage(
const std::string& subject,
const std::string& content, std::vector<MigratoryDataField>& fields,
const std::string& closure);
96 std::string getSubject()
const;
103 std::string getContent()
const;
110 std::vector<MigratoryDataField> getFields()
const;
117 std::string getClosure()
const;
124 bool isSnapshot()
const;
140 void setReplyTosubject(std::string& replyToSubject);
151 std::string getReplyToSubject()
const;
159 bool isRecovery()
const;
163 int getEpoch()
const;
168 #endif // _Message_h_included_ Include the declaration of the MigratoryDataField class.
Represent a message.
Definition: MigratoryDataMessage.h:25