CARMA C++
|
A class that accepts named events from a Push supplier. More...
#include <carma/monitor/FrameSubscriber.h>
Public Member Functions | |
FrameSubscriber (double delayInS, bool rawMode) | |
Constructor This constructor is used if this FrameSubscriber is to use the default ORB and clean up and shut it down when this FrameSubscriber is destroyed. More... | |
void | operator() (const carma::monitor::TransportSubsystemFrame &tsf) |
Process a TransportSubsystemFrame. More... | |
void | setFirstFireTime (double firstFireTimeMJD) |
void | writeMonitorSystemToIPQ (double currentFireTimeMJD, double delayInSeconds, int clearDelayInFrames) |
Write monitor system to IPQ. More... | |
~FrameSubscriber () | |
Destructor. More... | |
Protected Member Functions | |
void | printTimes (double timestamps[], int numTimes) const |
Called by push_structured_event. More... | |
A class that accepts named events from a Push supplier.
This is the basis for event driven clients, which wish to to block on "receive" call until an event arrives and process it. NotificationConsumer provides a "callback" model, whereas FrameSubscriber provides a "block and wait for event" model.
Definition at line 81 of file FrameSubscriber.h.
carma::monitor::FrameSubscriber::FrameSubscriber | ( | double | delayInS, |
bool | rawMode | ||
) |
Constructor This constructor is used if this FrameSubscriber is to use the default ORB and clean up and shut it down when this FrameSubscriber is destroyed.
In other words, the programmer wants the ORB shutdown when this FrameSubscriber is destroyed.
delayInS | The FrameSubscriber keeps a map of monitor systems (yes, monitor systems!) so that |
rawMode | True if the monitor systems should be instances of RawMonitorSystems, false if they should be CarmaMonitorSystems. No default. |
carma::monitor::FrameSubscriber::~FrameSubscriber | ( | ) |
Destructor.
void carma::monitor::FrameSubscriber::operator() | ( | const carma::monitor::TransportSubsystemFrame & | tsf | ) |
Process a TransportSubsystemFrame.
|
protected |
Called by push_structured_event.
Prints performance data when debug (trace) is on.
timestamps | array of doubles containing timestamps recorded as doubles using carma::util::Time::MJD() |
numTimes | int representing the number of timestamps in the array timestamps |
void carma::monitor::FrameSubscriber::writeMonitorSystemToIPQ | ( | double | currentFireTimeMJD, |
double | delayInSeconds, | ||
int | clearDelayInFrames | ||
) |
Write monitor system to IPQ.