|
sbepp
|
Provides various traits/attributes of an <enum> element.
More...
Public Types | |
| using | encoding_type = EncodingType |
Underlying type, e.g. std::uint8_t | |
| using | encoding_type_tag = EncodingTypeTag |
Tag of the type specified in the encodingType attribute. | |
| using | value_type = ScopedEnumType |
| Representation type. | |
| using | value_tags = sbepp::type_list<ValueTags...> |
| Value tags in schema order. | |
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. | |
Provides various traits/attributes of an <enum> element.
For example: sbepp::enum_traits<market_schema::schema::types::enum_name>::name();
| T | enum tag |
| using sbepp::enum_traits< T >::encoding_type_tag = EncodingTypeTag |
Tag of the type specified in the encodingType attribute.
For primitive built-in types provides tag of their optional representations, e.g. sbepp::uint8_opt_t for uint8.