SatCat5
satcat5::ptp::Source Class Reference

Detailed Description

A source for ptp::Measurement events, usually a ptp::Client.

To use this class, derive a child class and call notify_callbacks for each completed ptp::Measurement handshake. That method will call ptp_ready for each registered Callback object.

Definition at line 19 of file ptp_source.h.

#include <ptp_source.h>

Inheritance diagram for satcat5::ptp::Source:
[legend]
Collaboration diagram for satcat5::ptp::Source:
[legend]

Public Member Functions

void add_callback (satcat5::ptp::Callback *callback)
 
void remove_callback (satcat5::ptp::Callback *callback)
 

Protected Member Functions

void notify_callbacks (const satcat5::ptp::Measurement &meas)
 Notify all Callback objects of a new Measurement.
 

Protected Attributes

satcat5::util::List< satcat5::ptp::Callbackm_callbacks
 Linked list of registered callback objects.
 

The documentation for this class was generated from the following files: