10 #include "Arp/System/Commons/Diagnostics/Logging/Loggable.hxx"
12 namespace Arp {
namespace System {
namespace Nm
18 template<
class Derived>
21 NotificationRegistrationBase<Derived >>
58 virtual
void DisposeImpl() = 0;
67 template<class Derived>
70 : NotificationName(
std::move(notificationName)),
71 SenderName(
std::move(senderName)),
72 severity(
std::move(severity))
77 template<
class Derived>
86 this->log.Error(
"Caught exception while unregistering notificationName={}: {}",
87 this->NotificationName, e.
ToString());
92 "Caught exception while unregistering notificationName={}", this->NotificationName);
97 template<
class Derived>
100 return this->NotificationName;
104 template<
class Derived>
107 return this->SenderName;
111 template<
class Derived>
114 return this->severity;
118 template<
class Derived>
121 return Derived::payload_type::GetPayloadTypeId();
This is the base class of all Arp exception classes.
Definition: Exception.hpp:16
String ToString(void) const
Gets a reasonable string representation of this exception.
Definition: Loggable.hxx:19
Base class with common behavior of NotificationRegistration and NonBlockingNotificationRegistration
Definition: NotificationRegistrationBase.hpp:22
const String GetSenderName() const
Returns the sender name
Definition: NotificationRegistrationBase.hpp:105
Severity GetSeverity() const
Returns the Severity
Definition: NotificationRegistrationBase.hpp:112
PayloadTypeIdType GetPayloadTypeId() const
Returns the PayloadTypeId
Definition: NotificationRegistrationBase.hpp:119
virtual NotificationNameIdType GetNotificationNameId() const =0
Returns the notification name id
const String GetNotificationName() const
Returns the notification name
Definition: NotificationRegistrationBase.hpp:98
void Dispose() noexcept
Unregisters the Notification and release all resources
Definition: NotificationRegistrationBase.hpp:78
@ System
System components used by the System, Device, Plc or Io domains.
Severity
Enumeration of Severities for notifications
Definition: Severity.hpp:15
Root namespace for the PLCnext API
Namespace of the C++ standard library