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

Class of method names. More...

#include <msgpack_rpc/messages/method_name.h>

Collaboration diagram for msgpack_rpc::messages::MethodName:

Public Member Functions

 MethodName (const char *name)
 Constructor.
 MethodName (const char *name, std::size_t size)
 Constructor.
 MethodName (std::string name)
 Constructor.
 MethodName (std::string_view name)
 Constructor.
std::string_view name () const noexcept
 Get the method name.

Private Attributes

std::string name_
 Method name.

Detailed Description

Class of method names.

Definition at line 35 of file method_name.h.

Constructor & Destructor Documentation

◆ MethodName() [1/4]

msgpack_rpc::messages::MethodName::MethodName ( std::string name)
inline

Constructor.

Parameters
[in]nameMethod name.
Note
This class saves pointer to the give buffer, and doesn't manage memory.

Definition at line 45 of file method_name.h.

◆ MethodName() [2/4]

msgpack_rpc::messages::MethodName::MethodName ( std::string_view name)
inline

Constructor.

Parameters
[in]nameMethod name.
Note
This class saves pointer to the give buffer, and doesn't manage memory.

Definition at line 59 of file method_name.h.

◆ MethodName() [3/4]

msgpack_rpc::messages::MethodName::MethodName ( const char * name,
std::size_t size )
inline

Constructor.

Parameters
[in]nameMethod name.
[in]sizeNumber of bytes in the name.
Note
This class saves pointer to the give buffer, and doesn't manage memory.

Definition at line 74 of file method_name.h.

◆ MethodName() [4/4]

msgpack_rpc::messages::MethodName::MethodName ( const char * name)
inline

Constructor.

Parameters
[in]nameMethod name.
Note
This class saves pointer to the give buffer, and doesn't manage memory.

Definition at line 88 of file method_name.h.

Member Function Documentation

◆ name()

std::string_view msgpack_rpc::messages::MethodName::name ( ) const
inlinenodiscardnoexcept

Get the method name.

Returns
Method name.

Definition at line 99 of file method_name.h.

Member Data Documentation

◆ name_

std::string msgpack_rpc::messages::MethodName::name_
private

Method name.

Definition at line 103 of file method_name.h.


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