CatapultServer  v0.5.0.1 (Elephant)
MosaicEntryMapper.h
Go to the documentation of this file.
1 
21 #pragma once
24 
25 namespace catapult { namespace mongo { namespace plugins {
26 
28  bsoncxx::document::value ToDbModel(const state::MosaicEntry& entry);
29 }}}
MapperUtils.h
MosaicEntryMapper.h
catapult::utils::to_underlying_type
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
catapult::state::MosaicEntry
A tuple composed of a mosaic definition and its current state.
Definition: MosaicEntry.h:50
catapult::mongo::mappers::ToInt64
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
catapult::state::MosaicEntry::definition
const MosaicDefinition & definition() const
Gets the mosaic definition.
Definition: MosaicEntry.cpp:57
catapult::mongo::mappers
Definition: AccountStateMapper.cpp:26
catapult::mongo::plugins::ToDbModel
bsoncxx::document::value ToDbModel(const state::HashLockInfo &hashLockInfo, const Address &accountAddress)
Maps a hashLockInfo and accountAddress to the corresponding db model value.
Definition: HashLockInfoMapper.cpp:40
MosaicEntry.h
Casting.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::state::MosaicEntry::mosaicId
MosaicId mosaicId() const
Gets the mosaic id.
Definition: MosaicEntry.cpp:52
catapult::mongo::mappers::ToBinary
bsoncxx::types::b_binary ToBinary(const uint8_t *pData, size_t size)
Converts raw array (pData) of size elements into bson binary type.
Definition: MapperUtils.cpp:30
catapult::mongo::mappers::ToDbModel
bsoncxx::document::value ToDbModel(const state::AccountState &accountState)
Maps an account state (accountState) to the corresponding db model value.
Definition: AccountStateMapper.cpp:81
catapult::state::MosaicEntrySupplyMixin::supply
Amount supply() const
Gets the mosaic supply.
Definition: MosaicEntry.cpp:27
MapperInclude.h