PLCnext API Documentation  21.0.0.35466
MessageWithArchiveNamePayload.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 
7 #pragma once
8 
9 
10 #include "Arp/System/Nm/SpecializedPayload.hpp"
11 
12 
13 namespace Arp { namespace System { namespace NmPayload { namespace NotificationLogger
14 {
15 
16 
20  : public Arp::System::Nm::SpecializedPayload<MessageWithArchiveNamePayload>
21 {
22 public:
23  using SpecializedPayload::SpecializedPayload;
24 
28  MessageWithArchiveNamePayload(const String& message, const String& archiveName);
29 
31  String GetArchiveName() const;
32 
33 private:
34  // Do not change the order of the field initialization!
35  const size_t indexArchiveName = this->AddField<String>();
36 };
37 
38 
39 }}}} // namespace Arp::System::NmPayload::NotificationLogger
Payload class for a message containing an archive name
Definition: MessageWithArchiveNamePayload.hpp:19
MessageWithArchiveNamePayload(const String &message, const String &archiveName)
Creates a payload object
Base class for custom Payload classes
Definition: SpecializedPayload.hpp:42
Root namespace for the PLCnext API
System components used by the System, Device, Plc or Io domains.
String GetArchiveName() const
Returns the Profinet station name