|
NanoOcp
Minimal AES70 / OCP.1 TCP client/server library for d&b Soundscape devices
|
#include <Ocp1Message.h>
Inheritance diagram for NanoOcp1::Ocp1KeepAlive:
Collaboration diagram for NanoOcp1::Ocp1KeepAlive:Public Member Functions | |
| Ocp1KeepAlive (std::uint16_t heartBeatSeconds) | |
| Ocp1KeepAlive (std::uint32_t heartBeatMilliseconds) | |
| ~Ocp1KeepAlive () override=default | |
| std::uint16_t | GetHeartBeatSeconds () const |
| std::uint32_t | GetHeartBeatMilliseconds () const |
| ByteVector | GetSerializedData () override |
Public Member Functions inherited from NanoOcp1::Ocp1Message | |
| Ocp1Message (std::uint8_t msgType, const ByteVector ¶meterData) | |
| virtual | ~Ocp1Message ()=default |
| std::uint8_t | GetMessageType () const |
| ByteVector | GetParameterData () const |
Additional Inherited Members | |
Public Types inherited from NanoOcp1::Ocp1Message | |
| enum | MessageType { Command = 0 , CommandResponseRequired = 1 , Notification = 2 , Response = 3 , KeepAlive = 4 } |
| OCP.1 message type codes as defined in AES70. More... | |
Static Public Member Functions inherited from NanoOcp1::Ocp1Message | |
| static std::unique_ptr< Ocp1Message > | UnmarshalOcp1Message (const ByteVector &receivedData) |
Protected Attributes inherited from NanoOcp1::Ocp1Message | |
| Ocp1Header | m_header |
| ByteVector | m_parameterData |
Static Protected Attributes inherited from NanoOcp1::Ocp1Message | |
| static std::uint32_t | m_nextHandle = 2 |
Representation of an Oca KeepAlive message.
Definition at line 643 of file Ocp1Message.h.
| NanoOcp1::Ocp1KeepAlive::Ocp1KeepAlive | ( | std::uint16_t | heartBeatSeconds | ) |
Class constructor for initialization with a 16bit seconds value.
Definition at line 462 of file Ocp1Message.cpp.
| NanoOcp1::Ocp1KeepAlive::Ocp1KeepAlive | ( | std::uint32_t | heartBeatMilliseconds | ) |
Class constructor for initialization with a 32bit milliseconds value.
Definition at line 468 of file Ocp1Message.cpp.
|
overridedefault |
Class destructor.
| std::uint32_t NanoOcp1::Ocp1KeepAlive::GetHeartBeatMilliseconds | ( | ) | const |
Get this KeepAlive message's heartbeat time.
Definition at line 484 of file Ocp1Message.cpp.
References NanoOcp1::DataToUint32(), and NanoOcp1::Ocp1Message::m_parameterData.
| std::uint16_t NanoOcp1::Ocp1KeepAlive::GetHeartBeatSeconds | ( | ) | const |
Get this KeepAlive message's heartbeat time.
Definition at line 474 of file Ocp1Message.cpp.
References NanoOcp1::DataToUint16(), and NanoOcp1::Ocp1Message::m_parameterData.
|
overridevirtual |
Returns a vector of bytes representing the binary contents of the complete message. Must be reimplemented for each message type.
Implements NanoOcp1::Ocp1Message.
Definition at line 494 of file Ocp1Message.cpp.
References NanoOcp1::Ocp1Header::GetSerializedData(), NanoOcp1::Ocp1Message::m_header, and NanoOcp1::Ocp1Message::m_parameterData.