OcaMediaClock3#
This document describes the device side implementation of OcaMediaClock3. This class is documented in the AES70 standard as:
A media clock, internal or external. OCA Connection Management 3 (OCA-CM3) version.
Overview#
- ClassID: 1.2.15
- Header:
aes70/device/OcaMediaClock3.hpp
- Namespace:
aes70::device
- Inheritance: aes70::device::OcaAgent, aes70::device::OcaRoot, aes70::device::object
Class Declaration#
The device side implementation has the following signature.
namespace aes70::device
{
template <class Implementation>
class OcaMediaClock3 : public OcaAgent<Implementation>
{
};
}
The template argument Implementation
may implement the following methods.
Note
The signatures given here are just one possibility and that most methods are optional. Implement only those methods which make sense in the context of your device. See the documentation in Implementing AES70 Classes for more details.
class MyOcaMediaClock3Implementation
{
// Methods defined by OcaMediaClock3
OcaMediaClockAvailability GetAvailability();
void SetAvailability(OcaMediaClockAvailability Availability);
std::tuple<OcaMediaClockRate,OcaONo> GetCurrentRate();
void SetCurrentRate(OcaMediaClockRate Rate, OcaONo TimeSourceONo);
OcaTime GetOffset();
void SetOffset(OcaTime Offset);
OcaMap<OcaONo, OcaList<OcaMediaClockRate>> GetSupportedRates();
// Methods defined by OcaAgent
OcaString GetLabel();
void SetLabel(OcaString Label);
OcaONo GetOwner();
std::tuple<OcaRolePath,OcaONoPath> GetPath();
// Methods defined by OcaRoot
OcaBoolean GetLockable();
void SetLockNoReadWrite();
void Unlock();
OcaString GetRole();
void SetLockNoWrite();
OcaLockState GetLockState();
};