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

Provides various traits/attributes of a <field> element. More...

Public Types

using value_type = ValueType
 Representation type.
 
template<typename Byte >
using value_type = Type<Byte>
 Representation type for non-constant arrays or composites.
 
using value_type_tag = TypeTag
 value_type's tag. Not available for constants of numeric types
 

Static Public Member Functions

static constexpr const char * name () noexcept
 Returns name attribute.
 
static constexpr member_id_t id () noexcept
 Returns id attribute.
 
static constexpr const char * description () noexcept
 Returns description attribute.
 
static constexpr field_presence presence () noexcept
 Returns the actual presence. Note that it can be different from the one provided in schema, for example if field type is required but the field itself is specified as optional.
 
static constexpr offset_t offset () noexcept
 Returns actual offset.
 
static constexpr version_t since_version () noexcept
 Returns addedSince attribute.
 
static constexpr version_t deprecated () noexcept
 Returns deprecated attribute. Available only if provided in schema.
 

Detailed Description

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

Provides various traits/attributes of a <field> element.

For example: sbepp::message_traits<message_tag::field_name>::since_version();

Template Parameters
Tfield tag

Member Typedef Documentation

◆ value_type

template<typename T >
template<typename Byte >
using sbepp::field_traits< T >::value_type = Type<Byte>

Representation type for non-constant arrays or composites.

Template Parameters
Bytebyte type

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