|
NanoOcp
Minimal AES70 / OCP.1 TCP client/server library for d&b Soundscape devices
|
#include <Ocp1Message.h>
Inheritance diagram for NanoOcp1::Ocp1Notification:
Collaboration diagram for NanoOcp1::Ocp1Notification:Public Member Functions | |
| Ocp1Notification (std::uint32_t emitterOno, std::uint16_t emitterPropertyDefLevel, std::uint16_t emitterPropertyIndex, std::uint8_t paramCount, const ByteVector ¶meterData) | |
| std::uint32_t | GetEmitterOno () const |
| ~Ocp1Notification () override=default | |
| std::uint8_t | GetParamCount () const |
| bool | MatchesObject (const Ocp1CommandDefinition *def) 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 |
Protected Attributes | |
| std::uint32_t | m_emitterOno |
| std::uint16_t | m_emitterPropertyDefLevel |
| std::uint16_t | m_emitterPropertyIndex |
| std::uint8_t | m_paramCount |
Protected Attributes inherited from NanoOcp1::Ocp1Message | |
| Ocp1Header | m_header |
| ByteVector | m_parameterData |
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) |
Static Protected Attributes inherited from NanoOcp1::Ocp1Message | |
| static std::uint32_t | m_nextHandle = 2 |
Representation of an Oca Notification message.
Definition at line 567 of file Ocp1Message.h.
|
inline |
Class constructor.
Definition at line 573 of file Ocp1Message.h.
|
overridedefault |
Class destructor.
|
inline |
Get the ONo of the object whose property changed, triggering this notification.
Definition at line 591 of file Ocp1Message.h.
References m_emitterOno.
Referenced by NanoOcp1Demo::MainComponent::OnOcp1MessageReceived().
|
inline |
Gets the number of parameters contained in this Notification.
Definition at line 606 of file Ocp1Message.h.
References m_paramCount.
|
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 409 of file Ocp1Message.cpp.
References NanoOcp1::Ocp1Header::GetMessageSize(), NanoOcp1::Ocp1Header::GetSerializedData(), m_emitterOno, m_emitterPropertyDefLevel, m_emitterPropertyIndex, NanoOcp1::Ocp1Message::m_header, and NanoOcp1::Ocp1Message::m_parameterData.
|
inline |
Helper method which matches this notification to a given object definition.
| [in] | def | Object definition to match against. |
Definition at line 617 of file Ocp1Message.h.
References m_emitterOno, m_emitterPropertyDefLevel, m_emitterPropertyIndex, NanoOcp1::Ocp1CommandDefinition::m_propertyDefLevel, NanoOcp1::Ocp1CommandDefinition::m_propertyIndex, and NanoOcp1::Ocp1CommandDefinition::m_targetOno.
Referenced by NanoOcp1Demo::MainComponent::OnOcp1MessageReceived().
|
protected |
Definition at line 629 of file Ocp1Message.h.
Referenced by GetEmitterOno(), GetSerializedData(), and MatchesObject().
|
protected |
Definition at line 630 of file Ocp1Message.h.
Referenced by GetSerializedData(), and MatchesObject().
|
protected |
Definition at line 631 of file Ocp1Message.h.
Referenced by GetSerializedData(), and MatchesObject().
|
protected |
Number of parameters contained in this Notification.
Definition at line 636 of file Ocp1Message.h.
Referenced by GetParamCount().