xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
test
jtx
jtx_json.h
1
#pragma once
2
3
#include <test/jtx/Env.h>
4
#include <test/jtx/JTx.h>
5
6
#include <xrpl/json/json_value.h>
7
8
#include <
string
>
9
10
namespace
xrpl::test::jtx
{
11
15
class
Json
16
{
17
private
:
18
::json::Value
jv_
;
19
20
public
:
21
explicit
Json
(
std::string
const
&);
22
23
explicit
Json
(
char
const
*);
24
25
explicit
Json
(
::json::Value
);
26
27
template
<
class
T>
28
Json
(
::json::StaticString
const
& key, T
const
& value)
29
{
30
jv_
[key] = value;
31
}
32
33
template
<
class
T>
34
Json
(
std::string
const
& key, T
const
& value)
35
{
36
jv_
[key] = value;
37
}
38
39
void
40
operator()
(
Env
&,
JTx
& jt)
const
;
41
};
42
43
}
// namespace xrpl::test::jtx
std::string
json::StaticString
Lightweight wrapper to tag static string.
Definition
json_value.h:48
json::Value
Represents a JSON value.
Definition
json_value.h:117
xrpl::test::jtx::Env
A transaction testing environment.
Definition
Env.h:161
xrpl::test::jtx::Json::Json
Json(std::string const &key, T const &value)
Definition
jtx_json.h:34
xrpl::test::jtx::Json::Json
Json(::json::StaticString const &key, T const &value)
Definition
jtx_json.h:28
xrpl::test::jtx::Json::jv_
::json::Value jv_
Definition
jtx_json.h:18
xrpl::test::jtx::Json::operator()
void operator()(Env &, JTx &jt) const
Definition
jtx_json.cpp:31
xrpl::test::jtx::Json::Json
Json(std::string const &)
Definition
jtx_json.cpp:16
xrpl::test::jtx
Definition
Oracle_test.cpp:34
string
xrpl::test::jtx::JTx
Execution context for applying a JSON transaction.
Definition
JTx.h:27
Generated by
1.17.0