rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::misc::default_stringifier_t Struct Reference

Default stringifier of rotor messages. More...

#include <default_stringifier.h>

Inheritance diagram for rotor::misc::default_stringifier_t:
rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_t< T >::visitor_t rotor::message_visitor_t rotor::message_stringifier_t

Public Member Functions

void stringify_to (std::ostream &, const message_base_t &) const override
 dumps string representation of a message to output stream
 
bool try_visit (const message_base_t &message, void *context) const override
 returns true if a message has been successfully processed
 
- Public Member Functions inherited from rotor::message_stringifier_t
virtual std::string stringify (const message_base_t &) const
 returns string representation of a message
 

Additional Inherited Members

- Protected Member Functions inherited from rotor::message_t< T >::visitor_t
virtual void on (const message_t &, void *)
 visit concrete message
 

Detailed Description

Default stringifier of rotor messages.

The custom message stringifier should override the try_visit method and do message stringification of own custom messages, and only then call try_visit of the default_stringifier.

The stringifier is potentially slow and should be used for debugging or problems identification.

Member Function Documentation

◆ stringify_to()

void rotor::misc::default_stringifier_t::stringify_to ( std::ostream &  ,
const message_base_t  
) const
overridevirtual

dumps string representation of a message to output stream

Implements rotor::message_stringifier_t.

◆ try_visit()

bool rotor::misc::default_stringifier_t::try_visit ( const message_base_t message,
void *  context 
) const
overridevirtual

returns true if a message has been successfully processed

Implements rotor::message_visitor_t.


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