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>(
37 std::move(sle), accountID);
43 : sle_ (
std::move(sle))
44 , mFlags (sle_->getFieldU32 (
sfFlags))
45 , mLowLimit (sle_->getFieldAmount (
sfLowLimit))
47 , mLowID (mLowLimit.getIssuer ())
48 , mHighID (mHighLimit.getIssuer ())
53 , mBalance (sle_->getFieldAmount (
sfBalance))
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")
std::shared_ptr< RippleState > pointer
AccountID const & mHighID
const SF_U32 sfHighQualityOut(access, STI_UINT32, 17, "HighQualityOut")