Ardour  9.0-pre0-380-gbbdb6b0e63
ArdourSurface::WebsocketsDispatcher Class Reference

#include <dispatcher.h>

Inheritance diagram for ArdourSurface::WebsocketsDispatcher:
[legend]

Public Member Functions

 WebsocketsDispatcher (ArdourSurface::ArdourWebsockets &surface)
 
virtual ~WebsocketsDispatcher ()
 
void dispatch (Client, const NodeStateMessage &)
 
void update_all_nodes (Client)
 
- Public Member Functions inherited from ArdourSurface::SurfaceComponent
 SurfaceComponent (ArdourSurface::ArdourWebsockets &surface)
 
virtual ~SurfaceComponent ()
 
virtual int start ()
 
virtual int stop ()
 
BasicUIbasic_ui () const
 
virtual PBD::EventLoopevent_loop () const
 
Glib::RefPtr< Glib::MainLoop > main_loop () const
 
ARDOUR::Sessionsession () const
 
ArdourMixermixer () const
 
ArdourTransporttransport () const
 
WebsocketsServerserver () const
 
WebsocketsDispatcherdispatcher () const
 

Private Types

typedef void(WebsocketsDispatcher::* DispatcherMethod) (Client, const NodeStateMessage &)
 
typedef std::unordered_map< std::string, DispatcherMethodNodeMethodMap
 

Private Member Functions

void transport_tempo_handler (Client, const NodeStateMessage &)
 
void transport_roll_handler (Client client, const NodeStateMessage &)
 
void transport_record_handler (Client client, const NodeStateMessage &)
 
void strip_gain_handler (Client, const NodeStateMessage &)
 
void strip_pan_handler (Client, const NodeStateMessage &)
 
void strip_mute_handler (Client, const NodeStateMessage &)
 
void strip_plugin_enable_handler (Client, const NodeStateMessage &)
 
void strip_plugin_param_value_handler (Client, const NodeStateMessage &)
 
void update (Client, std::string, TypedValue)
 
void update (Client, std::string, uint32_t, TypedValue)
 
void update (Client, std::string, uint32_t, uint32_t, TypedValue)
 
void update (Client, std::string, uint32_t, uint32_t, uint32_t, TypedValue)
 
void update (Client, std::string, const AddressVector &, const ValueVector &)
 

Static Private Attributes

static NodeMethodMap _node_to_method
 

Additional Inherited Members

- Protected Attributes inherited from ArdourSurface::SurfaceComponent
ArdourSurface::ArdourWebsockets_surface
 

Detailed Description

Definition at line 30 of file dispatcher.h.

Member Typedef Documentation

◆ DispatcherMethod

typedef void(WebsocketsDispatcher::* ArdourSurface::WebsocketsDispatcher::DispatcherMethod) (Client, const NodeStateMessage &)
private

Definition at line 41 of file dispatcher.h.

◆ NodeMethodMap

typedef std::unordered_map<std::string, DispatcherMethod> ArdourSurface::WebsocketsDispatcher::NodeMethodMap
private

Definition at line 42 of file dispatcher.h.

Constructor & Destructor Documentation

◆ WebsocketsDispatcher()

ArdourSurface::WebsocketsDispatcher::WebsocketsDispatcher ( ArdourSurface::ArdourWebsockets surface)
inline

Definition at line 33 of file dispatcher.h.

◆ ~WebsocketsDispatcher()

virtual ArdourSurface::WebsocketsDispatcher::~WebsocketsDispatcher ( )
inlinevirtual

Definition at line 35 of file dispatcher.h.

Member Function Documentation

◆ dispatch()

void ArdourSurface::WebsocketsDispatcher::dispatch ( Client  ,
const NodeStateMessage  
)

◆ strip_gain_handler()

void ArdourSurface::WebsocketsDispatcher::strip_gain_handler ( Client  ,
const NodeStateMessage  
)
private

◆ strip_mute_handler()

void ArdourSurface::WebsocketsDispatcher::strip_mute_handler ( Client  ,
const NodeStateMessage  
)
private

◆ strip_pan_handler()

void ArdourSurface::WebsocketsDispatcher::strip_pan_handler ( Client  ,
const NodeStateMessage  
)
private

◆ strip_plugin_enable_handler()

void ArdourSurface::WebsocketsDispatcher::strip_plugin_enable_handler ( Client  ,
const NodeStateMessage  
)
private

◆ strip_plugin_param_value_handler()

void ArdourSurface::WebsocketsDispatcher::strip_plugin_param_value_handler ( Client  ,
const NodeStateMessage  
)
private

◆ transport_record_handler()

void ArdourSurface::WebsocketsDispatcher::transport_record_handler ( Client  client,
const NodeStateMessage  
)
private

◆ transport_roll_handler()

void ArdourSurface::WebsocketsDispatcher::transport_roll_handler ( Client  client,
const NodeStateMessage  
)
private

◆ transport_tempo_handler()

void ArdourSurface::WebsocketsDispatcher::transport_tempo_handler ( Client  ,
const NodeStateMessage  
)
private

◆ update() [1/5]

void ArdourSurface::WebsocketsDispatcher::update ( Client  ,
std::string  ,
const AddressVector ,
const ValueVector  
)
private

◆ update() [2/5]

void ArdourSurface::WebsocketsDispatcher::update ( Client  ,
std::string  ,
TypedValue   
)
private

◆ update() [3/5]

void ArdourSurface::WebsocketsDispatcher::update ( Client  ,
std::string  ,
uint32_t  ,
TypedValue   
)
private

◆ update() [4/5]

void ArdourSurface::WebsocketsDispatcher::update ( Client  ,
std::string  ,
uint32_t  ,
uint32_t  ,
TypedValue   
)
private

◆ update() [5/5]

void ArdourSurface::WebsocketsDispatcher::update ( Client  ,
std::string  ,
uint32_t  ,
uint32_t  ,
uint32_t  ,
TypedValue   
)
private

◆ update_all_nodes()

void ArdourSurface::WebsocketsDispatcher::update_all_nodes ( Client  )

Member Data Documentation

◆ _node_to_method

NodeMethodMap ArdourSurface::WebsocketsDispatcher::_node_to_method
staticprivate

Definition at line 44 of file dispatcher.h.


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