7class WeArtMessageSerializer {
9 const char separator =
':';
11 static constexpr unsigned long long int HashStringToInt(
const char* str,
unsigned long long int hash = 0) {
12 return (*str == 0) ? hash : 101 * HashStringToInt(str + 1) + *str;
18 WeArtMessage* Deserialize(std::string data);
22 std::string extractID(std::string& data);
27 WeArtMessage* createMessage(std::string& ID);