CatapultServer  v0.5.0.1 (Elephant)
AggregateCosignersNotificationPublisher.h
Go to the documentation of this file.
1 
21 #pragma once
22 
23 namespace catapult {
24  namespace model {
25  class NotificationSubscriber;
26  class WeakCosignedTransactionInfo;
27  }
28 }
29 
30 namespace catapult { namespace chain {
31 
34  public:
36  void publish(const model::WeakCosignedTransactionInfo& transactionInfo, model::NotificationSubscriber& sub) const;
37  };
38 }}
catapult::chain::AggregateCosignersNotificationPublisher
An aggregate notification publisher that only publishes cosigner-related notifications.
Definition: AggregateCosignersNotificationPublisher.h:33
catapult::model::AggregateCosignaturesNotification
Definition: AggregateNotifications.h:100
catapult::model::WeakCosignedTransactionInfo
Wrapper around a transaction and its cosignatures.
Definition: WeakCosignedTransactionInfo.h:29
AggregateTransaction.h
WeakCosignedTransactionInfo.h
catapult::model::NotificationSubscriber
A notification subscriber.
Definition: NotificationSubscriber.h:27
AggregateCosignersNotificationPublisher.h
catapult::model::WeakCosignedTransactionInfo::transaction
const Transaction & transaction() const
Gets the transaction.
Definition: WeakCosignedTransactionInfo.h:43
NotificationSubscriber.h
catapult::model::EntityType
EntityType
Enumeration of entity types.
Definition: EntityType.h:43
catapult::model::AggregateEmbeddedTransactionNotification
Notification of an embedded aggregate transaction with cosignatures.
Definition: AggregateNotifications.h:73
catapult::chain::AggregateCosignersNotificationPublisher::publish
void publish(const model::WeakCosignedTransactionInfo &transactionInfo, model::NotificationSubscriber &sub) const
Sends all notifications from an aggregate transactionInfo to sub.
Definition: AggregateCosignersNotificationPublisher.cpp:46
catapult::model::WeakCosignedTransactionInfo::cosignatures
const std::vector< Cosignature > & cosignatures() const
Gets the cosignatures.
Definition: WeakCosignedTransactionInfo.h:48
CATAPULT_THROW_INVALID_ARGUMENT
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
catapult
Definition: AddressExtractionExtension.cpp:28
AggregateNotifications.h
catapult::model::NotificationSubscriber::notify
virtual void notify(const Notification &notification)=0
Notifies the subscriber of notification.
catapult::model::Transaction
Binary layout for a transaction.
Definition: Transaction.h:32
catapult::model::EntityBody::Type
EntityType Type
Entity type.
Definition: EntityBody.h:42