template<class Class>
OcaDeviceTimeManager class
Template parameters | |
---|---|
Class | - Class to wrap. |
Contents
This class template detects the methods and events defined for the class OcaDeviceTimeManager 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:
GetDeviceTimeNTP : aes70::
device:: Method Return values:
- DeviceTime : OcaUint64
SetDeviceTimeNTP : aes70::
device:: Method Arguments:
- DeviceTime : OcaUint64
GetTimeSources : aes70::
device:: Getter Return values:
- TimeSourceONos : OcaList<OcaUint32>
GetCurrentDeviceTimeSource : aes70::
device:: Getter Return values:
- TimeSourceONo : OcaUint32
SetCurrentDeviceTimeSource : aes70::
device:: Setter Arguments:
- TimeSourceONo : OcaUint32
GetDeviceTimePTP : aes70::
device:: Getter Return values:
- DeviceTime : OcaTimePTP
SetDeviceTimePTP : aes70::
device:: Setter Arguments:
- DeviceTime : OcaTimePTP
Detects the following event handlers for property changes (of type aes70::
- OnTimeSourcesChanged with property encoder OCP1::OcaList<OCP1::OcaUint32>
- OnCurrentDeviceTimeSourceChanged with property encoder OCP1::
OcaUint32 - OnDeviceTimePTPChanged with property encoder OCP1::Struct<OCP1::OcaBoolean, OCP1::OcaUint64, OCP1::OcaUint32>
From the AES70 standard:
Manager that allows controlling and monitoring a device's time-of-day clock, and that collects the device's time source objects.
- Must be instantiated once in every device that has more than one time source object. In this context, a "time source object" is an instance of OcaTimeSource or a subclass of it.
- If instantiated, object number must be 10. Note: The clock value is accessible via Get and Set methods, but has not been defined as a public property because its value is volatile and should not cause property-change events. The current value of the OcaTimeSource object designated by the CurrentDeviceTimeSource property of this Manager is known as the Device Time . The property TimeSources was added in version 2 of this class.
Base classes
-
template<class Class>class OcaManager
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>OcaDeviceTimeManager(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:: OcaDeviceTimeManager<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:: OcaDeviceTimeManager<Class>:: OcaDeviceTimeManager(TN && ... args)
Constructor which calls the constructor of Class with args forwarded.
template<classClass>
uint16_t aes70:: device:: OcaDeviceTimeManager<Class>:: get_class_version() const virtual
Returns the AES70 class version of this object.
template<classClass>
const classid& aes70:: device:: OcaDeviceTimeManager<Class>:: get_classid() const virtual
Returns the AES70 class id of this object.
template<classClass>
void aes70:: device:: OcaDeviceTimeManager<Class>:: init(aes70:: device:: device* d,
uint32_t n) virtual
Called when this object is added to a device.
template<classClass>
bool aes70:: device:: OcaDeviceTimeManager<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:: OcaDeviceTimeManager<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:: OcaDeviceTimeManager<Class>:: ClassVersion
The ClassVersion of this class according to the AES70 standard.
template<classClass>
static const classid_ tpl<3> aes70:: device:: OcaDeviceTimeManager<Class>:: ClassId
The ClassID of this class according to the AES70 standard.
template<classClass>
static const size_t aes70:: device:: OcaDeviceTimeManager<Class>:: count_events
Number of events defined in this class. This depends on which events are implemented by Class.