rippled
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
ripple::test::jtx::JTx Struct Reference

Execution context for applying a JSON transaction. More...

Collaboration diagram for ripple::test::jtx::JTx:
Collaboration graph
[legend]

Classes

struct  prop_list
 

Public Member Functions

 JTx ()=default
 
 JTx (JTx const &)=default
 
JTxoperator= (JTx const &)=default
 
 JTx (JTx &&)=default
 
JTxoperator= (JTx &&)=default
 
 JTx (Json::Value &&jv_)
 
 JTx (Json::Value const &jv_)
 
template<class Key >
Json::Valueoperator[] (Key const &key)
 
template<class Prop >
Prop * get ()
 Return a property if it exists. More...
 
template<class Prop >
Prop const * get () const
 
void set (std::unique_ptr< basic_prop > p)
 Set a property If the property already exists, it is replaced. More...
 
template<class Prop , class... Args>
void set (Args &&... args)
 

Public Attributes

Json::Value jv
 
requires_t require
 
std::optional< TERter = TER{tesSUCCESS}
 
bool fill_fee = true
 
bool fill_seq = true
 
bool fill_sig = true
 
std::shared_ptr< STTx const > stx
 
std::function< void(Env &, JTx &)> signer
 

Private Attributes

prop_list props_
 

Detailed Description

Execution context for applying a JSON transaction.

This augments the transaction with various settings.

Definition at line 42 of file JTx.h.

Constructor & Destructor Documentation

◆ JTx() [1/5]

ripple::test::jtx::JTx::JTx ( )
default

◆ JTx() [2/5]

ripple::test::jtx::JTx::JTx ( JTx const &  )
default

◆ JTx() [3/5]

ripple::test::jtx::JTx::JTx ( JTx &&  )
default

◆ JTx() [4/5]

ripple::test::jtx::JTx::JTx ( Json::Value &&  jv_)

Definition at line 61 of file JTx.h.

◆ JTx() [5/5]

ripple::test::jtx::JTx::JTx ( Json::Value const &  jv_)

Definition at line 65 of file JTx.h.

Member Function Documentation

◆ operator=() [1/2]

JTx& ripple::test::jtx::JTx::operator= ( JTx const &  )
default

◆ operator=() [2/2]

JTx& ripple::test::jtx::JTx::operator= ( JTx &&  )
default

◆ operator[]()

template<class Key >
Json::Value& ripple::test::jtx::JTx::operator[] ( Key const &  key)

Definition at line 71 of file JTx.h.

◆ get() [1/2]

template<class Prop >
Prop* ripple::test::jtx::JTx::get ( )

Return a property if it exists.

Returns
nullptr if the Prop does not exist

Definition at line 83 of file JTx.h.

◆ get() [2/2]

template<class Prop >
Prop const* ripple::test::jtx::JTx::get ( ) const

Definition at line 95 of file JTx.h.

◆ set() [1/2]

void ripple::test::jtx::JTx::set ( std::unique_ptr< basic_prop p)

Set a property If the property already exists, it is replaced.

Definition at line 112 of file JTx.h.

◆ set() [2/2]

template<class Prop , class... Args>
void ripple::test::jtx::JTx::set ( Args &&...  args)

Definition at line 127 of file JTx.h.

Member Data Documentation

◆ jv

Json::Value ripple::test::jtx::JTx::jv

Definition at line 44 of file JTx.h.

◆ require

requires_t ripple::test::jtx::JTx::require

Definition at line 45 of file JTx.h.

◆ ter

std::optional<TER> ripple::test::jtx::JTx::ter = TER{tesSUCCESS}

Definition at line 46 of file JTx.h.

◆ fill_fee

bool ripple::test::jtx::JTx::fill_fee = true

Definition at line 47 of file JTx.h.

◆ fill_seq

bool ripple::test::jtx::JTx::fill_seq = true

Definition at line 48 of file JTx.h.

◆ fill_sig

bool ripple::test::jtx::JTx::fill_sig = true

Definition at line 49 of file JTx.h.

◆ stx

std::shared_ptr<STTx const> ripple::test::jtx::JTx::stx

Definition at line 50 of file JTx.h.

◆ signer

std::function<void(Env&, JTx&)> ripple::test::jtx::JTx::signer

Definition at line 51 of file JTx.h.

◆ props_

prop_list ripple::test::jtx::JTx::props_
private

Definition at line 163 of file JTx.h.