#include <AI16_DataSet.hpp>
Public Member Functions | |
virtual | ~AI16_DataSet () |
AnalogInputSubsystem & | getSubsystem () |
const AI16_DataPointArray & | getPoints () |
long | getTimeStamp () |
int | getCalMode () |
int | getTriggerMode () |
int | getOverSample () |
bool | isDiscardFirstSample () |
std::ostream & | print (std::ostream &out) |
Protected Member Functions | |
AI16_DataSet (AnalogInputSubsystem &subsystem, int numPoints, long timeStamp, int calMode, int triggerMode, int overSample, bool discardFirstSample) | |
Protected Attributes | |
AnalogInputSubsystem * | subsystem |
AI16_DataPointArray | points |
long | timeStamp |
int | calMode |
int | triggerMode |
int | overSample |
bool | discardFirstSample |
Friends | |
class | AnalogInputSubsystem |
AIOUSB::AI16_DataSet::AI16_DataSet | ( | AnalogInputSubsystem & | subsystem, | |
int | numPoints, | |||
long | timeStamp, | |||
int | calMode, | |||
int | triggerMode, | |||
int | overSample, | |||
bool | discardFirstSample | |||
) | [protected] |
AIOUSB::AI16_DataSet::~AI16_DataSet | ( | ) | [virtual] |
Destructor for data set. Data sets returned by methods such as AnalogInputSubsystem::read() must be explicitly destroyed.
int AIOUSB::AI16_DataSet::getCalMode | ( | ) | [inline] |
Gets the calibration mode that was in effect when this data set was captured.
int AIOUSB::AI16_DataSet::getOverSample | ( | ) | [inline] |
Gets the over-sample setting that was in effect when this data set was captured.
const AI16_DataPointArray& AIOUSB::AI16_DataSet::getPoints | ( | ) | [inline] |
Gets the data point array from this data set.
AnalogInputSubsystem& AIOUSB::AI16_DataSet::getSubsystem | ( | ) | [inline] |
Gets the subsystem from which this data set was obtained.
long AIOUSB::AI16_DataSet::getTimeStamp | ( | ) | [inline] |
Gets the approximate time stamp when this data set was captured. The system time (obtained from time()) is recorded immediately prior to the sampling of the data, so it approximately represents the time when the data capture started. This property is not intended to be precise, but merely to serve as a convenient reference.
int AIOUSB::AI16_DataSet::getTriggerMode | ( | ) | [inline] |
Gets the trigger mode that was in effect when this data set was captured.
bool AIOUSB::AI16_DataSet::isDiscardFirstSample | ( | ) | [inline] |
Gets the sample discard mode that was in effect when this data set was captured.
std::ostream & AIOUSB::AI16_DataSet::print | ( | std::ostream & | out | ) |
Prints this data set. Mainly useful for diagnostic purposes.
out | the print stream where the data set will be printed. |
friend class AnalogInputSubsystem [friend] |
int AIOUSB::AI16_DataSet::calMode [protected] |
bool AIOUSB::AI16_DataSet::discardFirstSample [protected] |
int AIOUSB::AI16_DataSet::overSample [protected] |
AI16_DataPointArray AIOUSB::AI16_DataSet::points [protected] |
AnalogInputSubsystem* AIOUSB::AI16_DataSet::subsystem [protected] |
long AIOUSB::AI16_DataSet::timeStamp [protected] |
int AIOUSB::AI16_DataSet::triggerMode [protected] |