|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|
Validated asset or currency identifier. More...
#include <param.hpp>
Public Member Functions | |
| Asset (std::string_view value) | |
| Validates and owns an asset identifier. | |
| 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. | |
| std::string_view | View () const noexcept |
| Returns the borrowed asset text. | |
Static Public Member Functions | |
| static Asset | FromRaw (OpenPitStringView raw) |
| Copies and validates a borrowed native asset view. | |
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.
|
inlinestaticnodiscard |
Copies and validates a borrowed native asset view.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Returns the borrowed native representation.
|
inlinenodiscardnoexcept |
Returns the borrowed asset text.