Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::errno_to_str Class Reference

Convert errno to string. More...

#include <errno_to_str.h>

Inheritance diagram for roc::core::errno_to_str:
Collaboration diagram for roc::core::errno_to_str:

Public Member Functions

 errno_to_str ()
 Construct from errno. More...
 errno_to_str (int err)
 Construct from custom error code. More...
const char * c_str () const
 Get error message. More...

Detailed Description

Convert errno to string.

Uses strerror_r(), which is thread-safe unlike strerror().

Definition at line 23 of file errno_to_str.h.

Constructor & Destructor Documentation

roc::core::errno_to_str::errno_to_str ( )

Construct from errno.

roc::core::errno_to_str::errno_to_str ( int  err)

Construct from custom error code.

Member Function Documentation

const char* roc::core::errno_to_str::c_str ( ) const

Get error message.

Definition at line 32 of file errno_to_str.h.

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