Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::LedgerTypes Class Reference

A helper class that provides lists of different ledger type catagory. More...

#include <LedgerUtils.hpp>

Static Public Member Functions

static constexpr auto getLedgerEntryTypeStrList ()
 Returns a list of all ledger entry type as string.
 
static constexpr auto getAccountOwnedLedgerTypeStrList ()
 Returns a list of all account owned ledger entry type as string.
 
static constexpr auto getDeletionBlockerLedgerTypes ()
 Returns a list of all account deletion blocker's type as string.
 
static ripple::LedgerEntryType getLedgerEntryTypeFromStr (std::string const &entryName)
 Returns the ripple::LedgerEntryType from the given string.
 

Detailed Description

A helper class that provides lists of different ledger type catagory.

Member Function Documentation

◆ getAccountOwnedLedgerTypeStrList()

static constexpr auto util::LedgerTypes::getAccountOwnedLedgerTypeStrList ( )
inlinestaticconstexpr

Returns a list of all account owned ledger entry type as string.

Returns
A list of all account owned ledger entry type as string.

◆ getDeletionBlockerLedgerTypes()

static constexpr auto util::LedgerTypes::getDeletionBlockerLedgerTypes ( )
inlinestaticconstexpr

Returns a list of all account deletion blocker's type as string.

Returns
A list of all account deletion blocker's type as string.

◆ getLedgerEntryTypeFromStr()

ripple::LedgerEntryType util::LedgerTypes::getLedgerEntryTypeFromStr ( std::string const & entryName)
static

Returns the ripple::LedgerEntryType from the given string.

Parameters
entryNameThe name of the ledger entry type
Returns
The ripple::LedgerEntryType of the given string, returns ltANY if not found.

◆ getLedgerEntryTypeStrList()

static constexpr auto util::LedgerTypes::getLedgerEntryTypeStrList ( )
inlinestaticconstexpr

Returns a list of all ledger entry type as string.

Returns
A list of all ledger entry type as string.

The documentation for this class was generated from the following files: