cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
msgpack_rpc::transport::BackendList Class Reference

Class of lists of backends of protocols. More...

#include <msgpack_rpc/transport/backend_list.h>

Collaboration diagram for msgpack_rpc::transport::BackendList:

Public Member Functions

 BackendList ()=default
 Constructor.
void append (std::shared_ptr< transport::IBackend > backend)
 Add a backend of the protocol.
std::shared_ptr< transport::IBackendfind (std::string_view scheme) const
 Find a backend. Throw an exception when not found.

Private Attributes

std::unordered_map< std::string_view, std::shared_ptr< transport::IBackend > > backends_ {}
 Backends.

Detailed Description

Class of lists of backends of protocols.

Definition at line 39 of file backend_list.h.

Member Function Documentation

◆ append()

void msgpack_rpc::transport::BackendList::append ( std::shared_ptr< transport::IBackend > backend)
inline

Add a backend of the protocol.

Parameters
[in]backendBackend of the protocol.

Definition at line 51 of file backend_list.h.

◆ find()

std::shared_ptr< transport::IBackend > msgpack_rpc::transport::BackendList::find ( std::string_view scheme) const
inlinenodiscard

Find a backend. Throw an exception when not found.

Parameters
[in]schemeScheme.
Returns
Backend of the protocol with the given scheme.

Definition at line 66 of file backend_list.h.

Member Data Documentation

◆ backends_

std::unordered_map<std::string_view, std::shared_ptr<transport::IBackend> > msgpack_rpc::transport::BackendList::backends_ {}
private

Backends.

Definition at line 79 of file backend_list.h.


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