20 #include <ripple/app/main/Application.h>
21 #include <ripple/app/paths/RippleState.h>
22 #include <ripple/protocol/STAmount.h>
36 return std::make_shared<RippleState>(std::move(sle), accountID);
42 : sle_(
std::move(sle))
43 , mFlags(sle_->getFieldU32(
sfFlags))
46 , mLowID(mLowLimit.getIssuer())
47 , mHighID(mHighLimit.getIssuer())
52 , mBalance(sle_->getFieldAmount(
sfBalance))
std::shared_ptr< RippleState > pointer
const SF_U32 sfHighQualityIn(access, STI_UINT32, 16, "HighQualityIn")
const SF_U32 sfFlags(access, STI_UINT32, 2, "Flags")
std::string to_string(ListDisposition disposition)
const SF_Amount sfHighLimit(access, STI_AMOUNT, 7, "HighLimit")
const SF_Amount sfLowLimit(access, STI_AMOUNT, 6, "LowLimit")
void forEachItem(ReadView const &view, AccountID const &id, std::function< void(std::shared_ptr< SLE const > const &)> f)
Iterate all items in an account's owner directory.
std::vector< RippleState::pointer > getRippleStateItems(AccountID const &accountID, ReadView const &view)
@ objectValue
object value (collection of name/value pairs).
static RippleState::pointer makeItem(AccountID const &accountID, std::shared_ptr< SLE const > sle)
const SF_U32 sfLowQualityOut(access, STI_UINT32, 19, "LowQualityOut")
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
const SF_U32 sfLowQualityIn(access, STI_UINT32, 18, "LowQualityIn")
const SF_Amount sfBalance(access, STI_AMOUNT, 2, "Balance")
AccountID const & mHighID
const SF_U32 sfHighQualityOut(access, STI_UINT32, 17, "HighQualityOut")