|
PLCnext API Documentation 25.6.0.37
|
Contains meta data and paylod of a Notification More...
#include <Notification.hpp>

Public Member Functions | |
| Notification ()=default | |
| Creates an empty Notification | |
| Notification (NotificationIdType id, NotificationNameIdType notificationNameId, const DateTime ×tamp, Severity severity, PayloadTypeIdType payloadTypeId, const RawPayloadType &payload) | |
| Constructor with all data More... | |
| void | Serialize (Arp::Base::Rsc::Commons::Services::RscWriter &writer) const |
| void | Deserialize (Arp::Base::Rsc::Commons::Services::RscReader &reader) |
| void | Serialize (Arp::Base::JRsc::Commons::JRscWriter &writer) const |
| void | Deserialize (Arp::Base::JRsc::Commons::JRscReader &reader) |
| NotificationIdType | GetId () const |
| Returns the id | |
| NotificationNameIdType | GetNotificationNameId () const |
| Returns the NotificationNameId | |
| DateTime | GetTimestamp () const |
| Returns the timestamp | |
| Severity | GetSeverity () const |
| Returns the Severity | |
| PayloadTypeIdType | GetPayloadTypeId () const |
| Returns the PayloadTypeId | |
| const RawPayloadType & | GetPayload () const |
| Returns a reference to the raw payload | |
| template<typename PayloadType > | |
| const PayloadType | GetPayloadAs () const |
| Returns a view to the Payload using the defined PayloadType More... | |
Public Member Functions inherited from Arp::Base::Rsc::Commons::RscSerializable | |
| RscSerializable (void)=default | |
| The default constructor. | |
Static Public Member Functions | |
| static size_t | GetFieldCount (void) |
Contains meta data and paylod of a Notification
| Arp::System::Nm::Notification::Notification | ( | NotificationIdType | id, |
| NotificationNameIdType | notificationNameId, | ||
| const DateTime & | timestamp, | ||
| Severity | severity, | ||
| PayloadTypeIdType | payloadTypeId, | ||
| const RawPayloadType & | payload | ||
| ) |
Constructor with all data
This function is used internally
|
inline |
Returns a view to the Payload using the defined PayloadType
Throws an exception if the PayloadType does not match the PayloadTypeId of the Notification.