CatapultServer  v0.5.0.1 (Elephant)
NotificationValidatorAdapter.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "ValidatorTypes.h"
24 
25 namespace catapult { namespace model { class TransactionRegistry; } }
26 
27 namespace catapult { namespace validators {
28 
32  private:
33  using NotificationValidatorPointer = std::unique_ptr<const stateless::NotificationValidator>;
34  using NotificationPublisherPointer = std::unique_ptr<const model::NotificationPublisher>;
35 
36  public:
39 
40  public:
41  const std::string& name() const override;
42 
43  ValidationResult validate(const model::WeakEntityInfo& entityInfo) const override;
44 
45  private:
48  };
49 }}
NotificationPublisher.h
catapult::validators::NotificationValidatorAdapter::NotificationPublisherPointer
std::unique_ptr< const model::NotificationPublisher > NotificationPublisherPointer
Definition: NotificationValidatorAdapter.h:34
catapult::validators::NotificationValidatorAdapter::NotificationValidatorPointer
std::unique_ptr< const stateless::NotificationValidator > NotificationValidatorPointer
Definition: NotificationValidatorAdapter.h:33
catapult::validators::ValidationResult
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
catapult::validators::NotificationValidatorAdapter::m_pPublisher
NotificationPublisherPointer m_pPublisher
Definition: NotificationValidatorAdapter.h:47
catapult::validators::NotificationValidatorAdapter::m_pValidator
NotificationValidatorPointer m_pValidator
Definition: NotificationValidatorAdapter.h:46
catapult::validators::NotificationValidatorAdapter
Definition: NotificationValidatorAdapter.h:31
NotificationValidatorAdapter.h
catapult::model::WeakEntityInfoT
Wrapper around a strongly typed entity and its associated metadata.
Definition: WeakEntityInfo.h:33
catapult::validators::EntityValidatorT
Definition: EntityValidator.h:31
TransactionPlugin.h
catapult::validators::ValidatingNotificationSubscriber
A notification subscriber that validates notifications.
Definition: ValidatingNotificationSubscriber.h:29
catapult::validators::NotificationValidatorAdapter::name
const std::string & name() const override
Gets the validator name.
Definition: NotificationValidatorAdapter.cpp:34
catapult::validators::ValidatingNotificationSubscriber::result
ValidationResult result() const
Gets the aggregate validation result.
Definition: ValidatingNotificationSubscriber.h:39
ValidatorTypes.h
catapult
Definition: AddressExtractionExtension.cpp:28
ValidatingNotificationSubscriber.h
catapult::validators::NotificationValidatorAdapter::validate
ValidationResult validate(const model::WeakEntityInfo &entityInfo) const override
Definition: NotificationValidatorAdapter.cpp:38
catapult::validators::NotificationValidatorAdapter::NotificationValidatorAdapter
NotificationValidatorAdapter(NotificationValidatorPointer &&pValidator, NotificationPublisherPointer &&pPublisher)
Creates a new adapter around pValidator and pPublisher.
Definition: NotificationValidatorAdapter.cpp:27