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

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

Public Types

template<typename Byte >
using value_type = CompositeType<Byte>
 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 type offset. Available only if offset is static, i.e. not available for public composites whose offset is different on each usage.
 
static constexpr const char * semantic_type () noexcept
 Returns semanticType attribute.
 
static constexpr version_t since_version () noexcept
 Returns addedSince attribute.
 
static constexpr version_t deprecated () noexcept
 Returns deprecated attribute. Available only if provided in.
 
static constexpr std::size_t size_bytes () noexcept
 Size of the composite in bytes.
 

Detailed Description

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

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

For example: sbepp::composite_traits<SchemaTag::types::composite>::since_version();

Template Parameters
Tcomposite tag

Member Typedef Documentation

◆ value_type

template<typename T >
template<typename Byte >
using sbepp::composite_traits< T >::value_type = CompositeType<Byte>

Representation type.

Template Parameters
Bytebyte type

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