Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
DataSample Class Reference

Single data sample read from the oscilloscope: it holds all the track ( values() ) returned at a specific time() More...

#include <oscilloscope.h>

Classes

class  PtrVector
 Class to handle with lists of DataSample pointers. More...
 

Public Types

typedef DataSamplepDataSample
 

Public Member Functions

 DataSample ()
 The default constructor.
 
 DataSample (const DataSample &src)
 The copy constructor.
 
virtual ~DataSample ()
 Class destructor.
 
double time () const
 Get the sample reference time (uSec)
 
void setTime (double value)
 Set the sample reference time (uSec)
 
FloatVector & values ()
 
void setValues (const FloatVector &value)
 

Static Public Attributes

static const int MAX_TRACK = 24
 The manimum number of tracks stored.
 

Protected Member Functions

void copyFrom (const DataSample &src)
 Make a copy from the src object.
 

Detailed Description

Single data sample read from the oscilloscope: it holds all the track ( values() ) returned at a specific time()

Member Typedef Documentation

◆ pDataSample

Constructor & Destructor Documentation

◆ DataSample() [1/2]

The default constructor.

◆ DataSample() [2/2]

DataSample ( const DataSample & src)

The copy constructor.

Parameters
srcThe source item to copy data from

◆ ~DataSample()

virtual ~DataSample ( )
virtual

Class destructor.

Member Function Documentation

◆ copyFrom()

void copyFrom ( const DataSample & src)
protected

Make a copy from the src object.

Parameters
srcThe object to copy

◆ setTime()

void setTime ( double value)

Set the sample reference time (uSec)

Parameters
valueThe value to set

◆ setValues()

void setValues ( const FloatVector & value)

◆ time()

double time ( ) const

Get the sample reference time (uSec)

Returns
The parameter value

◆ values()

FloatVector & values ( )

Member Data Documentation

◆ MAX_TRACK

const int MAX_TRACK = 24
static

The manimum number of tracks stored.