CatapultServer  v0.5.0.1 (Elephant)
BlockSaver.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 namespace catapult {
24  namespace model { struct BlockElement; }
25  namespace tools { namespace nemgen { struct NemesisConfiguration; } }
26 }
27 
28 namespace catapult { namespace tools { namespace nemgen {
29 
31  void SaveNemesisBlockElement(const model::BlockElement& blockElement, const NemesisConfiguration& config);
32 }}}
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
catapult::io::OpenMode::Read_Write
Open file for both reading and writing. Removes the file if it exists.
catapult::io::IndexFile
Index file containing a uint64_t value.
Definition: IndexFile.h:28
catapult::tools::nemgen::SaveNemesisBlockElement
void SaveNemesisBlockElement(const model::BlockElement &blockElement, const NemesisConfiguration &config)
Saves nemesis blockElement according to config.
Definition: BlockSaver.cpp:75
catapult::utils::HexFormat
constexpr void HexFormat(const ByteArray< N, TTag > &)
catapult::io::OpenMode::Read_Only
Open file in read-only mode.
catapult::model::BlockElement::Block
const model::Block & Block
Block entity.
Definition: Elements.h:63
catapult::tools::nemgen::NemesisConfiguration
Nemesis configuration.
Definition: NemesisConfiguration.h:56
NemesisConfiguration.h
catapult::tools::nemgen::NemesisConfiguration::CppFile
std::string CppFile
Cpp file path.
Definition: NemesisConfiguration.h:71
BlockSaver.h
catapult::tools::nemgen::NemesisConfiguration::CppFileHeader
std::string CppFileHeader
Cpp file header.
Definition: NemesisConfiguration.h:68
FileBlockStorage.h
IndexFile.h
HexFormatter.h
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
catapult::model::BlockElement
Processing element for a block composed of a block and metadata.
Definition: Elements.h:55
catapult
Definition: AddressExtractionExtension.cpp:28
HexParser.h
catapult::tools::nemgen::NemesisConfiguration::BinDirectory
std::string BinDirectory
Binary destination directory.
Definition: NemesisConfiguration.h:74
catapult::utils::RawBuffer
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62