CatapultServer  v0.5.0.1 (Elephant)
StateChangeSubscriber.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 namespace catapult {
24  namespace model { class ChainScore; }
25  namespace subscribers { struct StateChangeInfo; }
26 }
27 
28 namespace catapult { namespace subscribers {
29 
32  public:
33  virtual ~StateChangeSubscriber() = default;
34 
35  public:
37  virtual void notifyScoreChange(const model::ChainScore& chainScore) = 0;
38 
40  virtual void notifyStateChange(const StateChangeInfo& stateChangeInfo) = 0;
41  };
42 }}
catapult::subscribers::StateChangeSubscriber::~StateChangeSubscriber
virtual ~StateChangeSubscriber()=default
catapult::subscribers::StateChangeSubscriber
State change subscriber.
Definition: StateChangeSubscriber.h:31
catapult::model::ChainScore
Definition: ChainScore.h:30
catapult::subscribers::StateChangeSubscriber::notifyScoreChange
virtual void notifyScoreChange(const model::ChainScore &chainScore)=0
Indicates chain score was changed to chainScore.
catapult::subscribers::StateChangeInfo
State change information.
Definition: StateChangeInfo.h:29
ChainScore
model::ChainScore ChainScore
Definition: tools/health/main.cpp:43
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::subscribers::StateChangeSubscriber::notifyStateChange
virtual void notifyStateChange(const StateChangeInfo &stateChangeInfo)=0
Indicates state was changed with change information in stateChangeInfo.