Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::kernel::SessionsDiscoverer Class Reference

#include <source_info.h>

Inheritance diagram for sen::kernel::SessionsDiscoverer:

Public Member Functions

 ~SessionsDiscoverer () override=default
std::shared_ptr< SessionInfoProvidermakeSessionInfoProvider (const std::string &sessionName)
const std::string & getName () const noexcept
 The name of the session.
std::vector< std::string > getDetectedSources () const
 Name of the buses discovered so far.
void onSourceDetected (const std::function< void(const std::string &)> &callback)
 Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback.
void onSourceUndetected (const std::function< void(const std::string &)> &callback)
 Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback.

Protected Member Functions

void drainInputs () override
void addSource (const std::string &name)
void removeSource (const std::string &name)
void lock ()
void unlock ()

Friends

class KernelApi
class impl::KernelImpl
class impl::Runner

Constructor & Destructor Documentation

◆ ~SessionsDiscoverer()

sen::kernel::SessionsDiscoverer::~SessionsDiscoverer ( )
overridedefault

Member Function Documentation

◆ makeSessionInfoProvider()

std::shared_ptr< SessionInfoProvider > sen::kernel::SessionsDiscoverer::makeSessionInfoProvider ( const std::string & sessionName)
nodiscard

◆ drainInputs()

void sen::kernel::SessionsDiscoverer::drainInputs ( )
overrideprotectedvirtual

Reimplemented from sen::kernel::SourceInfo.

◆ getName()

const std::string & sen::kernel::SourceInfo::getName ( ) const
nodiscardnoexceptinherited

The name of the session.

◆ getDetectedSources()

std::vector< std::string > sen::kernel::SourceInfo::getDetectedSources ( ) const
nodiscardinherited

Name of the buses discovered so far.

◆ onSourceDetected()

void sen::kernel::SourceInfo::onSourceDetected ( const std::function< void(const std::string &)> & callback)
inherited

Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback.

◆ onSourceUndetected()

void sen::kernel::SourceInfo::onSourceUndetected ( const std::function< void(const std::string &)> & callback)
inherited

Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback.

◆ addSource()

void sen::kernel::SourceInfo::addSource ( const std::string & name)
protectedinherited

◆ removeSource()

void sen::kernel::SourceInfo::removeSource ( const std::string & name)
protectedinherited

◆ lock()

void sen::kernel::SourceInfo::lock ( )
protectedinherited

◆ unlock()

void sen::kernel::SourceInfo::unlock ( )
protectedinherited

◆ KernelApi

friend class KernelApi
friend

◆ impl::KernelImpl

friend class impl::KernelImpl
friend

◆ impl::Runner

friend class impl::Runner
friend

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