rippled
Loading...
Searching...
No Matches
xrpld
rpc
Request.h
1
#ifndef XRPL_RPC_REQUEST_H_INCLUDED
2
#define XRPL_RPC_REQUEST_H_INCLUDED
3
4
#include <xrpl/beast/utility/Journal.h>
5
#include <xrpl/json/json_value.h>
6
#include <xrpl/resource/Charge.h>
7
#include <xrpl/resource/Fees.h>
8
9
namespace
ripple
{
10
11
class
Application;
12
13
namespace
RPC {
14
15
struct
Request
16
{
17
explicit
Request
(
18
beast::Journal
journal_,
19
std::string
const
& method_,
20
Json::Value
& params_,
21
Application
& app_)
22
:
journal
(journal_)
23
,
method
(method_)
24
,
params
(params_)
25
,
fee
(Resource::feeReferenceRPC)
26
,
app
(app_)
27
{
28
}
29
30
// [in] The Journal for logging
31
beast::Journal
const
journal
;
32
33
// [in] The JSON-RPC method
34
std::string
method
;
35
36
// [in] The Ripple-specific "params" object
37
Json::Value
params
;
38
39
// [in, out] The resource cost for the command
40
Resource::Charge
fee
;
41
42
// [out] The JSON-RPC response
43
Json::Value
result
;
44
45
// [in] The Application instance
46
Application
&
app
;
47
48
private
:
49
Request
&
50
operator=
(
Request
const
&);
51
};
52
53
}
// namespace RPC
54
}
// namespace ripple
55
56
#endif
std::string
Json::Value
Represents a JSON value.
Definition
json_value.h:130
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:41
ripple::Application
Definition
Application.h:95
ripple::Resource::Charge
A consumption charge.
Definition
Charge.h:11
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
ripple::RPC::Request
Definition
Request.h:16
ripple::RPC::Request::method
std::string method
Definition
Request.h:34
ripple::RPC::Request::Request
Request(beast::Journal journal_, std::string const &method_, Json::Value ¶ms_, Application &app_)
Definition
Request.h:17
ripple::RPC::Request::fee
Resource::Charge fee
Definition
Request.h:40
ripple::RPC::Request::journal
beast::Journal const journal
Definition
Request.h:31
ripple::RPC::Request::app
Application & app
Definition
Request.h:46
ripple::RPC::Request::params
Json::Value params
Definition
Request.h:37
ripple::RPC::Request::operator=
Request & operator=(Request const &)
ripple::RPC::Request::result
Json::Value result
Definition
Request.h:43
Generated by
1.9.8