pars 0.2.1.99
Loading...
Searching...
No Matches
pars::ev::base_network_metadata Struct Reference

#include <metadata.h>

Inheritance diagram for pars::ev::base_network_metadata:

Public Member Functions

 base_network_metadata (int s_id, net::tool_view t, net::pipe p)
 
const net::tool_viewtool () const
 
const net::pipepipe () const
 
int socket_id () const
 
auto format_to (std::format_context &ctx) const -> decltype(ctx.out())
 

Detailed Description

Definition at line 72 of file metadata.h.

Constructor & Destructor Documentation

◆ base_network_metadata()

pars::ev::base_network_metadata::base_network_metadata ( int s_id,
net::tool_view t,
net::pipe p )
inline

Definition at line 74 of file metadata.h.

75 : id_m{s_id}
76 , tool_m{t}
77 , pipe_m{p}
78 {
79 }

Member Function Documentation

◆ format_to()

auto pars::ev::base_network_metadata::format_to ( std::format_context & ctx) const -> decltype(ctx.out())
inline

Definition at line 87 of file metadata.h.

88 {
89 // FIXME: duplicated
90 return std::format_to(ctx.out(), "Pipe #{:X} {} {}", pipe().id(),
91 tool().who(), tool().id());
92 }
clev::own< nng_ctx > ctx
Definition ctx.h:39
const net::tool_view & tool() const
Definition metadata.h:81
const net::pipe & pipe() const
Definition metadata.h:83

References pipe(), and tool().

Here is the call graph for this function:

◆ pipe()

const net::pipe & pars::ev::base_network_metadata::pipe ( ) const
inline

Definition at line 83 of file metadata.h.

83{ return pipe_m; }

Referenced by format_to().

Here is the caller graph for this function:

◆ socket_id()

int pars::ev::base_network_metadata::socket_id ( ) const
inline

Definition at line 85 of file metadata.h.

85{ return id_m; }

◆ tool()

const net::tool_view & pars::ev::base_network_metadata::tool ( ) const
inline

Definition at line 81 of file metadata.h.

81{ return tool_m; }

Referenced by format_to().

Here is the caller graph for this function:

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