ADTF  3.18.2
ResultInfo< T >

Basic result information template, used by a_util::result::Result. More...

Static Public Member Functions

static std::int32_t getCode ()
 Get the result code distributed with value of type T. More...
 
static const char * getLabel ()
 Get the string representation of an error code distributed by value of type T. More...
 

Detailed Description

template<typename T>
struct a_util::result::ResultInfo< T >

Basic result information template, used by a_util::result::Result.

Template Parameters
TType required to implement static methods getLabel() and getCode()

Definition at line 86 of file result_info_decl.h.

Member Function Documentation

◆ getCode()

std::int32_t getCode
inlinestatic

Get the result code distributed with value of type T.

Returns
The result code

Definition at line 42 of file result_info_impl.h.

Referenced by Result::Result(), a_util::result::operator<(), and a_util::result::operator==().

◆ getLabel()

const char * getLabel
inlinestatic

Get the string representation of an error code distributed by value of type T.

Returns
The string representation of an error code

Definition at line 36 of file result_info_impl.h.

Referenced by a_util::result::operator==().