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

A strongly typed aggregate notification validator builder. More...

Classes

class  DefaultAggregateNotificationValidator
 

Public Member Functions

AggregateValidatorBuilderadd (NotificationValidatorPointer &&pValidator)
 Adds pValidator to the builder and allows chaining. More...
 
AggregateValidatorPointer build (const ValidationResultPredicate &isSuppressedFailure)
 Builds a strongly typed notification validator that ignores suppressed failures according to isSuppressedFailure. More...
 

Private Types

using NotificationValidatorPointer = std::unique_ptr< const NotificationValidatorT< TNotification, TArgs... > >
 
using NotificationValidatorPointerVector = std::vector< NotificationValidatorPointer >
 
using AggregateValidatorPointer = std::unique_ptr< const AggregateNotificationValidatorT< TNotification, TArgs... > >
 

Private Attributes

NotificationValidatorPointerVector m_validators
 

Detailed Description

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

A strongly typed aggregate notification validator builder.

Member Typedef Documentation

◆ AggregateValidatorPointer

template<typename TNotification, typename... TArgs>
using catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::AggregateValidatorPointer = std::unique_ptr<const AggregateNotificationValidatorT<TNotification, TArgs...> >
private

◆ NotificationValidatorPointer

template<typename TNotification, typename... TArgs>
using catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::NotificationValidatorPointer = std::unique_ptr<const NotificationValidatorT<TNotification, TArgs...> >
private

◆ NotificationValidatorPointerVector

template<typename TNotification, typename... TArgs>
using catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::NotificationValidatorPointerVector = std::vector<NotificationValidatorPointer>
private

Member Function Documentation

◆ add()

template<typename TNotification, typename... TArgs>
AggregateValidatorBuilder& catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::add ( NotificationValidatorPointer &&  pValidator)
inline

Adds pValidator to the builder and allows chaining.

◆ build()

template<typename TNotification, typename... TArgs>
AggregateValidatorPointer catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::build ( const ValidationResultPredicate isSuppressedFailure)
inline

Builds a strongly typed notification validator that ignores suppressed failures according to isSuppressedFailure.

Member Data Documentation

◆ m_validators

template<typename TNotification, typename... TArgs>
NotificationValidatorPointerVector catapult::validators::AggregateValidatorBuilder< TNotification, TArgs >::m_validators
private

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