rippled
Loading...
Searching...
No Matches
STTakesAsset.h
1#pragma once
2
3#include <xrpl/protocol/Asset.h>
4#include <xrpl/protocol/STBase.h>
5
6namespace xrpl {
7
21class STTakesAsset : public STBase
22{
23protected:
25
26public:
27 using STBase::STBase;
28 using STBase::operator=;
29
30 virtual void
31 associateAsset(Asset const& a);
32};
33
34inline void
36{
37 asset_.emplace(a);
38}
39
40class STLedgerEntry;
41
57void
59
60} // namespace xrpl
A type which can be exported to a well known binary format.
Definition STBase.h:115
Intermediate class for any STBase-derived class to store an Asset.
virtual void associateAsset(Asset const &a)
std::optional< Asset > asset_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
void associateAsset(STLedgerEntry &sle, Asset const &asset)
Associate an Asset with all sMD_NeedsAsset fields in a ledger entry.