Public Types | Public Member Functions | Private Attributes | List of all members
foxglove::CallbackLogger Class Reference

#include <websocket_logging.hpp>

Public Types

using channel_type_hint = websocketpp::log::channel_type_hint
 

Public Member Functions

 CallbackLogger (channel_type_hint::value hint=channel_type_hint::access)
 
 CallbackLogger (websocketpp::log::level channels, channel_type_hint::value hint=channel_type_hint::access)
 
void clear_channels (websocketpp::log::level channels)
 
bool dynamic_test (websocketpp::log::level channel)
 
void set_callback (LogCallback callback)
 
void set_channels (websocketpp::log::level channels)
 
constexpr bool static_test (websocketpp::log::level channel) const
 
void write (websocketpp::log::level channel, std::string const &msg)
 
void write (websocketpp::log::level channel, char const *msg)
 

Private Attributes

LogCallback _callback
 
channel_type_hint::value _channelTypeHint
 
websocketpp::log::level _dynamicChannels
 
websocketpp::log::level const _staticChannels
 

Detailed Description

Definition at line 23 of file websocket_logging.hpp.

Member Typedef Documentation

◆ channel_type_hint

using foxglove::CallbackLogger::channel_type_hint = websocketpp::log::channel_type_hint

Definition at line 25 of file websocket_logging.hpp.

Constructor & Destructor Documentation

◆ CallbackLogger() [1/2]

foxglove::CallbackLogger::CallbackLogger ( channel_type_hint::value  hint = channel_type_hint::access)
inline

Definition at line 27 of file websocket_logging.hpp.

◆ CallbackLogger() [2/2]

foxglove::CallbackLogger::CallbackLogger ( websocketpp::log::level  channels,
channel_type_hint::value  hint = channel_type_hint::access 
)
inline

Definition at line 33 of file websocket_logging.hpp.

Member Function Documentation

◆ clear_channels()

void foxglove::CallbackLogger::clear_channels ( websocketpp::log::level  channels)
inline

Definition at line 53 of file websocket_logging.hpp.

◆ dynamic_test()

bool foxglove::CallbackLogger::dynamic_test ( websocketpp::log::level  channel)
inline

Definition at line 89 of file websocket_logging.hpp.

◆ set_callback()

void foxglove::CallbackLogger::set_callback ( LogCallback  callback)
inline

Definition at line 40 of file websocket_logging.hpp.

◆ set_channels()

void foxglove::CallbackLogger::set_channels ( websocketpp::log::level  channels)
inline

Definition at line 44 of file websocket_logging.hpp.

◆ static_test()

constexpr bool foxglove::CallbackLogger::static_test ( websocketpp::log::level  channel) const
inline

Definition at line 85 of file websocket_logging.hpp.

◆ write() [1/2]

void foxglove::CallbackLogger::write ( websocketpp::log::level  channel,
std::string const &  msg 
)
inline

Definition at line 57 of file websocket_logging.hpp.

◆ write() [2/2]

void foxglove::CallbackLogger::write ( websocketpp::log::level  channel,
char const *  msg 
)
inline

Definition at line 61 of file websocket_logging.hpp.

Member Data Documentation

◆ _callback

LogCallback foxglove::CallbackLogger::_callback
private

Definition at line 97 of file websocket_logging.hpp.

◆ _channelTypeHint

channel_type_hint::value foxglove::CallbackLogger::_channelTypeHint
private

Definition at line 96 of file websocket_logging.hpp.

◆ _dynamicChannels

websocketpp::log::level foxglove::CallbackLogger::_dynamicChannels
private

Definition at line 95 of file websocket_logging.hpp.

◆ _staticChannels

websocketpp::log::level const foxglove::CallbackLogger::_staticChannels
private

Definition at line 94 of file websocket_logging.hpp.


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


foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22