CatapultServer  v0.5.0.1 (Elephant)
EntityObserver.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ObserverContext.h"
25 
26 namespace catapult { namespace observers {
27 
31  public:
32  virtual ~EntityObserver() = default;
33 
34  public:
36  virtual const std::string& name() const = 0;
37 
39  virtual void notify(const model::WeakEntityInfo& entityInfo, ObserverContext& context) const = 0;
40  };
41 }}
catapult::observers::EntityObserver::name
virtual const std::string & name() const =0
Gets the observer name.
catapult::observers::ObserverContext
Context passed to all the observers.
Definition: ObserverContext.h:78
catapult::observers::EntityObserver
Definition: EntityObserver.h:30
WeakEntityInfo.h
ObserverContext.h
catapult::model::WeakEntityInfoT
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
VerifiableEntity.h
catapult::observers::EntityObserver::notify
virtual void notify(const model::WeakEntityInfo &entityInfo, ObserverContext &context) const =0
Notifies the observer with an entityInfo to process and an observer context.
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::observers::EntityObserver::~EntityObserver
virtual ~EntityObserver()=default