CatapultServer
v0.5.0.1 (Elephant)
|
Notification validator that wraps a function. More...
Public Member Functions | |
FunctionalNotificationValidatorT (const std::string &name, const FunctionType &func) | |
Creates a functional notification validator around func with name. More... | |
const std::string & | name () const override |
Gets the validator name. More... | |
ValidationResult | validate (const TNotification ¬ification, TArgs &&... args) const override |
Validates a single notification with contextual information args. More... | |
Public Member Functions inherited from catapult::validators::NotificationValidatorT< TNotification, TArgs... > | |
virtual | ~NotificationValidatorT ()=default |
Private Types | |
using | FunctionType = std::function< ValidationResult(const TNotification &, TArgs &&...)> |
Private Attributes | |
std::string | m_name |
FunctionType | m_func |
Additional Inherited Members | |
Public Types inherited from catapult::validators::NotificationValidatorT< TNotification, TArgs... > | |
using | NotificationType = TNotification |
Notification type. More... | |
Notification validator that wraps a function.
|
private |
|
inlineexplicit |
Creates a functional notification validator around func with name.
|
inlineoverridevirtual |
Gets the validator name.
Implements catapult::validators::NotificationValidatorT< TNotification, TArgs... >.
|
inlineoverridevirtual |
Validates a single notification with contextual information args.
Implements catapult::validators::NotificationValidatorT< TNotification, TArgs... >.
|
private |
|
private |