1 #ifndef CARMA_MONITOR_SUBSYSTEMFRAME_BUFFER_H
2 #define CARMA_MONITOR_SUBSYSTEMFRAME_BUFFER_H
22 class MonitorPointSample;
26 MONITOR_NOT_WRITTEN = -1,
27 MONITOR_WRITTEN_ONCE = 0,
28 MONITOR_WRITTEN_AGAIN = 1
50 static const int kDefaultQueueDepth;
57 void write (
bool force =
false) ;
61 bool readNewestConditionalCopy();
80 long maxMonitorPoints,
145 void decrementCleanSamples( );
167 const ::std::string & fname,
168 long maxMonitorPoints,
175 ::std::auto_ptr< InternalIpq > ipq_;
177 int numCleanSamples_;
Frame containing monitor points for a monitor subsystem, and mapped to an IPQ - essentially a Subsyst...
Class representing a data sample for a MonitorPoint.
bool isDirty() const
Returns true if local copy contains data that differs from data in IPQ - in other words...
bool isComplete() const
Returns true if numCleanSamples_ == 0.
static SubsystemFrameBuffer & getSubsystemFrameBuffer(long subsystemID, long maxMonitorPoints, long maxSamples)
Factory method for producing a SubsystemFrameBuffer object.
virtual WriteStatus writeSampleValue(const tagIDType tagID, const MonitorPointSample &value)
Writes specified sample value 'value' into this subsystem frame as sample with sample number 'iSample...
Class wrapper for monitor subsystem frame structure that manages storage for a monitor subsystem fram...
Frame containing monitor points for a monitor subsystem frame.
~SubsystemFrameBuffer()
Destructor.