CatapultServer  v0.5.0.1 (Elephant)
NamespaceDescriptorMapper.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "NamespaceDescriptor.h"
24 
25 namespace catapult { namespace mongo { namespace plugins {
26 
28  bsoncxx::document::value ToDbModel(const NamespaceDescriptor& descriptor);
29 }}}
MapperUtils.h
catapult::mongo::plugins::NamespaceDescriptor::IsRoot
bool IsRoot() const
Returns true if the described namespace is a root namespace.
Definition: NamespaceDescriptor.h:47
catapult::Namespace_Base_Id
constexpr NamespaceId Namespace_Base_Id(0)
Base id for namespaces.
catapult::mongo::plugins::NamespaceDescriptor
A namespace descriptor.
Definition: NamespaceDescriptor.h:27
NamespaceDescriptor.h
catapult::mongo::plugins::NamespaceDescriptor::OwnerAddress
Address OwnerAddress
Definition: NamespaceDescriptor.h:63
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::mongo::mappers::ToInt64
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
RootNamespace.h
catapult::state::Namespace::Path
utils::CheckedArray< NamespaceId, Namespace_Max_Depth > Path
Definition: Namespace.h:32
NamespaceDescriptorMapper.h
NamespaceTypes.h
catapult::model::NamespaceType::Child
A child namespace.
catapult::model::NamespaceType::Root
A root namespace.
catapult::state::AliasType::Mosaic
Mosaic id alias.
catapult::mongo::mappers
Definition: AccountStateMapper.cpp:26
catapult::state::AliasType::Address
Account address alias.
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
catapult::mongo::plugins::NamespaceDescriptor::Alias
const state::NamespaceAlias Alias
Namespace alias.
Definition: NamespaceDescriptor.h:56
Casting.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::mongo::plugins::NamespaceDescriptor::pRoot
const std::shared_ptr< const state::RootNamespace > pRoot
Associated root namespace.
Definition: NamespaceDescriptor.h:59
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::mongo::plugins::NamespaceDescriptor::Path
const state::Namespace::Path Path
Namespace path.
Definition: NamespaceDescriptor.h:53
MapperInclude.h