22 : m_source(source), m_next(0)
25 m_source->add_callback(
this);
29 Callback::~Callback() {
31 m_source->remove_callback(
this);
PTP callback accepts each complete measurement from the Source.
Callback(satcat5::ptp::Source *source)
If a source pointer is provided, call add_callback.
virtual void ptp_ready(const satcat5::ptp::Measurement &data)=0
The child class MUST override this method.
A source for ptp::Measurement events, usually a ptp::Client.
satcat5::util::List< satcat5::ptp::Callback > m_callbacks
Linked list of registered callback objects.
T * next(const T *item) const
Fetch pointer to the next item.
Define the data structure for a two-way time transfer handshake.
Define the API for generating ptp::Measurement events.
Timestamps and metadata for a two-way time-transfer handshake.