Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
uavcan::TransportStatsProvider Class Reference

#include <transport_stats_provider.hpp>

Inheritance diagram for uavcan::TransportStatsProvider:
Inheritance graph
[legend]

Public Member Functions

int start ()
 
 TransportStatsProvider (INode &node)
 

Private Types

typedef MethodBinder< const TransportStatsProvider *, void(TransportStatsProvider::*)(const protocol::GetTransportStats::Request &, protocol::GetTransportStats::Response &) const > GetTransportStatsCallback
 

Private Member Functions

void handleGetTransportStats (const protocol::GetTransportStats::Request &, protocol::GetTransportStats::Response &resp) const
 
- Private Member Functions inherited from uavcan::Noncopyable
 Noncopyable ()
 
 ~Noncopyable ()
 

Private Attributes

ServiceServer< protocol::GetTransportStats, GetTransportStatsCallbacksrv_
 

Detailed Description

This class provides statistics about the transport layer performance on the local node. The user's application does not deal with this class directly because it's instantiated by the node class.

Definition at line 19 of file transport_stats_provider.hpp.

Member Typedef Documentation

◆ GetTransportStatsCallback

typedef MethodBinder<const TransportStatsProvider*, void (TransportStatsProvider::*)(const protocol::GetTransportStats::Request&, protocol::GetTransportStats::Response&) const> uavcan::TransportStatsProvider::GetTransportStatsCallback
private

Definition at line 24 of file transport_stats_provider.hpp.

Constructor & Destructor Documentation

◆ TransportStatsProvider()

uavcan::TransportStatsProvider::TransportStatsProvider ( INode node)
inlineexplicit

Definition at line 49 of file transport_stats_provider.hpp.

Member Function Documentation

◆ handleGetTransportStats()

void uavcan::TransportStatsProvider::handleGetTransportStats ( const protocol::GetTransportStats::Request &  ,
protocol::GetTransportStats::Response &  resp 
) const
inlineprivate

Definition at line 28 of file transport_stats_provider.hpp.

◆ start()

int uavcan::TransportStatsProvider::start ( )
inline

Once started, this class requires no further attention. Returns negative error code.

Definition at line 57 of file transport_stats_provider.hpp.

Member Data Documentation

◆ srv_

ServiceServer<protocol::GetTransportStats, GetTransportStatsCallback> uavcan::TransportStatsProvider::srv_
private

Definition at line 26 of file transport_stats_provider.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05