rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ripple::RPC::LedgerHandler Class Reference

#include <LedgerHandler.h>

Collaboration diagram for ripple::RPC::LedgerHandler:
Collaboration graph
[legend]

Public Member Functions

 LedgerHandler (JsonContext &)
 
Status check ()
 
template<class Object >
void writeResult (Object &)
 

Static Public Attributes

static constexpr char name [] = "ledger"
 
static constexpr unsigned minApiVer = RPC::apiMinimumSupportedVersion
 
static constexpr unsigned maxApiVer = RPC::apiMaximumValidVersion
 
static constexpr Role role = Role::USER
 
static constexpr Condition condition = NO_CONDITION
 

Private Attributes

JsonContextcontext_
 
std::shared_ptr< ReadView const > ledger_
 
std::vector< TxQ::TxDetailsqueueTxs_
 
Json::Value result_
 
int options_ = 0
 

Detailed Description

Definition at line 32 of file LedgerHandler.h.

Constructor & Destructor Documentation

◆ LedgerHandler()

ripple::RPC::LedgerHandler::LedgerHandler ( JsonContext context)
explicit

Definition at line 16 of file LedgerHandler.cpp.

Member Function Documentation

◆ check()

Status ripple::RPC::LedgerHandler::check ( )

Definition at line 21 of file LedgerHandler.cpp.

◆ writeResult()

template<class Object >
void ripple::RPC::LedgerHandler::writeResult ( Object &  value)

Definition at line 69 of file LedgerHandler.h.

Member Data Documentation

◆ name

constexpr char ripple::RPC::LedgerHandler::name[] = "ledger"
staticconstexpr

Definition at line 44 of file LedgerHandler.h.

◆ minApiVer

constexpr unsigned ripple::RPC::LedgerHandler::minApiVer = RPC::apiMinimumSupportedVersion
staticconstexpr

Definition at line 46 of file LedgerHandler.h.

◆ maxApiVer

constexpr unsigned ripple::RPC::LedgerHandler::maxApiVer = RPC::apiMaximumValidVersion
staticconstexpr

Definition at line 48 of file LedgerHandler.h.

◆ role

constexpr Role ripple::RPC::LedgerHandler::role = Role::USER
staticconstexpr

Definition at line 50 of file LedgerHandler.h.

◆ condition

constexpr Condition ripple::RPC::LedgerHandler::condition = NO_CONDITION
staticconstexpr

Definition at line 52 of file LedgerHandler.h.

◆ context_

JsonContext& ripple::RPC::LedgerHandler::context_
private

Definition at line 55 of file LedgerHandler.h.

◆ ledger_

std::shared_ptr<ReadView const> ripple::RPC::LedgerHandler::ledger_
private

Definition at line 56 of file LedgerHandler.h.

◆ queueTxs_

std::vector<TxQ::TxDetails> ripple::RPC::LedgerHandler::queueTxs_
private

Definition at line 57 of file LedgerHandler.h.

◆ result_

Json::Value ripple::RPC::LedgerHandler::result_
private

Definition at line 58 of file LedgerHandler.h.

◆ options_

int ripple::RPC::LedgerHandler::options_ = 0
private

Definition at line 59 of file LedgerHandler.h.