CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::NotificationValidatorT< TNotification, TArgs > Class Template Referenceabstract

A strongly typed notification validator. More...

Public Types

using NotificationType = TNotification
 Notification type. More...
 

Public Member Functions

virtual ~NotificationValidatorT ()=default
 
virtual const std::string & name () const =0
 Gets the validator name. More...
 
virtual ValidationResult validate (const TNotification &notification, TArgs &&... args) const =0
 Validates a single notification with contextual information args. More...
 

Detailed Description

template<typename TNotification, typename... TArgs>
class catapult::validators::NotificationValidatorT< TNotification, TArgs >

A strongly typed notification validator.

Member Typedef Documentation

◆ NotificationType

template<typename TNotification, typename... TArgs>
using catapult::validators::NotificationValidatorT< TNotification, TArgs >::NotificationType = TNotification

Notification type.

Constructor & Destructor Documentation

◆ ~NotificationValidatorT()

template<typename TNotification, typename... TArgs>
virtual catapult::validators::NotificationValidatorT< TNotification, TArgs >::~NotificationValidatorT ( )
virtualdefault

Member Function Documentation

◆ name()

◆ validate()

template<typename TNotification, typename... TArgs>
virtual ValidationResult catapult::validators::NotificationValidatorT< TNotification, TArgs >::validate ( const TNotification &  notification,
TArgs &&...  args 
) const
pure virtual

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