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;
    63     Severity severity = Severity::Default;
    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();
 String ToString(void) const
Gets a reasonable string representation of this exception.
 
void Dispose() noexcept
Unregisters the Notification and release all resources
Definition: NotificationRegistrationBase.hpp:78
 
virtual NotificationNameIdType GetNotificationNameId() const =0
Returns the notification name id
 
Definition: Loggable.hxx:18
 
Severity
Enumeration of Severities for notifications
Definition: Severity.hpp:15
 
Root namespace for the PLCnext API
 
Base class with common behavior of NotificationRegistration and NonBlockingNotificationRegistration
Definition: NotificationRegistrationBase.hpp:19
 
PayloadTypeIdType GetPayloadTypeId() const
Returns the PayloadTypeId
Definition: NotificationRegistrationBase.hpp:119
 
Severity GetSeverity() const
Returns the Severity
Definition: NotificationRegistrationBase.hpp:112
 
const String GetNotificationName() const
Returns the notification name
Definition: NotificationRegistrationBase.hpp:98
 
System components used by the System, Device, Plc or Io domains.
 
This is the base class of all Arp exception classes.
Definition: Exception.hpp:15
 
const String GetSenderName() const
Returns the sender name
Definition: NotificationRegistrationBase.hpp:105