CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::ValidatingNotificationSubscriber Class Reference

A notification subscriber that validates notifications. More...

Inheritance diagram for catapult::validators::ValidatingNotificationSubscriber:
Collaboration diagram for catapult::validators::ValidatingNotificationSubscriber:

Public Member Functions

 ValidatingNotificationSubscriber (const stateless::NotificationValidator &validator)
 Creates a validating notification subscriber around validator. More...
 
ValidationResult result () const
 Gets the aggregate validation result. More...
 
void notify (const model::Notification &notification) override
 Notifies the subscriber of notification. More...
 
- Public Member Functions inherited from catapult::model::NotificationSubscriber
virtual ~NotificationSubscriber ()=default
 

Private Attributes

const stateless::NotificationValidatorm_validator
 
ValidationResult m_result
 

Detailed Description

A notification subscriber that validates notifications.

Constructor & Destructor Documentation

◆ ValidatingNotificationSubscriber()

catapult::validators::ValidatingNotificationSubscriber::ValidatingNotificationSubscriber ( const stateless::NotificationValidator validator)
inlineexplicit

Creates a validating notification subscriber around validator.

Member Function Documentation

◆ notify()

void catapult::validators::ValidatingNotificationSubscriber::notify ( const model::Notification notification)
inlineoverridevirtual

Notifies the subscriber of notification.

Implements catapult::model::NotificationSubscriber.

Here is the call graph for this function:

◆ result()

ValidationResult catapult::validators::ValidatingNotificationSubscriber::result ( ) const
inline

Gets the aggregate validation result.

Here is the caller graph for this function:

Member Data Documentation

◆ m_result

ValidationResult catapult::validators::ValidatingNotificationSubscriber::m_result
private

◆ m_validator

const stateless::NotificationValidator& catapult::validators::ValidatingNotificationSubscriber::m_validator
private

The documentation for this class was generated from the following file: