Base class for type-safe ledger entry wrappers.
uint16_t getLedgerEntryType() const
Get the ledger entry type field (sfLedgerEntryType).
std::shared_ptr< SLE const > sle_
The underlying serialized ledger entry being wrapped.
LedgerEntryType getType() const
Get the ledger entry type.
LedgerEntryBase(std::shared_ptr< SLE const > sle)
Construct a ledger entry wrapper from an existing SLE object.
bool validate() const
Validate the ledger entry.
uint256 const & getKey() const
Get the key (index) of this ledger entry.
std::optional< uint256 > getLedgerIndex() const
Get the ledger index (sfLedgerIndex).
bool hasLedgerIndex() const
Check if the ledger entry has a ledger index.
std::uint32_t getFlags() const
Get the flags field (sfFlags).
std::shared_ptr< SLE const > getSle() const
Get the underlying SLE object.