Rework book server and client.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef BOOK_JSON_H_
|
||||
#define BOOK_JSON_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "json/json-forwards.h"
|
||||
|
||||
struct Book;
|
||||
|
||||
std::string JsonToString(const Json::Value& json);
|
||||
|
||||
Json::Value StringToJson(const std::string& str);
|
||||
|
||||
Json::Value BookToJson(const Book& book);
|
||||
|
||||
Book JsonToBook(const Json::Value& json);
|
||||
|
||||
std::string BookToJsonString(const Book& book);
|
||||
|
||||
bool JsonStringToBook(const std::string& json_str, Book* book);
|
||||
|
||||
#endif // BOOK_JSON_H_
|
||||
Reference in New Issue
Block a user