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.
void notify_callbacks(const satcat5::ptp::Measurement &meas)
Notify all Callback objects of a new Measurement.
satcat5::util::List< satcat5::ptp::Callback > m_callbacks
Linked list of registered callback objects.
Helper functions for manipulating singly-linked lists.
void add(T *item)
Add new item to front or back, whichever is simpler.
void remove(T *item)
Remove the designated item from the list.
Templated functions for manipulating singly-linked lists.
Timestamps and metadata for a two-way time-transfer handshake.
Basic type aliases and prototypes used throughout SatCat5.