CatapultServer  v0.5.0.1 (Elephant)
BlockStatementSerializer.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult {
25  namespace io {
26  class InputStream;
27  class OutputStream;
28  }
29 }
30 
31 namespace catapult { namespace io {
32 
34  void WriteBlockStatement(const model::BlockStatement& blockStatement, OutputStream& outputStream);
35 
37  void ReadBlockStatement(InputStream& inputStream, model::BlockStatement& blockStatement);
38 }}
catapult::model::BlockStatement
Collection of statements scoped to a block.
Definition: BlockStatement.h:29
catapult::io::Read32
auto Read32(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:74
catapult::io::ReadBlockStatement
void ReadBlockStatement(InputStream &inputStream, model::BlockStatement &blockStatement)
Reads block statement from inputStream into blockStatement.
Definition: BlockStatementSerializer.cpp:123
catapult::model::BlockStatement::TransactionStatements
std::map< ReceiptSource, TransactionStatement > TransactionStatements
Transaction statements.
Definition: BlockStatement.h:31
catapult::io::WriteBlockStatement
void WriteBlockStatement(const model::BlockStatement &blockStatement, OutputStream &outputStream)
Writes blockStatement into outputStream.
Definition: BlockStatementSerializer.cpp:65
catapult::model::BlockStatement::AddressResolutionStatements
std::map< UnresolvedAddress, AddressResolutionStatement > AddressResolutionStatements
Address resolution statements.
Definition: BlockStatement.h:34
catapult::model::BlockStatement::MosaicResolutionStatements
std::map< UnresolvedMosaicId, MosaicResolutionStatement > MosaicResolutionStatements
Mosaic resolution statements.
Definition: BlockStatement.h:37
catapult::io::InputStream
Reader interface.
Definition: Stream.h:27
BlockStatement.h
catapult::model::ReceiptSource
Receipt source (unique within a block).
Definition: ReceiptSource.h:29
BlockStatementSerializer.h
catapult
Definition: AddressExtractionExtension.cpp:28
PodIoUtils.h
catapult::io::Write32
void Write32(TIo &output, uint32_t value)
Writes value into output.
Definition: PodIoUtils.h:42
Stream.h
catapult::io::OutputStream
Writer interface.
Definition: Stream.h:41