|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|
Validated asset or currency identifier. More...
Public Member Functions | |
| Asset (std::string_view value) | |
| Validates and owns an asset identifier. More... | |
| bool | operator!= (const Asset &other) const noexcept |
| bool | operator< (const Asset &other) const noexcept |
| bool | operator== (const Asset &other) const noexcept |
| OpenPitStringView | Raw () const noexcept |
| Returns the borrowed native representation. More... | |
| std::string_view | View () const noexcept |
| Returns the borrowed asset text. More... | |
Static Public Member Functions | |
| static Asset | FromRaw (OpenPitStringView raw) |
| Copies and validates a borrowed native asset view. More... | |
Validated asset or currency identifier.
Construction delegates validation to the native runtime. The returned native handle is shared by copies and released with the matching Asset destructor when the last C++ value goes away.
|
inlineexplicit |
Validates and owns an asset identifier.
Throws openpit::Error when value is empty or whitespace-only.
|
inlinestatic |
Copies and validates a borrowed native asset view.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Returns the borrowed native representation.
|
inlinenoexcept |
Returns the borrowed asset text.