rippled
Loading...
Searching...
No Matches
tag.h
1#pragma once
2
3#include <test/jtx/Env.h>
4
5namespace xrpl {
6namespace test {
7
8namespace jtx {
9
11struct dtag
12{
13private:
15
16public:
17 explicit dtag(std::uint32_t value) : value_(value)
18 {
19 }
20
21 void
22 operator()(Env&, JTx& jt) const;
23};
24
26struct stag
27{
28private:
30
31public:
32 explicit stag(std::uint32_t value) : value_(value)
33 {
34 }
35
36 void
37 operator()(Env&, JTx& jt) const;
38};
39
40} // namespace jtx
41
42} // namespace test
43} // namespace xrpl
A transaction testing environment.
Definition Env.h:119
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Execution context for applying a JSON transaction.
Definition JTx.h:25
Set the destination tag on a JTx.
Definition tag.h:12
dtag(std::uint32_t value)
Definition tag.h:17
std::uint32_t value_
Definition tag.h:14
void operator()(Env &, JTx &jt) const
Definition tag.cpp:8
Set the source tag on a JTx.
Definition tag.h:27
std::uint32_t value_
Definition tag.h:29
void operator()(Env &, JTx &jt) const
Definition tag.cpp:14
stag(std::uint32_t value)
Definition tag.h:32