This repository has been archived on 2025-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
RelayFile/Information/InfoClient.hpp

28 lines
567 B
C++

#ifndef _InfoClient_hpp_
#define _InfoClient_hpp_
#include <cereal/archives/binary.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/vector.hpp>
#include <string>
struct InfoClient {
std::string id;
std::string name;
template <class Archive> void serialize(Archive& archive)
{
archive(CEREAL_NVP(id), CEREAL_NVP(name));
}
};
struct InfoClientVec {
std::vector<InfoClient> vec;
template <class Archive> void serialize(Archive& archive)
{
archive(CEREAL_NVP(vec));
}
};
#endif // _InfoClient_hpp_