cpp-msgpack-rpc 0.2.0
An RPC library implementing MessagePack RPC.
Loading...
Searching...
No Matches
source_location_view.h File Reference

Definition of SourceLocationView class. More...

#include <cstdint>
#include <string_view>
Include dependency graph for source_location_view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  msgpack_rpc::logging::SourceLocationView
 Class of locations in source codes. More...

Namespaces

namespace  msgpack_rpc
 Namespace of cpp-msgpack-rpc library.
namespace  msgpack_rpc::logging
 Namespace of logging.

Macros

#define MSGPACK_RPC_CURRENT_FILE_PATH   __FILE__
 Macro to get the current file path.
#define MSGPACK_RPC_CURRENT_FUNCTION   <implementation defined strings>
 Macro to get the current function name.
#define MSGPACK_RPC_CURRENT_LINE   __LINE__
 Macro to get the current line number.
#define MSGPACK_RPC_CURRENT_SOURCE_LOCATION()
 Macro to get the current location in source codes.

Detailed Description

Definition of SourceLocationView class.

Definition in file source_location_view.h.

Macro Definition Documentation

◆ MSGPACK_RPC_CURRENT_FILE_PATH

#define MSGPACK_RPC_CURRENT_FILE_PATH   __FILE__

Macro to get the current file path.

Definition at line 86 of file source_location_view.h.

◆ MSGPACK_RPC_CURRENT_FUNCTION

#define MSGPACK_RPC_CURRENT_FUNCTION   <implementation defined strings>

Macro to get the current function name.

Note
This macro depends on compilers.

Definition at line 97 of file source_location_view.h.

◆ MSGPACK_RPC_CURRENT_LINE

#define MSGPACK_RPC_CURRENT_LINE   __LINE__

Macro to get the current line number.

Definition at line 89 of file source_location_view.h.

◆ MSGPACK_RPC_CURRENT_SOURCE_LOCATION

#define MSGPACK_RPC_CURRENT_SOURCE_LOCATION ( )
Value:
std::string_view(MSGPACK_RPC_CURRENT_FILE_PATH), /*NOLINT*/ \
static_cast<std::uint32_t>(MSGPACK_RPC_CURRENT_LINE), \
std::string_view(MSGPACK_RPC_CURRENT_FUNCTION)) /*NOLINT*/
Class of locations in source codes.
#define MSGPACK_RPC_CURRENT_LINE
Macro to get the current line number.
#define MSGPACK_RPC_CURRENT_FILE_PATH
Macro to get the current file path.
#define MSGPACK_RPC_CURRENT_FUNCTION
Macro to get the current function name.

Macro to get the current location in source codes.

Definition at line 107 of file source_location_view.h.