ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Public Attributes | List of all members
StreamDescriptor Class Reference

Descriptor for a single stream coming off a channel. More...

#include <StreamDescriptor.h>

Collaboration diagram for StreamDescriptor:
Collaboration graph
[legend]

Public Member Functions

 StreamDescriptor (InstrumentChannel *channel, size_t stream=0)
 
bool IsOutOfRange ()
 
 operator bool () const
 
std::string GetName () const
 
Unit GetXAxisUnits ()
 
Unit GetYAxisUnits ()
 
WaveformBaseGetData () const
 
bool operator== (const StreamDescriptor &rhs) const
 
bool operator!= (const StreamDescriptor &rhs) const
 
bool operator< (const StreamDescriptor &rhs) const
 
uint8_t GetFlags () const
 
float GetVoltageRange ()
 
float GetOffset ()
 
void SetVoltageRange (float v)
 
void SetOffset (float v)
 
Stream::StreamType GetType ()
 Get the type of stream (if connected). Returns STREAM_TYPE_ANALOG if null.
 
float GetScalarValue ()
 

Public Attributes

InstrumentChannelm_channel
 
size_t m_stream
 

Detailed Description

Descriptor for a single stream coming off a channel.

Member Function Documentation

◆ IsOutOfRange()

bool StreamDescriptor::IsOutOfRange ( )
inline
Returns
True if this is an invalid stream (index greater than the highest allowed value)

The documentation for this class was generated from the following files: