39#include <SoDa/MailBox.hxx>
45 typedef std::shared_ptr<UI>
UIPtr;
54 auto ret = std::shared_ptr<UI>(
new UI(params));
55 ret->registerThread(ret);
The Baseclass for all SoDa objects, and useful commonly used classes.
The Baseclass for all SoDa thread objects.
The Thread baseclass for all SoDa thread objects.
std::vector< float > lo_spectrum
unsigned int fft_send_counter
static UIPtr make(ParamsPtr params)
void subscribeToMailBoxes(const std::vector< MailBoxBasePtr > &mailboxes)
connect to useful mailboxes.
void run()
Each thread object must define its "run" loop.
void updateSpectrumState()
SpectrogramPtr spectrogram
int required_spect_buckets
void sendCommandSocket(CommandPtr ptr)
void execSetCommand(CommandPtr cmd)
optional method to handle "SET" commands – commands that set internal state in the object.
std::vector< float > log_spectrum
CDatMBox::Subscription if_subs
SpectrogramPtr lo_spectrogram
void execGetCommand(CommandPtr cmd)
optional method to handle "GET" commands – commands that request a response
SoDa::UD::ServerSocket * wfall_socket
double spectrum_center_freq
bool new_spectrum_setting
unsigned int spectrogram_buckets
void execRepCommand(CommandPtr cmd)
optional method that reports status or the result of some action.
std::vector< float > spectrum
void reportSpectrumCenterFreq()
static const double spectrum_span
unsigned int lo_spectrogram_buckets
void sendFFT(SoDa::CBufPtr buf)
SoDa::UD::ServerSocket * server_socket
unsigned int fft_update_interval
CmdMBox::Subscription cmd_subs
std::shared_ptr< UI > UIPtr
std::shared_ptr< Spectrogram > SpectrogramPtr
std::shared_ptr< Params > ParamsPtr
std::shared_ptr< Command > CommandPtr
std::shared_ptr< CmdMBox > CmdMBoxPtr
std::shared_ptr< CDatMBox > CDatMBoxPtr
std::shared_ptr< CBuf > CBufPtr