Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::address::ProtocolMap Class Reference

Protocol attributes map. More...

#include <protocol_map.h>

Inheritance diagram for roc::address::ProtocolMap:
Collaboration diagram for roc::address::ProtocolMap:

Public Member Functions

const ProtocolAttrsfind_by_id (Protocol proto) const
 Get protocol attributes by ID. More...
 
const ProtocolAttrsfind_by_scheme (const char *scheme) const
 Get protocol attributes by scheme name. More...
 
ROC_ATTR_NODISCARD bool get_supported_interfaces (core::Array< Interface > &)
 Get list of interfaces with at least one protocol. More...
 
ROC_ATTR_NODISCARD bool get_supported_protocols (Interface, core::StringList &)
 Get all supported protocols. More...
 

Static Public Member Functions

static ProtocolMapinstance ()
 Get instance. More...
 

Friends

class core::Singleton< ProtocolMap >
 

Detailed Description

Protocol attributes map.

Definition at line 58 of file protocol_map.h.

Member Function Documentation

◆ find_by_id()

const ProtocolAttrs* roc::address::ProtocolMap::find_by_id ( Protocol  proto) const

Get protocol attributes by ID.

◆ find_by_scheme()

const ProtocolAttrs* roc::address::ProtocolMap::find_by_scheme ( const char *  scheme) const

Get protocol attributes by scheme name.

◆ get_supported_interfaces()

ROC_ATTR_NODISCARD bool roc::address::ProtocolMap::get_supported_interfaces ( core::Array< Interface > &  )

Get list of interfaces with at least one protocol.

◆ get_supported_protocols()

ROC_ATTR_NODISCARD bool roc::address::ProtocolMap::get_supported_protocols ( Interface  ,
core::StringList  
)

Get all supported protocols.

◆ instance()

static ProtocolMap& roc::address::ProtocolMap::instance ( )
inlinestatic

Get instance.

Definition at line 61 of file protocol_map.h.


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