Mema
Memory Matrix — multi-channel audio matrix monitor and router
Loading...
Searching...
No Matches
Mema::Mema Class Reference

#include <Mema.h>

+ Inheritance diagram for Mema::Mema:
+ Collaboration diagram for Mema::Mema:

Public Member Functions

 Mema ()
 
 ~Mema () override
 
void timerCallback () override
 Periodic timer callback used to poll CPU usage and trigger deferred dumps.
 
juce::Component * getMemaProcessorEditor ()
 Returns the main processor editor component.
 
juce::Component * getDeviceSetupComponent ()
 Returns the audio device setup component.
 
void clearUICallbacks ()
 Clears all UI callback functions.
 
void performConfigurationDump () override
 Serializes the current configuration to file.
 
void onConfigUpdated () override
 Reacts to configuration changes and updates internal state.
 
void propagateLookAndFeelChanged ()
 Propagates a look-and-feel change to all owned components.
 
void setUIConfigState (const std::unique_ptr< juce::XmlElement > &uiConfigState)
 Stores a UI configuration state snapshot.
 
const std::unique_ptr< juce::XmlElement > & getUIConfigState ()
 Returns the cached UI configuration state.
 
void triggerPromptLoadConfig ()
 Opens a file chooser dialog to load a configuration file.
 
void triggerPromptSaveConfig ()
 Opens a file chooser dialog to save the configuration file.
 

Public Attributes

std::function< void(int)> onCpuUsageUpdate
 Called when CPU load percentage changes.
 
std::function< void(const std::map< int, std::pair< double, bool > > &)> onNetworkUsageUpdate
 Called when network traffic metrics change.
 
std::function< void(const JUCEAppBasics::SessionServiceTopology &)> onServiceDiscoveryTopologyUpdate
 Called when the multicast service topology changes.
 
std::function< void(juce::Rectangle< int >)> onEditorSizeChangeRequested
 Called when the editor requests a resize.
 

Detailed Description

Definition at line 42 of file Mema.h.

Constructor & Destructor Documentation

◆ Mema()

◆ ~Mema()

Mema::Mema::~Mema ( )
override

Definition at line 83 of file Mema.cpp.

Member Function Documentation

◆ clearUICallbacks()

void Mema::Mema::clearUICallbacks ( )

Clears all UI callback functions.

Definition at line 131 of file Mema.cpp.

◆ getDeviceSetupComponent()

juce::Component * Mema::Mema::getDeviceSetupComponent ( )

Returns the audio device setup component.

Definition at line 123 of file Mema.cpp.

◆ getMemaProcessorEditor()

juce::Component * Mema::Mema::getMemaProcessorEditor ( )

Returns the main processor editor component.

Definition at line 102 of file Mema.cpp.

◆ getUIConfigState()

const std::unique_ptr< juce::XmlElement > & Mema::Mema::getUIConfigState ( )

Returns the cached UI configuration state.

Definition at line 190 of file Mema.cpp.

◆ onConfigUpdated()

void Mema::Mema::onConfigUpdated ( )
override

Reacts to configuration changes and updates internal state.

Definition at line 157 of file Mema.cpp.

References Mema::MemaAppConfiguration::getTagName(), Mema::MemaAppConfiguration::PROCESSORCONFIG, and Mema::MemaAppConfiguration::UICONFIG.

◆ performConfigurationDump()

void Mema::Mema::performConfigurationDump ( )
override

Serializes the current configuration to file.

Definition at line 142 of file Mema.cpp.

References Mema::MemaAppConfiguration::getTagName(), Mema::MemaAppConfiguration::PROCESSORCONFIG, and Mema::MemaAppConfiguration::UICONFIG.

◆ propagateLookAndFeelChanged()

void Mema::Mema::propagateLookAndFeelChanged ( )

Propagates a look-and-feel change to all owned components.

Definition at line 172 of file Mema.cpp.

◆ setUIConfigState()

void Mema::Mema::setUIConfigState ( const std::unique_ptr< juce::XmlElement > &  uiConfigState)

Stores a UI configuration state snapshot.

Definition at line 185 of file Mema.cpp.

◆ timerCallback()

void Mema::Mema::timerCallback ( )
override

Periodic timer callback used to poll CPU usage and trigger deferred dumps.

Definition at line 89 of file Mema.cpp.

◆ triggerPromptLoadConfig()

void Mema::Mema::triggerPromptLoadConfig ( )

Opens a file chooser dialog to load a configuration file.

Definition at line 195 of file Mema.cpp.

References Mema::MemaAppConfiguration::isValid().

◆ triggerPromptSaveConfig()

void Mema::Mema::triggerPromptSaveConfig ( )

Opens a file chooser dialog to save the configuration file.

Definition at line 265 of file Mema.cpp.

Member Data Documentation

◆ onCpuUsageUpdate

std::function<void(int)> Mema::Mema::onCpuUsageUpdate

Called when CPU load percentage changes.

Definition at line 61 of file Mema.h.

◆ onEditorSizeChangeRequested

std::function<void(juce::Rectangle<int>)> Mema::Mema::onEditorSizeChangeRequested

Called when the editor requests a resize.

Definition at line 64 of file Mema.h.

◆ onNetworkUsageUpdate

std::function<void(const std::map<int, std::pair<double, bool>>&)> Mema::Mema::onNetworkUsageUpdate

Called when network traffic metrics change.

Definition at line 62 of file Mema.h.

◆ onServiceDiscoveryTopologyUpdate

std::function<void(const JUCEAppBasics::SessionServiceTopology&)> Mema::Mema::onServiceDiscoveryTopologyUpdate

Called when the multicast service topology changes.

Definition at line 63 of file Mema.h.


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