24 lines
565 B
C++
24 lines
565 B
C++
#ifndef INFOCOMMUNICATE_HPP
|
|
#define INFOCOMMUNICATE_HPP
|
|
|
|
#include <cereal/archives/binary.hpp>
|
|
#include <cereal/types/memory.hpp>
|
|
#include <cereal/types/vector.hpp>
|
|
|
|
enum MessageType {
|
|
MSG_TYPE_ASK_CLIENTS = 1,
|
|
};
|
|
|
|
struct InfoCommunicate {
|
|
MessageType type;
|
|
std::string toID;
|
|
std::string UUID;
|
|
std::string data;
|
|
char mark{};
|
|
template <class Archive> void serialize(Archive& archive)
|
|
{
|
|
archive(CEREAL_NVP(type), CEREAL_NVP(toID), CEREAL_NVP(UUID), CEREAL_NVP(data), CEREAL_NVP(mark));
|
|
}
|
|
};
|
|
|
|
#endif // INFOCOMMUNICATE_HPP
|