HARDT - The Ham Radio DSP Toolkit
hardt
libhardt
include
hnullreader.h
1
#ifndef __HNULLREADER_H
2
#define __HNULLREADER_H
3
4
#include <unistd.h>
5
9
template
<
class
T>
10
class
HNullReader
:
public
HReader
<T>
11
{
12
private
:
13
14
T _zero;
15
16
public
:
17
19
HNullReader
()
20
{
21
_zero = std::numeric_limits<T>::lowest();
22
}
23
25
int
Read
(T* dest,
size_t
blocksize);
26
28
bool
Command
(
HCommand
* command) {
29
// No further propagation of commands
30
return
true
;
31
}
32
};
33
34
#endif
HNullReader::HNullReader
HNullReader()
Definition:
hnullreader.h:19
HNullReader::Command
bool Command(HCommand *command)
Definition:
hnullreader.h:28
HReader
Definition:
hreader.h:24
HCommand
Definition:
hcommand.h:81
HNullReader::Read
int Read(T *dest, size_t blocksize)
Definition:
hnullreader.cpp:11
HNullReader
Definition:
hnullreader.h:10
Generated by
1.8.17