Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
Public Member Functions | List of all members
ReadData Class Reference

The data for the Oscilloscope::read(OscilloscopeStruct::ReadData &) method. More...

#include <oscilloscope.h>

Public Member Functions

 ReadData ()
 The default constructor.
 
 ReadData (const ReadData &src)
 The copy constructor.
 
virtual ~ReadData ()
 The destructor.
 
ReadDataoperator= (const ReadData &src)
 Equal operator override: performs a deep copy form src : copyFrom(ReadData& )
 
void copyFrom (ReadData &src)
 Performs a deep copy from the src object.
 
void clear ()
 Clears the storage.
 
uint32_t changeId () const
 Get the progressive Id of receive data.
 
void setChangeId (uint32_t value)
 Set the progressive Id of receive data.
 
DataSample::PtrVectorsamples ()
 Get the list of variable values.
 
void setSamples (const DataSample::PtrVector &value)
 Set the list of variable values.
 

Detailed Description

The data for the Oscilloscope::read(OscilloscopeStruct::ReadData &) method.

See also
Oscilloscope::read(OscilloscopeStruct::ReadData &)

Constructor & Destructor Documentation

◆ ReadData() [1/2]

ReadData ( )

The default constructor.

◆ ReadData() [2/2]

ReadData ( const ReadData & src)

The copy constructor.

◆ ~ReadData()

virtual ~ReadData ( )
virtual

The destructor.

Member Function Documentation

◆ changeId()

uint32_t changeId ( ) const

Get the progressive Id of receive data.

Returns
The parameter value

◆ clear()

void clear ( )

Clears the storage.

◆ copyFrom()

void copyFrom ( ReadData & src)

Performs a deep copy from the src object.

Parameters
srcThe source object to copy

◆ operator=()

ReadData & operator= ( const ReadData & src)

Equal operator override: performs a deep copy form src : copyFrom(ReadData& )

Parameters
srcThe source object
Returns
A reference to this object

◆ samples()

QList< DataSample * > & samples ( )

Get the list of variable values.

Returns
The parameter value

◆ setChangeId()

void setChangeId ( uint32_t value)

Set the progressive Id of receive data.

Parameters
valueThe value to set

◆ setSamples()

void setSamples ( const DataSample::PtrVector & value)

Set the list of variable values.

Parameters
valueThe value to set