|
cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
|
Class of dictionaries of methods. More...
#include <msgpack_rpc/methods/method_dict.h>
Public Member Functions | |
| MethodDict ()=default | |
| Constructor. | |
| void | append (std::unique_ptr< IMethod > method) |
| Append a method. | |
| IMethod * | get (messages::MethodNameView name) const |
| Get the method with a name. Throws an exception when not found. | |
Private Attributes | |
| std::unordered_map< messages::MethodNameView, std::unique_ptr< IMethod > > | methods_ {} |
| Dictionary of methods. | |
Class of dictionaries of methods.
Definition at line 39 of file method_dict.h.
|
inline |
|
inlinenodiscard |
Get the method with a name. Throws an exception when not found.
| [in] | name | Name. |
Definition at line 68 of file method_dict.h.
|
private |
Dictionary of methods.
Definition at line 80 of file method_dict.h.