LASP 1.0
Library for Acoustic Signal Processing
|
Descriptor for data types containing more detailed information. More...
#include <lasp_daqconfig.h>
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. | |
Descriptor for data types containing more detailed information.
Definition at line 21 of file lasp_daqconfig.h.
|
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.
|
inline |
Down-cast a DataTypeDescriptor to a datatype.
Definition at line 58 of file lasp_daqconfig.h.
|
inlinenoexcept |
Compare two data type descriptors. Returns true if the DataType enumerator is the same.
o |
Definition at line 68 of file lasp_daqconfig.h.
DataType DataTypeDescriptor::dtype |
The number from the enumeration.
Definition at line 51 of file lasp_daqconfig.h.
bool DataTypeDescriptor::is_floating |
Whether the datatype is a floating point Y/N.
Definition at line 46 of file lasp_daqconfig.h.
string DataTypeDescriptor::name |
Name of the datatype.
Definition at line 38 of file lasp_daqconfig.h.
unsigned DataTypeDescriptor::sw |
Sample width of a single sample, in bytes.
Definition at line 42 of file lasp_daqconfig.h.