CatapultServer  v0.5.0.1 (Elephant)
ObserverStatementBuilder.h
Go to the documentation of this file.
1 
21 #pragma once
24 
25 namespace catapult { namespace observers {
26 
29  public:
32 
35 
36  public:
39 
42 
43  public:
45  void addReceipt(const model::Receipt& receipt);
46 
47  private:
49  };
50 
52  model::ResolverContext Bind(const model::ResolverContext& resolverContext, model::BlockStatementBuilder& statementBuilder);
53 }}
ResolverContext.h
catapult::model::BlockStatementBuilder::addResolution
void addResolution(const UnresolvedAddress &unresolved, const Address &resolved)
Adds a resolution entry for resolving unresolved value to resolved value.
Definition: BlockStatementBuilder.cpp:80
catapult::observers::ObserverStatementBuilder::setSource
void setSource(const model::ReceiptSource &source)
Sets active source.
Definition: ObserverStatementBuilder.cpp:36
catapult::model::BlockStatementBuilder::addReceipt
void addReceipt(const Receipt &receipt)
Adds receipt to this builder.
Definition: BlockStatementBuilder.cpp:48
catapult::model::Receipt
Binary layout for a receipt entity.
Definition: Receipt.h:31
catapult::model::BlockStatementBuilder::source
const ReceiptSource & source() const
Gets active source.
Definition: BlockStatementBuilder.cpp:30
catapult::observers::Bind
model::ResolverContext Bind(const model::ResolverContext &resolverContext, model::BlockStatementBuilder &statementBuilder)
Binds resolverContext to statementBuilder.
Definition: ObserverStatementBuilder.cpp:50
catapult::model::ResolverContext::resolve
MosaicId resolve(UnresolvedMosaicId mosaicId) const
Resolves mosaic id (mosaicId).
Definition: ResolverContext.cpp:41
catapult::model::ResolverContext
Context used to resolve unresolved types.
Definition: ResolverContext.h:28
ObserverStatementBuilder.h
catapult::observers::ObserverStatementBuilder::ObserverStatementBuilder
ObserverStatementBuilder()
Creates a default builder.
Definition: ObserverStatementBuilder.cpp:25
BlockStatementBuilder.h
catapult::model::BlockStatementBuilder
Collection of receipts scoped to a block.
Definition: BlockStatementBuilder.h:27
catapult::model::ReceiptSource
Receipt source (unique within a block).
Definition: ReceiptSource.h:29
catapult::observers::ObserverStatementBuilder::source
model::ReceiptSource source() const
Gets active source.
Definition: ObserverStatementBuilder.cpp:32
catapult::observers::ObserverStatementBuilder::m_pStatementBuilder
model::BlockStatementBuilder * m_pStatementBuilder
Definition: ObserverStatementBuilder.h:48
catapult::model::BlockStatementBuilder::setSource
void setSource(const ReceiptSource &source)
Sets active source.
Definition: BlockStatementBuilder.cpp:34
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::observers::ObserverStatementBuilder
Facade on top of a block statement builder that is accessible by observers.
Definition: ObserverStatementBuilder.h:28
catapult::observers::ObserverStatementBuilder::addReceipt
void addReceipt(const model::Receipt &receipt)
Adds receipt to this builder.
Definition: ObserverStatementBuilder.cpp:43