20#ifndef RIPPLE_PROTOCOL_STCURRENCY_H_INCLUDED
21#define RIPPLE_PROTOCOL_STCURRENCY_H_INCLUDED
23#include <xrpl/basics/CountedObject.h>
24#include <xrpl/protocol/SField.h>
25#include <xrpl/protocol/STBase.h>
26#include <xrpl/protocol/Serializer.h>
27#include <xrpl/protocol/UintTypes.h>
51 value() const noexcept;
78 copy(
std::
size_t n,
void* buf) const override;
80 move(
std::
size_t n,
void* buf) override;
A type which can be exported to a well known binary format.
bool operator!=(const STBase &t) const
bool operator==(const STBase &t) const
Currency const & value() const noexcept
bool isDefault() const override
friend class detail::STVar
void add(Serializer &s) const override
SerializedTypeID getSType() const override
Json::Value getJson(JsonOptions) const override
std::string getText() const override
bool isEquivalent(const STBase &t) const override
static std::unique_ptr< STCurrency > construct(SerialIter &, SField const &name)
STBase * move(std::size_t n, void *buf) override
STBase * copy(std::size_t n, void *buf) const override
Currency const & currency() const
void setCurrency(Currency const ¤cy)
JSON (JavaScript Object Notation).
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
STCurrency currencyFromJson(SField const &name, Json::Value const &v)
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
bool operator<(Slice const &lhs, Slice const &rhs) noexcept
Note, should be treated as flags that can be | and &.