CatapultServer  v0.5.0.1 (Elephant)
TransactionEvent.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "catapult/functions.h"
24 #include "catapult/types.h"
25 
26 namespace catapult { namespace extensions {
27 
29  enum class TransactionEvent {
32  };
33 
35 
36 
38  public:
40  TransactionEventData(const Hash256& transactionHash, TransactionEvent event)
41  : TransactionHash(transactionHash)
42  , Event(event)
43  {}
44 
45  public:
48 
51  };
52 
55 }}
catapult::extensions::TransactionEventHandler
consumer< const TransactionEventData & > TransactionEventHandler
Handler that is called when a transaction event is raised.
Definition: TransactionEvent.h:54
MAKE_BITWISE_ENUM
#define MAKE_BITWISE_ENUM(ENUM_TYPE)
Defines bitwise helpers for ENUM_TYPE.
Definition: BitwiseEnum.h:25
catapult::extensions::TransactionEventData::TransactionHash
const Hash256 & TransactionHash
Transaction hash.
Definition: TransactionEvent.h:47
functions.h
BitwiseEnum.h
catapult::extensions::TransactionEvent::Dependency_Removed
Transaction dependency was removed.
catapult::extensions::TransactionEventData::TransactionEventData
TransactionEventData(const Hash256 &transactionHash, TransactionEvent event)
Creates transaction event data around transactionHash and event.
Definition: TransactionEvent.h:40
catapult::extensions::TransactionEventData::Event
TransactionEvent Event
Transaction event.
Definition: TransactionEvent.h:50
catapult::extensions::TransactionEventData
Data associated with a transaction event.
Definition: TransactionEvent.h:37
catapult::extensions::TransactionEvent
TransactionEvent
Possible transaction events.
Definition: TransactionEvent.h:29
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35