CatapultServer
v0.5.0.1 (Elephant)
|
void notify(const model::Notification ¬ification) override
Notifies the subscriber of notification.
Definition: ValidatingNotificationSubscriber.h:44
A notification subscriber.
Definition: NotificationSubscriber.h:27
A strongly typed notification validator.
Definition: NotificationValidator.h:30
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
Validation result is success.
constexpr bool IsSet(ValidationResult result, ResultFlags flags)
Checks if result has all flags set.
Definition: ValidationResult.h:85
void AggregateValidationResult(std::atomic< ValidationResult > &aggregate, ValidationResult value)
Aggregates result into aggregate.
Definition: AggregateValidationResult.cpp:62
NotificationType Type
Notification type.
Definition: Notifications.h:46
A notification subscriber that validates notifications.
Definition: ValidatingNotificationSubscriber.h:29
ValidationResult result() const
Gets the aggregate validation result.
Definition: ValidatingNotificationSubscriber.h:39
A basic notification.
Definition: Notifications.h:36
Definition: AddressExtractionExtension.cpp:28
constexpr bool IsValidationResultFailure(ValidationResult result)
Returns a value indicating whether the validation result is a failure.
Definition: ValidationResult.h:95
ValidatingNotificationSubscriber(const stateless::NotificationValidator &validator)
Creates a validating notification subscriber around validator.
Definition: ValidatingNotificationSubscriber.h:32
virtual ValidationResult validate(const TNotification ¬ification, TArgs &&... args) const =0
Validates a single notification with contextual information args.
ValidationResult m_result
Definition: ValidatingNotificationSubscriber.h:57
Publish notification on validator channel.
const stateless::NotificationValidator & m_validator
Definition: ValidatingNotificationSubscriber.h:56