CatapultServer  v0.5.0.1 (Elephant)
AccountRestrictionsMapper.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::AccountRestrictions& restrictions);
29 }}}
MapperUtils.h
catapult::mongo::mappers::bson_stream::array_context
bsoncxx::builder::stream::array_context< bsoncxx::builder::stream::key_context<> > array_context
Definition: MapperUtils.h:46
AccountRestrictionsMapper.h
catapult::state::AccountRestrictions::address
const Address & address() const
Gets the account address.
Definition: AccountRestrictions.cpp:32
catapult::state::AccountRestrictions
Account restrictions.
Definition: AccountRestrictions.h:28
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
Casting.h
catapult
Definition: AddressExtractionExtension.cpp:28
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
MapperInclude.h
AccountRestrictions.h