CatapultServer  v0.5.0.1 (Elephant)
UtChangeReader.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 namespace catapult {
24  namespace cache { class UtChangeSubscriber; }
25  namespace io { class InputStream; }
26 }
27 
28 namespace catapult { namespace subscribers {
29 
31  void ReadNextUtChange(io::InputStream& inputStream, cache::UtChangeSubscriber& subscriber);
32 }}
catapult::io::ReadTransactionInfos
void ReadTransactionInfos(InputStream &inputStream, model::TransactionInfosSet &transactionInfos)
Reads transaction infos from inputStream into transactionInfos.
Definition: TransactionInfoSerializer.cpp:67
catapult::subscribers::UtChangeOperationType::Add
Add transaction infos.
catapult::cache::UtChangeSubscriber
Unconfirmed transactions change subscriber.
Definition: UtChangeSubscriber.h:28
UtChangeReader.h
catapult::cache::UtChangeSubscriber::notifyAdds
virtual void notifyAdds(const TransactionInfos &transactionInfos)=0
Indicates transaction infos (transactionInfos) were added to unconfirmed transactions.
catapult::io::InputStream
Reader interface.
Definition: Stream.h:27
TransactionInfoSerializer.h
catapult::io::Read8
auto Read8(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:90
CATAPULT_THROW_INVALID_ARGUMENT_1
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
UtChangeSubscriber.h
catapult::model::TransactionInfosSet
std::unordered_set< TransactionInfo, EntityInfoHasher< const Transaction >, EntityInfoComparer< const Transaction > > TransactionInfosSet
Unordered set of transaction infos.
Definition: ContainerTypes.h:50
SubscriberOperationTypes.h
catapult::cache::UtChangeSubscriber::notifyRemoves
virtual void notifyRemoves(const TransactionInfos &transactionInfos)=0
Indicates transaction infos (transactionInfos) were removed from unconfirmed transactions.
catapult
Definition: AddressExtractionExtension.cpp:28
PodIoUtils.h
catapult::subscribers::UtChangeOperationType::Remove
Remove transaction infos.
Stream.h
catapult::subscribers::ReadNextUtChange
void ReadNextUtChange(io::InputStream &inputStream, cache::UtChangeSubscriber &subscriber)
Reads next unconfirmed transactions change from inputStream and forwards it to subscriber.
Definition: UtChangeReader.cpp:30