cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of lists of backends of protocols. More...
#include <msgpack_rpc/transport/backend_list.h>
Public Member Functions | |
BackendList ()=default | |
Constructor. | |
void | append (std::shared_ptr< transport::IBackend > backend) |
Add a backend of the protocol. | |
std::shared_ptr< transport::IBackend > | find (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. |
Class of lists of backends of protocols.
Definition at line 39 of file backend_list.h.
|
inline |
Add a backend of the protocol.
[in] | backend | Backend of the protocol. |
Definition at line 51 of file backend_list.h.
|
inlinenodiscard |
Find a backend. Throw an exception when not found.
[in] | scheme | Scheme. |
Definition at line 66 of file backend_list.h.
|
private |
Backends.
Definition at line 79 of file backend_list.h.