mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-04-08 00:05:40 +02:00
24 lines
370 B
C++
24 lines
370 B
C++
#pragma once
|
|
#include "block.h"
|
|
|
|
namespace dsp {
|
|
template <class T>
|
|
class Source : public block {
|
|
public:
|
|
Source() {}
|
|
|
|
Source() { init(); }
|
|
|
|
virtual ~Source() {}
|
|
|
|
virtual void init() {
|
|
registerOutput(&out);
|
|
_block_init = true;
|
|
}
|
|
|
|
virtual int run() = 0;
|
|
|
|
stream<T> out;
|
|
};
|
|
}
|