dxFeed Graal CXX API v4.0.0
|
A helper wrapper class needed to pass heterogeneous event sources using a container and convert them to internal Graal representation. More...
#include <EventSourceWrapper.hpp>
Public Member Functions | |
EventSourceWrapper (const IndexedEventSource &data) noexcept | |
Constructs a wrapper from IndexedEventSource. | |
EventSourceWrapper (const OrderSource &data) noexcept | |
Constructs a wrapper from OrderSource. | |
void * | toGraal () const noexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
std::unique_ptr< void, decltype(&EventSourceWrapper::freeGraal)> | toGraalUnique () const noexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
std::string | toString () const |
Returns a string representation of the current object. | |
std::string | toStringUnderlying () const |
Returns a string representation of the underlying object. | |
bool | isIndexedEventSource () const noexcept |
bool | isOrderSource () const noexcept |
std::optional< IndexedEventSource > | asIndexedEventSource () const noexcept |
std::optional< OrderSource > | asOrderSource () const noexcept |
const DataType & | getData () const noexcept |
Static Public Member Functions | |
static void | freeGraal (void *graalNative) |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
static EventSourceWrapper | fromGraal (void *graalNative) |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure. | |
A helper wrapper class needed to pass heterogeneous event sources using a container and convert them to internal Graal representation.
|
inlinenoexcept |
Constructs a wrapper from IndexedEventSource.
data | The IndexedEventSource. |
|
inlinenoexcept |
Constructs a wrapper from OrderSource.
data | The OrderSource. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
InvalidArgumentException |
References IndexedEventSource::freeGraal().
|
static |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure.
graalNative | The pointer to the dxFeed Graal SDK structure. |
InvalidArgumentException | |
RuntimeException | if event source type is unknown |
References IndexedEventSource::fromGraal().
|
inlinenoexcept |
|
inlinenoexcept |
true
if current EventSourceWrapper holds a IndexedEventSource.
|
inlinenoexcept |
true
if current EventSourceWrapper holds a OrderSource.
|
inlinenodiscardnoexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Fills the dxFeed Graal SDK structure's fields by the data of the current entity (recursively if necessary). Returns the pointer to the filled structure.
|
inlinenoexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
Fills the dxFeed Graal SDK structure's fields by the data of the current entity (recursively if necessary). Returns the pointer to the filled structure.
|
inline |
Returns a string representation of the current object.
|
inline |
Returns a string representation of the underlying object.