|
libsdr
0.1.0
A simple SDR library
|
A collection of configuration information that is send by a source to all connected sinks to propergate and check the configuration of the processing network. More...
#include <node.hh>
Public Types | |
| enum | Type { Type_UNDEFINED = 0, Type_u8, Type_s8, Type_u16, Type_s16, Type_f32, Type_f64, Type_cu8, Type_cs8, Type_cu16, Type_cs16, Type_cf32, Type_cf64 } |
| The type IDs. More... | |
Public Member Functions | |
| Config () | |
| Empty constructor, will result into an invalid configuration. More... | |
| Config (Type type, double sampleRate, size_t bufferSize, size_t numBuffers) | |
| Constructor. More... | |
| Config (const Config &other) | |
| Copy constructor. More... | |
| const Config & | operator= (const Config &other) |
| Assignment operator. More... | |
| bool | operator== (const Config &other) const |
| Coparison operator. More... | |
| bool | hasType () const |
| If true, the configuration has a type. More... | |
| Type | type () const |
| Returns the type. More... | |
| void | setType (Type type) |
| Sets the type. More... | |
| bool | hasSampleRate () const |
| If true, the configuration has a sample rate. More... | |
| double | sampleRate () const |
| Returns the sample rate. More... | |
| void | setSampleRate (double rate) |
| Sets the sample rate. More... | |
| bool | hasBufferSize () const |
| If true, the configuration has a buffer size. More... | |
| size_t | bufferSize () const |
| Returns the max. More... | |
| void | setBufferSize (size_t size) |
| Sets the max. More... | |
| bool | hasNumBuffers () const |
| If true, the configuration has a number of buffers. More... | |
| size_t | numBuffers () const |
| Returns the max. More... | |
| void | setNumBuffers (size_t N) |
| Sets the max. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for uint8. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for int8. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for uint16. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for int16. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for float. More... | |
| template<> | |
| Config::Type | typeId () |
Type-id for double. More... | |
Static Public Member Functions | |
| template<typename T > | |
| static Type | typeId () |
| Returns the type-id of the template type. More... | |
Protected Attributes | |
| Type | _type |
| Holds the type of the source. More... | |
| double | _sampleRate |
| Holds the sample rate of the source. More... | |
| size_t | _bufferSize |
| Holds the max. More... | |
| size_t | _numBuffers |
| Holds the max. More... | |
A collection of configuration information that is send by a source to all connected sinks to propergate and check the configuration of the processing network.
| enum sdr::Config::Type |
The type IDs.
| Config::Config | ( | ) |
Empty constructor, will result into an invalid configuration.
| Config::Config | ( | Type | type, |
| double | sampleRate, | ||
| size_t | bufferSize, | ||
| size_t | numBuffers | ||
| ) |
Constructor.
| Config::Config | ( | const Config & | other | ) |
Copy constructor.
|
inline |
Returns the max.
buffer size.
|
inline |
If true, the configuration has a buffer size.
|
inline |
If true, the configuration has a number of buffers.
|
inline |
If true, the configuration has a sample rate.
|
inline |
If true, the configuration has a type.
|
inline |
Returns the max.
number of buffers.
| bool Config::operator== | ( | const Config & | other | ) | const |
Coparison operator.
|
inline |
Returns the sample rate.
|
inline |
Sets the max.
buffer size.
|
inline |
Sets the max.
number of buffers.
|
inline |
Sets the sample rate.
|
inline |
Sets the type.
|
inline |
Returns the type.
|
inlinestatic |
Returns the type-id of the template type.
|
inline |
Type-id for uint8.
|
inline |
Type-id for int8.
|
inline |
Type-id for uint16.
|
inline |
Type-id for int16.
|
inline |
Type-id for float.
|
inline |
Type-id for double.
|
protected |
Holds the max.
buffer size of the source.
|
protected |
Holds the max.
number of buffers of the source.
|
protected |
Holds the sample rate of the source.
|
protected |
Holds the type of the source.
1.8.9.1