22 lines
486 B
C++
Executable File
22 lines
486 B
C++
Executable File
#ifndef YC_LIB_BASE_H
|
|
#define YC_LIB_BASE_H
|
|
|
|
#include <json/json.h>
|
|
|
|
namespace Yc {
|
|
namespace Lib {
|
|
|
|
class Base {
|
|
protected:
|
|
std::string getJsonString(Json::Value json);
|
|
void send(int socket, std::string out);
|
|
void send(int socket, Json::Value out);
|
|
std::string readSocket(int socket);
|
|
Json::Value getJsonTree(std::string msg);
|
|
};
|
|
|
|
} // namespace Lib
|
|
} // namespace Yc
|
|
|
|
#endif // YC_LIB_BASE_H
|