CatapultServer  v0.5.0.1 (Elephant)
SupplementalDataStorage.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "CacheStorageInclude.h"
23 #include "SupplementalData.h"
24 
25 namespace catapult { namespace cache {
26 
28  void SaveSupplementalData(const SupplementalData& supplementalData, Height chainHeight, io::OutputStream& output);
29 
31  void LoadSupplementalData(io::InputStream& input, SupplementalData& supplementalData, Height& chainHeight);
32 }}
CacheStorageInclude.h
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
catapult::io::OutputStream::flush
virtual void flush()=0
catapult::io::Read
void Read(TIo &input, utils::BasicBaseValue< TValue, TTag, TBaseValue > &value)
Reads base value from input.
Definition: PodIoUtils.h:60
Parser.debug
def debug(*args)
Definition: Parser.py:46
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
catapult::state::CatapultState::LastRecalculationHeight
model::ImportanceHeight LastRecalculationHeight
Height at which importances were last recalculated.
Definition: CatapultState.h:37
SupplementalDataStorage.h
catapult::cache::LoadSupplementalData
void LoadSupplementalData(io::InputStream &input, SupplementalData &supplementalData, Height &chainHeight)
Loads supplementalData and chainHeight from input.
Definition: SupplementalDataStorage.cpp:54
catapult::utils::BaseValue< uint64_t, Height_tag >
catapult::state::CatapultState::NumTotalTransactions
uint64_t NumTotalTransactions
Total number of confirmed transactions in chain.
Definition: CatapultState.h:40
catapult::io::InputStream
Reader interface.
Definition: Stream.h:27
catapult::cache::SupplementalData
Chain supplemental data.
Definition: SupplementalData.h:28
SupplementalData.h
catapult::io::Write
void Write(TIo &output, const utils::BasicBaseValue< TValue, TTag, TBaseValue > &value)
Writes base value into output.
Definition: PodIoUtils.h:30
catapult::io::Write64
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
ChainScore
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::io::Read64
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
catapult::cache::SaveSupplementalData
void SaveSupplementalData(const SupplementalData &supplementalData, Height chainHeight, io::OutputStream &output)
Saves supplementalData and chainHeight to output.
Definition: SupplementalDataStorage.cpp:40
PodIoUtils.h
Logging.h
Stream.h
catapult::model::ChainScore::toArray
ArrayType toArray() const
Gets an array representing the underlying score.
Definition: ChainScore.h:57
catapult::cache::SupplementalData::State
state::CatapultState State
Catapult state.
Definition: SupplementalData.h:30
catapult::io::OutputStream
Writer interface.
Definition: Stream.h:41
catapult::cache::SupplementalData::ChainScore
model::ChainScore ChainScore
Chain score.
Definition: SupplementalData.h:33