PLCnext API Documentation 24.0.0.71
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
Arp::System::NmPayload::Device::EthernetLinkStatePayload Class Reference

Payload class for changes of the link state of an Ethernet port More...

#include <EthernetLinkStatePayload.hpp>

Inheritance diagram for Arp::System::NmPayload::Device::EthernetLinkStatePayload:
Inheritance graph

Public Types

using ArgumentsType = std::tuple< uint32, uint32, EthernetLinkState >
 ArgumentsType to be used with NonBlockingNotificationRegistration3
 
- Public Types inherited from Arp::System::Nm::SpecializedPayload< EthernetLinkStatePayload >
using ValueType = RawPayloadType::value_type
 
using FieldType = Arp::System::Rsc::Services::RscType
 

Public Member Functions

 EthernetLinkStatePayload (const ArgumentsType &args)
 Creates a payload object
 
 EthernetLinkStatePayload (uint32 interface, uint32 port, EthernetLinkState state)
 Creates a payload object More...
 
uint32 GetInterface () const
 Returns the id of interface
 
uint32 GetPort () const
 Returns the id of the port
 
EthernetLinkState GetState () const
 Returns the state of the interface
 
- Public Member Functions inherited from Arp::System::Nm::SpecializedPayload< EthernetLinkStatePayload >
 SpecializedPayload (const Notification &notification)
 Creates a view on a Notification object More...
 
 SpecializedPayload (const GenericPayload &payloadArg)
 Creates a view on a GenericPayload object More...
 
PayloadTypeIdType GetId () const final
 Returns the PayloadTypeId More...
 
const String GetName () const final
 Returns the PayloadTypeName More...
 
const RawPayloadTypeGetAsRawPayloadType () const final
 Returns a reference to the raw payload object More...
 
const String ToString () const override
 Get a human readable string representation More...
 
RawPayloadType && MoveOutRawPayload ()
 
bool IsReadOnly () const
 Returns true if this object is a view on a Payload
 
virtual PayloadTypeIdType GetId () const =0
 Returns the PayloadTypeId More...
 
virtual const String GetName () const =0
 Returns the PayloadTypeName More...
 
virtual const RawPayloadTypeGetAsRawPayloadType () const =0
 Returns a reference to the raw payload object More...
 
virtual const String ToString () const =0
 Get a human readable string representation More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Arp::System::Nm::SpecializedPayload< EthernetLinkStatePayload >
static PayloadTypeIdType GetPayloadTypeId ()
 Returns the PayloadTypeId More...
 
static const String GetPayloadTypeName ()
 Returns the PayloadType name More...
 
- Protected Member Functions inherited from Arp::System::Nm::SpecializedPayload< EthernetLinkStatePayload >
 SpecializedPayload (const String &formatString)
 Creates a SpecializedPayload with an format string More...
 
void SetFormatString (const String &formatString)
 summary>Retuns the index in the format string for a given payload field More...
 
size_t AddField ()
 Adds a payload field More...
 
size_t AddField ()
 Adds a payload field More...
 
void SetFieldValue (size_t fieldIndex, const T &value)
 Sets the value of a payload field More...
 
void SetFieldValue (size_t fieldIndex, T value)
 Sets the value of a payload field More...
 
const T GetFieldValueAs (size_t fieldIndex) const
 Gets a field value with the specified type More...
 
const T GetFieldValueAs (size_t fieldIndex) const
 Gets a field value with the specified type More...
 
size_t GetFieldCount () const
 Gets the number of fields in the payload More...
 
- Static Protected Member Functions inherited from Arp::System::Nm::SpecializedPayload< EthernetLinkStatePayload >
static size_t FieldIndexToFormatStringIndex (size_t fieldIndex)
 

Detailed Description

Payload class for changes of the link state of an Ethernet port

This class is used by the device interface to notify of link state changes.

Constructor & Destructor Documentation

◆ EthernetLinkStatePayload()

Arp::System::NmPayload::Device::EthernetLinkStatePayload::EthernetLinkStatePayload ( uint32  interface,
uint32  port,
EthernetLinkState  state 
)

Creates a payload object

Parameters
interfaceid of the interface
portid of the port
statestate of the interface (Up, Down)

The documentation for this class was generated from the following file: