CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace subscribers {
28 template<
typename TSubscriber>
37 template<
typename TAction>
std::vector< std::unique_ptr< TSubscriber > > m_subscribers
Definition: BasicAggregateSubscriber.h:44
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
BasicAggregateSubscriber(std::vector< std::unique_ptr< TSubscriber >> &&subscribers)
Creates an aggregate subscriber around subscribers.
Definition: BasicAggregateSubscriber.h:32
uint8_t maxCosignatures
Definition: BasicAggregateCosignaturesValidator.cpp:28
for(const auto &name :reservedRootNamespaceNames) reservedRootIds.emplace(model return MAKE_STATELESS_VALIDATOR(NamespaceName,([maxNameSize, reservedRootIds](const auto ¬ification) { if(maxNameSize< notification.NameSize||!model::IsValidName(notification.NamePtr, notification.NameSize)) return Failure_Namespace_Invalid_Name;auto name=utils::RawString(reinterpret_cast< const char * >(notification.NamePtr), notification.NameSize);if(notification.NamespaceId !=model::GenerateNamespaceId(notification.ParentId, name)) return Failure_Namespace_Name_Id_Mismatch;auto namespaceId=Namespace_Base_Id==notification.ParentId ? notification.NamespaceId :notification.ParentId;if(reservedRootIds.cend() !=reservedRootIds.find(namespaceId)) return Failure_Namespace_Root_Name_Reserved;return ValidationResult::Success;}))
Definition: NamespaceNameValidator.cpp:36
void forEach(TAction action) const
Definition: BasicAggregateSubscriber.h:38
std::function< void()> action
An action function.
Definition: functions.h:27
Basic aggregate subscriber.
Definition: BasicAggregateSubscriber.h:29
DECLARE_STATELESS_VALIDATOR(MaxTransactions, Notification)(uint32_t maxTransactions)
Definition: MaxTransactionsValidator.cpp:27
ArrayPointerSet< Key > KeyPointerSet
A key pointer set.
Definition: ArraySet.h:73
Definition: AddressExtractionExtension.cpp:28
Notification of use of an account address.
Definition: Notifications.h:57