22 #ifndef __M2ETIS_PUBSUB_FILTER_POSITIONEVENT_H__
23 #define __M2ETIS_PUBSUB_FILTER_POSITIONEVENT_H__
27 #include "boost/serialization/export.hpp"
28 #include "boost/serialization/base_object.hpp"
29 #include "boost/serialization/list.hpp"
30 #include "boost/serialization/map.hpp"
31 #include "boost/serialization/variant.hpp"
32 #include "boost/serialization/shared_ptr.hpp"
33 #include "boost/serialization/vector.hpp"
42 return (rhs.
x == this->x && rhs.
y == this->y && rhs.
region == this->region);
45 Position(
const std::vector<unsigned char> & payload,
int _x = 0,
int _y = 0) :
region(
std::string(payload.begin(), payload.end())),
x(_x),
y(_y) {}
47 Position(
const std::string & payload,
int _x = 0,
int _y = 0) :
region(payload),
x(_x),
y(_y) {}
52 return region +
";" + std::to_string(
x) +
";" + std::to_string(
y);
69 template<
class Archive>
70 void serialize(Archive & ar,
const unsigned int) {
std::string toStr() const
std::string get_region() const
friend class boost::serialization::access
Position(const std::string &payload, int _x=0, int _y=0)
Position(const std::vector< unsigned char > &payload, int _x=0, int _y=0)
bool operator==(const Position &rhs) const
Book(const std::string &title, double price, const std::string &condition, int ending)