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

#include <hsplitter.h>

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

Public Member Functions

 HSplitter (HWriter< T > *writer1, HWriter< T > *writer2)
 
 HSplitter (std::vector< HWriter< T > * > writers)
 
 HSplitter (HWriterConsumer< T > *consumer)
 
int Write (T *src, size_t blocksize)
 
bool Start ()
 
bool Stop ()
 
void SetWriter (HWriter< T > *writer)
 
bool Command (HCommand *command)
 
- Public Member Functions inherited from HWriter< T >
virtual ~HWriter ()=default
 
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 HSplitter< T >

Split a single chain of writers into two, so that samples can go, simultaneously to two chains

Examples
saq.cpp.

Constructor & Destructor Documentation

◆ HSplitter() [1/3]

template<class T >
HSplitter< T >::HSplitter ( HWriter< T > *  writer1,
HWriter< T > *  writer2 
)
inline

Construct a new HSplitter

◆ HSplitter() [2/3]

template<class T >
HSplitter< T >::HSplitter ( std::vector< HWriter< T > * >  writers)
inline

Construct a new HSplitter

◆ HSplitter() [3/3]

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

Construct a new HSplitter which will later receive its writers via the HWriterConsumer scheme

Member Function Documentation

◆ Command()

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

Execute or carry through a command

Implements HWriter< T >.

◆ SetWriter()

template<class T >
void HSplitter< T >::SetWriter ( HWriter< T > *  writer)
virtual

Implements HWriterConsumer::SetWriter. Register writers for the splitter

Implements HWriterConsumer< T >.

◆ Start()

template<class T >
bool HSplitter< T >::Start
virtual

Initialize before first write

Reimplemented from HWriter< T >.

◆ Stop()

template<class T >
bool HSplitter< T >::Stop
virtual

Cleanup after last write

Reimplemented from HWriter< T >.

◆ Write()

template<class T >
int HSplitter< T >::Write ( T *  src,
size_t  blocksize 
)
virtual

Write a block of samples

Implements HWriter< T >.


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