Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::io_category Class Reference

Detailed Description

The io_category class.

This is a std::error_category specialisation so that it is possible to use vsdk::io::io_error codes with std::system_error exception type.

#include <io_category.h>

Public Member Functions

const char * name () const noexcept override
 The category name.
std::string message (int ec) const override
 A description string for the error code.

Static Public Member Functions

static const io_category & category ()
 The io_category unique instance.

Detailed Description

The io_category class.

This is a std::error_category specialisation so that it is possible to use vsdk::io::io_error codes with std::system_error exception type.

Member Function Documentation

◆ category()

const io_category & vsdk::io::io_category::category ( )
static

The io_category unique instance.

This is a std::error_category requirement. Must use this instance if used directly with std::system_error.

Returns
A unique const reference instance for the io_category.

◆ message()

std::string vsdk::io::io_category::message ( int ec) const
override

A description string for the error code.

Parameters
ecThe error code, type-cast from vsdk::io::io_error.
Returns
A std::string representing the error code.

◆ name()

const char * vsdk::io::io_category::name ( ) const
overridenoexcept

The category name.

Returns
A constant string "libio".

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