JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::TopologySource Class Referenceabstract

Base class for an entity that provides access to a blocks topology. More...

#include <juce_TopologySource.h>

Inheritance diagram for juce::TopologySource:
Collaboration diagram for juce::TopologySource:

Classes

struct  Listener
 Used to receive callbacks for topology changes. More...
 

Public Member Functions

virtual ~TopologySource ()
 Destructor. More...
 
void addListener (Listener *l)
 
virtual void cancelAllActiveTouches () noexcept
 Invoke this to force touches-off on all physical devices. More...
 
virtual BlockTopology getCurrentTopology () const =0
 Returns the current topology that this object manages. More...
 
virtual bool isActive () const =0
 Returns true, if the TopologySource is currently trying to connect the block devices. More...
 
void removeListener (Listener *l)
 
virtual void setActive (bool shouldBeActive)=0
 Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices. More...
 

Protected Attributes

juce::ListenerList< Listenerlisteners
 

Detailed Description

Base class for an entity that provides access to a blocks topology.

{Blocks}

Constructor & Destructor Documentation

◆ ~TopologySource()

virtual juce::TopologySource::~TopologySource ( )
inlinevirtual

Destructor.

References getCurrentTopology(), isActive(), and setActive().

Member Function Documentation

◆ addListener()

void juce::TopologySource::addListener ( Listener l)
inline

References listeners.

◆ cancelAllActiveTouches()

virtual void juce::TopologySource::cancelAllActiveTouches ( )
inlinevirtualnoexcept

Invoke this to force touches-off on all physical devices.

Reimplemented in juce::PhysicalTopologySource.

◆ getCurrentTopology()

virtual BlockTopology juce::TopologySource::getCurrentTopology ( ) const
pure virtual

Returns the current topology that this object manages.

Implemented in juce::RuleBasedTopologySource, and juce::PhysicalTopologySource.

Referenced by ~TopologySource().

◆ isActive()

virtual bool juce::TopologySource::isActive ( ) const
pure virtual

Returns true, if the TopologySource is currently trying to connect the block devices.

Implemented in juce::RuleBasedTopologySource, and juce::PhysicalTopologySource.

Referenced by ~TopologySource().

◆ removeListener()

void juce::TopologySource::removeListener ( Listener l)
inline

References listeners.

◆ setActive()

virtual void juce::TopologySource::setActive ( bool  shouldBeActive)
pure virtual

Sets the TopologySource as active, occupying the midi port and trying to connect to the block devices.

Implemented in juce::RuleBasedTopologySource, and juce::PhysicalTopologySource.

Referenced by ~TopologySource().

Member Data Documentation

◆ listeners

juce::ListenerList<Listener> juce::TopologySource::listeners
protected

Referenced by addListener(), and removeListener().


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