Trading status of an instrument.
More...
#include <TradingStatus.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 TradingStatus | UNDEFINED {0, "UNDEFINED"} |
| | Trading status is undefined, unknown or inapplicable.
|
|
static const DXFCPP_EXPORT TradingStatus | HALTED {1, "HALTED"} |
| | Trading is halted.
|
|
static const DXFCPP_EXPORT TradingStatus | ACTIVE {2, "ACTIVE"} |
| | Trading is active.
|
|
static const DXFCPP_EXPORT std::span< const std::reference_wrapper< const TradingStatus > > | ALL {ALL_ELEMENTS} |
| | All elements of the enum (constant-initialized).
|
|
| static const TradingStatus & | 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.
|
Trading status of an instrument.
◆ 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). |