Generic source class.
More...
#include <node.hh>
template<class T >
void sdr::Source::addEOS |
( |
T * |
instance, |
|
|
void(T::*)() |
function |
|
) |
| |
|
inline |
Adds a callback to the end-of-stream signal of the source.
void Source::connect |
( |
SinkBase * |
sink, |
|
|
bool |
direct = false |
|
) |
| |
Connect this source to a sink.
void Source::disconnect |
( |
SinkBase * |
sink | ) |
|
void Source::propagateConfig |
( |
const Config & |
config | ) |
|
|
protected |
Propagates the given configuration to all connected sinks.
double Source::sampleRate |
( |
| ) |
const |
|
virtual |
Returns the configured sample rate or 0
otherwise.
Reimplemented in sdr::RTLSource.
void Source::send |
( |
const RawBuffer & |
buffer, |
|
|
bool |
allow_overwrite = false |
|
) |
| |
|
virtual |
Sends the given buffer to all connected sinks.
void Source::setConfig |
( |
const Config & |
config | ) |
|
|
virtual |
Stores the configuration and propergates it if the configuration has been changed.
void Source::signalEOS |
( |
| ) |
|
|
protected |
Returns the configured source type or Config::Type_UNDEFINED
otherwise.
Holds the source configuration, this can be updated by calling setConfig
.
The connected EOS singal handlers.
std::map<SinkBase *, bool> sdr::Source::_sinks |
|
protected |
The documentation for this class was generated from the following files:
- /Users/hannes/Uni/Elektronik/sdr/libsdr/src/node.hh
- /Users/hannes/Uni/Elektronik/sdr/libsdr/src/node.cc