HARDT - The Ham Radio DSP Toolkit
Public Member Functions | List of all members
HNullWriter< T > Class Template Reference

#include <hnullwriter.h>

Inheritance diagram for HNullWriter< T >:
Inheritance graph
[legend]
Collaboration diagram for HNullWriter< T >:
Collaboration graph
[legend]

Public Member Functions

 HNullWriter ()
 
 HNullWriter (HWriterConsumer< T > *consumer)
 
int Write (T *src, size_t blocksize)
 
void SetWriter (HWriter< T > *writer)
 
bool Command (HCommand *command)
 
- Public Member Functions inherited from HWriter< T >
virtual ~HWriter ()=default
 
virtual bool Start ()
 
virtual bool Stop ()
 
HWriter< T > * Writer ()
 
- Public Member Functions inherited from HObject
 HObject ()
 
- Public Member Functions inherited from HWriterConsumer< T >
HWriterConsumer< T > * Consumer ()
 

Detailed Description

template<class T>
class HNullWriter< T >

/dev/null

Accepts any number of writes of any blocksize and throws the data away.

Most usefull while your are building or testing an application and dont want to spend time finishing a branch that has no relation to your current focus area.

Constructor & Destructor Documentation

◆ HNullWriter() [1/2]

template<class T >
HNullWriter< T >::HNullWriter ( )
inline

Construct a new HNullWriter

◆ HNullWriter() [2/2]

template<class T >
HNullWriter< T >::HNullWriter ( HWriterConsumer< T > *  consumer)
inline

Construct a new HNullWriter that registers with the upstream writer

Member Function Documentation

◆ Command()

template<class T >
bool HNullWriter< T >::Command ( HCommand command)
inlinevirtual

Execute or carry through a command

Implements HWriter< T >.

◆ SetWriter()

template<class T >
void HNullWriter< T >::SetWriter ( HWriter< T > *  writer)
inlinevirtual

◆ Write()

template<class T >
int HNullWriter< T >::Write ( T *  src,
size_t  blocksize 
)
inlinevirtual

Write a block of samples

Implements HWriter< T >.


The documentation for this class was generated from the following file: