Files
rippled/src/cpp/ripple/CallRPC.h
2012-12-01 18:01:59 -08:00

26 lines
522 B
C++

#ifndef __CALLRPC__
#define __CALLRPC__
#include <string>
#include "../json/value.h"
class RPCParser
{
protected:
typedef Json::Value (RPCParser::*parseFuncPtr)(Json::Value jvRet, const Json::Value &jvParams);
Json::Value parseAsIs(Json::Value jvRet, const Json::Value &jvParams);
public:
Json::Value parseCommand(Json::Value jvRequest);
};
extern int commandLineRPC(const std::vector<std::string>& vCmd);
extern Json::Value callRPC(const std::string& strMethod, const Json::Value& params);
#endif
// vim:ts=4