22 #ifndef __M2ETIS_MESSAGE_M2MESSAGE_H__
23 #define __M2ETIS_MESSAGE_M2MESSAGE_H__
25 #include "m2etis/config/GeneratedEventTypes.h"
28 #include "boost/make_shared.hpp"
29 #include "boost/serialization/export.hpp"
30 #include "boost/serialization/list.hpp"
31 #include "boost/serialization/map.hpp"
32 #include "boost/serialization/shared_ptr.hpp"
33 #include "boost/serialization/vector.hpp"
38 template<
class EventType>
42 typedef boost::shared_ptr<M2Message<EventType> >
Ptr;
70 return std::string(payload->begin(), payload->end());
76 template<
typename Archive>
77 void serialize(Archive & ar,
const unsigned int ) {
89 std::ostream &
operator<<(std::ostream & s,
const M2SimMessage::Ptr);
boost::shared_ptr< M2Message< EventType > > Ptr
std::ostream & operator<<(std::ostream &s, const M2etisMessage::Ptr)
PayloadPtr payload
payload
std::string getPayloadString()
M2Message< std::vector< unsigned char > > M2etisMessage
M2Message(const EventType &v, MessageType *mt)
M2Message(MessageType *mt)
M2Message(const M2Message &msg, MessageType *mt)
boost::shared_ptr< EventType > PayloadPtr
friend class boost::serialization::access