LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
DataTypeDescriptor Class Reference

Descriptor for data types containing more detailed information. More...

#include <lasp_daqconfig.h>

Collaboration diagram for DataTypeDescriptor:

Public Types

enum class  DataType {
  dtype_fl32 = 0 , dtype_fl64 = 1 , dtype_int8 = 2 , dtype_int16 = 3 ,
  dtype_int32 = 4
}
 Basic data types coming from a DAQ that we can deal with. The naming will be self-explainging. More...
 

Public Member Functions

 operator DataType ()
 Down-cast a DataTypeDescriptor to a datatype.
 
bool operator== (const DataTypeDescriptor &o) noexcept
 Compare two data type descriptors. Returns true if the DataType enumerator is the same.
 

Public Attributes

string name
 Name of the datatype.
 
unsigned sw
 Sample width of a single sample, in bytes.
 
bool is_floating
 Whether the datatype is a floating point Y/N.
 
DataType dtype
 The number from the enumeration.
 

Detailed Description

Descriptor for data types containing more detailed information.

Definition at line 21 of file lasp_daqconfig.h.

Member Enumeration Documentation

◆ DataType

enum class DataTypeDescriptor::DataType
strong

Basic data types coming from a DAQ that we can deal with. The naming will be self-explainging.

Enumerator
dtype_fl32 
dtype_fl64 
dtype_int8 
dtype_int16 
dtype_int32 

Definition at line 27 of file lasp_daqconfig.h.

Member Function Documentation

◆ operator DataType()

DataTypeDescriptor::operator DataType ( )
inline

Down-cast a DataTypeDescriptor to a datatype.

Returns
The descriptor as an enum

Definition at line 58 of file lasp_daqconfig.h.

◆ operator==()

bool DataTypeDescriptor::operator== ( const DataTypeDescriptor o)
inlinenoexcept

Compare two data type descriptors. Returns true if the DataType enumerator is the same.

Parameters
o
Returns

Definition at line 68 of file lasp_daqconfig.h.

Member Data Documentation

◆ dtype

DataType DataTypeDescriptor::dtype

The number from the enumeration.

Definition at line 51 of file lasp_daqconfig.h.

◆ is_floating

bool DataTypeDescriptor::is_floating

Whether the datatype is a floating point Y/N.

Definition at line 46 of file lasp_daqconfig.h.

◆ name

string DataTypeDescriptor::name

Name of the datatype.

Definition at line 38 of file lasp_daqconfig.h.

◆ sw

unsigned DataTypeDescriptor::sw

Sample width of a single sample, in bytes.

Definition at line 42 of file lasp_daqconfig.h.


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