Split up RPCService

This commit is contained in:
Vinnie Falco
2013-09-22 01:25:11 -07:00
parent b123b1a849
commit 5bd6fb27e6
18 changed files with 310 additions and 195 deletions

View File

@@ -0,0 +1,34 @@
//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
namespace ripple {
namespace RPC {
Handler::Handler (Handler const& other)
: m_method (other.m_method)
, m_function (other.m_function)
{
}
Handler& Handler::operator= (Handler const& other)
{
m_method = other.m_method;
m_function = other.m_function;
return *this;
}
std::string const& Handler::method() const
{
return m_method;
}
Json::Value Handler::operator() (Json::Value const& args) const
{
return m_function (args);
}
}
}