template<class Class>
OcaMediaTransportNetwork class
Template parameters | |
---|---|
Class | - Class to wrap. |
Contents
This class template detects the methods and events defined for the class OcaMediaTransportNetwork in the AES70 specification and exposes them through AES70. Note that all AES70 methods and event handlers need to be public in order to be detected.
Detects the following symbols with the corresponding detector classes:
GetMediaProtocol : aes70::
device:: Method Return values:
- Protocol : OcaNetworkMediaProtocol
GetPorts : aes70::
device:: Getter Return values:
- OcaPorts : OcaList<OcaPort>
GetPortName : aes70::
device:: Method Arguments:
- PortID : OcaPortID
Return values:
- Name : OcaString
SetPortName : aes70::
device:: Method Arguments:
- PortID : OcaPortID
- Name : OcaString
GetMaxSourceConnectors : aes70::
device:: Getter Return values:
- MaxSourceConnectors : OcaUint16
GetMaxSinkConnectors : aes70::
device:: Getter Return values:
- MaxSinkConnectors : OcaUint16
GetMaxPinsPerConnector : aes70::
device:: Getter Return values:
- MaxPins : OcaUint16
GetMaxPortsPerPin : aes70::
device:: Getter Return values:
- MaxPins : OcaUint16
GetSourceConnectors : aes70::
device:: Getter Return values:
- Connectors : OcaList<OcaMediaSourceConnector>
GetSourceConnector : aes70::
device:: Method Arguments:
- ID : OcaUint16
Return values:
- Connector : OcaMediaSourceConnector
GetSinkConnectors : aes70::
device:: Getter Return values:
- Connectors : OcaList<OcaMediaSinkConnector>
GetSinkConnector : aes70::
device:: Method Arguments:
- ID : OcaUint16
Return values:
- Connector : OcaMediaSinkConnector
GetConnectorsStatuses : aes70::
device:: Method Return values:
- Statuses : OcaList<OcaMediaConnectorStatus>
GetConnectorStatus : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
Return values:
- Status : OcaMediaConnectorStatus
AddSourceConnector : aes70::
device:: Method Arguments:
- Connector : OcaMediaSourceConnector
- InitialStatus : OcaMediaConnectorState
Return values:
- Connector_ : OcaMediaSourceConnector
AddSinkConnector : aes70::
device:: Method Arguments:
- InitialStatus : OcaMediaConnectorStatus
- Connector : OcaMediaSinkConnector
Return values:
- Connector_ : OcaMediaSinkConnector
ControlConnector : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- Command : OcaMediaConnectorCommand
SetSourceConnectorPinMap : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- ChannelPinMap : OcaMap<OcaUint16, OcaPortID>
SetSinkConnectorPinMap : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- ChannelPinMap : OcaMultiMap<OcaUint16, OcaPortID>
SetConnectorConnection : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- Connection : OcaMediaConnection
SetConnectorCoding : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- Coding : OcaMediaCoding
SetConnectorAlignmentLevel : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- Level : OcaFloat32
SetConnectorAlignmentGain : aes70::
device:: Method Arguments:
- ConnectorID : OcaUint16
- Gain : OcaFloat32
DeleteConnector : aes70::
device:: Method Arguments:
- ID : OcaUint16
GetAlignmentLevel : aes70::
device:: Getter Return values:
- Level : OcaFloat32
- MinLevel : OcaFloat32
- MaxLevel : OcaFloat32
GetAlignmentGain : aes70::
device:: Getter Return values:
- Gain : OcaFloat32
- minGain : OcaFloat32
- maxGain : OcaFloat32
Detects the following event handlers:
- OnSourceConnectorChanged with arguments:
- OcaMediaSourceConnector : OCP1::
Struct<OCP1:: OcaUint16, OCP1:: OcaString, OCP1::Struct<OCP1::OcaBoolean, OCP1::OcaBlob, OCP1::OcaUint8, OCP1::OcaUint16>, OCP1:: OcaList<OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>, OCP1:: OcaUint16, OCP1:: OcaMap<OCP1:: OcaUint16, OCP1::Struct<OCP1::OcaUint8, OCP1::OcaUint16>>, OCP1:: OcaFloat32, OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>> - OcaPropertyChangeType : OCP1::
OcaUint8 - OcaMediaConnectorElement : OCP1::OcaBitSet<5>
- OcaMediaSourceConnector : OCP1::
- OnSinkConnectorChanged with arguments:
- OcaMediaSinkConnector : OCP1::
Struct<OCP1:: OcaUint16, OCP1:: OcaString, OCP1::Struct<OCP1::OcaBoolean, OCP1::OcaBlob, OCP1::OcaUint8, OCP1::OcaUint16>, OCP1:: OcaList<OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>, OCP1:: OcaUint16, OCP1:: OcaMultiMap<OCP1:: OcaUint16, OCP1::Struct<OCP1::OcaUint8, OCP1::OcaUint16>>, OCP1:: OcaFloat32, OCP1:: OcaFloat32, OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>> - OcaPropertyChangeType : OCP1::
OcaUint8 - OcaMediaConnectorElement : OCP1::OcaBitSet<5>
- OcaMediaSinkConnector : OCP1::
- OnConnectorStatusChanged with arguments:
- OcaMediaConnectorStatus : OCP1::Struct<OCP1::OcaUint16, OCP1::OcaUint8, OCP1::OcaUint16>
Detects the following event handlers for property changes (of type aes70::
- OnProtocolChanged with property encoder OCP1::
OcaUint8 - OnPortsChanged with property encoder OCP1::
OcaList<OCP1:: Struct<OCP1:: OcaUint32, OCP1::Struct<OCP1::OcaUint8, OCP1::OcaUint16>, OCP1:: OcaString>> - OnMaxSourceConnectorsChanged with property encoder OCP1::
OcaUint16 - OnMaxSinkConnectorsChanged with property encoder OCP1::
OcaUint16 - OnMaxPinsPerConnectorChanged with property encoder OCP1::
OcaUint16 - OnMaxPortsPerPinChanged with property encoder OCP1::
OcaUint16 - OnAlignmentLevelChanged with property encoder OCP1::
OcaFloat32 - OnAlignmentGainChanged with property encoder OCP1::
OcaFloat32 - OnSinkConnectorsChanged with property encoder OCP1::
OcaList<OCP1:: Struct<OCP1:: OcaUint16, OCP1:: OcaString, OCP1::Struct<OCP1::OcaBoolean, OCP1::OcaBlob, OCP1::OcaUint8, OCP1::OcaUint16>, OCP1:: OcaList<OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>, OCP1:: OcaUint16, OCP1:: OcaMultiMap<OCP1:: OcaUint16, OCP1::Struct<OCP1::OcaUint8, OCP1::OcaUint16>>, OCP1:: OcaFloat32, OCP1:: OcaFloat32, OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>> - OnSourceConnectorsChanged with property encoder OCP1::
OcaList<OCP1:: Struct<OCP1:: OcaUint16, OCP1:: OcaString, OCP1::Struct<OCP1::OcaBoolean, OCP1::OcaBlob, OCP1::OcaUint8, OCP1::OcaUint16>, OCP1:: OcaList<OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>, OCP1:: OcaUint16, OCP1:: OcaMap<OCP1:: OcaUint16, OCP1::Struct<OCP1::OcaUint8, OCP1::OcaUint16>>, OCP1:: OcaFloat32, OCP1::Struct<OCP1::OcaUint16, OCP1::OcaString, OCP1::OcaUint32>>>
Base classes
-
template<class Class>class OcaApplicationNetwork
Public static variables
- static const OcaClassVersionNumber ClassVersion
-
static const classid_
tpl<3> ClassId - static const size_t count_events
Public static functions
- static auto get_event_index(OcaEventID id, size_t index) -> AES70_ALWAYS_INLINE ptrdiff_t
Constructors, destructors, conversion operators
-
template<typename ... TN>OcaMediaTransportNetwork(TN && ... args)
Public functions
- auto get_class_version() const -> uint16_t virtual
- auto get_classid() const -> const classid& virtual
-
void init(aes70::
device:: device* d, uint32_t n) virtual -
auto call(const OcaMethodID id,
const uint8_t* src,
const uint8_t* src_end,
uint8_t parameterCount,
const aes70::
response_generator& response) -> bool virtual - auto get_event_index(const OcaEventID OcaEventID) const -> ptrdiff_t virtual
Function documentation
template<classClass>
static AES70_ALWAYS_INLINE ptrdiff_t aes70:: device:: OcaMediaTransportNetwork<Class>:: get_event_index(OcaEventID id,
size_t index)
Internal class for finding the event index of a given EventID. Returns -1 if the given event is not defined.
template<classClass>
template<typename ... TN>
aes70:: device:: OcaMediaTransportNetwork<Class>:: OcaMediaTransportNetwork(TN && ... args)
Constructor which calls the constructor of Class with args forwarded.
template<classClass>
uint16_t aes70:: device:: OcaMediaTransportNetwork<Class>:: get_class_version() const virtual
Returns the AES70 class version of this object.
template<classClass>
const classid& aes70:: device:: OcaMediaTransportNetwork<Class>:: get_classid() const virtual
Returns the AES70 class id of this object.
template<classClass>
void aes70:: device:: OcaMediaTransportNetwork<Class>:: init(aes70:: device:: device* d,
uint32_t n) virtual
Called when this object is added to a device.
template<classClass>
bool aes70:: device:: OcaMediaTransportNetwork<Class>:: call(const OcaMethodID id,
const uint8_t* src,
const uint8_t* src_end,
uint8_t parameterCount,
const aes70:: response_generator& response) virtual
Internal method used to call AES70 methods in this object.
template<classClass>
ptrdiff_t aes70:: device:: OcaMediaTransportNetwork<Class>:: get_event_index(const OcaEventID OcaEventID) const virtual
Returns the index of a given event. The idea is that all events defined on a aes70 class can be enumerated. For events which this object does not implement, the value -1 is returned.
Variable documentation
template<classClass>
static const OcaClassVersionNumber aes70:: device:: OcaMediaTransportNetwork<Class>:: ClassVersion
The ClassVersion of this class according to the AES70 standard.
template<classClass>
static const classid_ tpl<3> aes70:: device:: OcaMediaTransportNetwork<Class>:: ClassId
The ClassID of this class according to the AES70 standard.
template<classClass>
static const size_t aes70:: device:: OcaMediaTransportNetwork<Class>:: count_events
Number of events defined in this class. This depends on which events are implemented by Class.