Defines standard types of InstrumentProfile.
More...
#include <InstrumentProfileType.hpp>
|
| template<Integral OtherCodeType> |
| constexpr | Enum (OtherCodeType code, std::string_view name) noexcept |
| | Creates an element of the enum.
|
| constexpr std::uint32_t | getCode () const noexcept |
| | Returns code that is used in flag bits.
|
| std::string | getName () const |
| | Returns the enum element name.
|
| std::string | toString () const |
| | Returns a string representation of an enum element.
|
|
|
static const DXFCPP_EXPORT std::span< const std::reference_wrapper< const InstrumentProfileType > > | ALL |
| | All elements of the enum (constant-initialized).
|
|
| static const InstrumentProfileType & | valueOf (OtherCodeType code) noexcept |
| | Returns enum element by integer code bit pattern.
|
| constexpr | Enum (OtherCodeType code, std::string_view name) noexcept |
| | Creates an element of the enum.
|
Defines standard types of InstrumentProfile.
Note that other (unknown) types can be used without listing in this class - use it for convenience only. Please see Instrument Profile Format documentation for complete description.
◆ Enum()
template<Integral OtherCodeType>
| Enum< Child, Code >::Enum |
( |
OtherCodeType | code, |
|
|
std::string_view | name ) |
|
inlineconstexprnoexcept |
Creates an element of the enum.
- Parameters
-
| code | The element code. |
| name | The element name with static storage duration (a string literal). |