sbepp
Loading...
Searching...
No Matches
sbepp::enum_traits< T > Class Template Reference

Provides various traits/attributes of an <enum> element. More...

Public Types

using encoding_type = EncodingType
 Underlying type.
 
using value_type = ScopedEnumType
 Representation type.
 

Static Public Member Functions

static constexpr const char * name () noexcept
 Returns name attribute.
 
static constexpr const char * description () noexcept
 Returns description attribute.
 
static constexpr offset_t offset () noexcept
 Returns enum offset. Available only if offset is static, i.e. not available for public enums whose offset is different on each usage.
 
static constexpr version_t since_version () noexcept
 Returns sinceVersion attribute.
 
static constexpr version_t deprecated () noexcept
 Returns deprecated attribute. Available only if provided in schema.
 

Detailed Description

template<typename T>
class sbepp::enum_traits< T >

Provides various traits/attributes of an <enum> element.

For example: sbepp::enum_traits<market_schema::schema::types::enum_name>::name();

Template Parameters
Tenum tag

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