CatapultServer  v0.5.0.1 (Elephant)
TransactionStatementMapper.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "MapperInclude.h"
23 #include "MapperUtils.h"
24 
25 namespace catapult {
26  namespace model { class TransactionStatement; }
27  namespace mongo { class MongoReceiptRegistry; }
28 }
29 
30 namespace catapult { namespace mongo { namespace mappers {
31 
33  bsoncxx::document::value ToDbModel(
34  Height height,
35  const model::TransactionStatement& statement,
36  const MongoReceiptRegistry& receiptRegistry);
37 }}}
MapperUtils.h
catapult::mongo::mappers::StreamReceipt
bson_stream::document & StreamReceipt(bson_stream::document &builder, const model::Receipt &receipt)
Streams a receipt to builder.
Definition: MapperUtils.cpp:110
TransactionStatement.h
catapult::model::TransactionStatement
Collection of receipts scoped to a transaction.
Definition: TransactionStatement.h:28
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
catapult::model::TransactionStatement::source
const ReceiptSource & source() const
Gets statement source.
Definition: TransactionStatement.cpp:30
catapult::model::ReceiptSource::PrimaryId
uint32_t PrimaryId
Transaction primary source (e.g. index within block).
Definition: ReceiptSource.h:43
catapult::mongo::mappers::ToInt64
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::model::ReceiptSource::SecondaryId
uint32_t SecondaryId
Transaction secondary source (e.g. index within aggregate).
Definition: ReceiptSource.h:46
catapult::mongo::MongoReceiptRegistry
A registry of mongo receipt plugins.
Definition: MongoReceiptPlugin.h:46
ReceiptMapper.h
TransactionStatementMapper.h
catapult
Definition: AddressExtractionExtension.cpp:28
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