dxFeed Graal CXX API
|
A helper wrapper class needed to pass heterogeneous symbols using a container and convert them to internal Graal representation. More...
#include <SymbolWrapper.hpp>
Public Member Functions | |
template<ConvertibleToStringSymbol Symbol> | |
SymbolWrapper (Symbol &&symbol) noexcept | |
Constructor for any wrapped symbol. | |
SymbolWrapper (const StringSymbol &stringSymbol) noexcept | |
Constructor for any wrapped string symbol. | |
SymbolWrapper (const WildcardSymbol &wildcardSymbol) noexcept | |
Constructor for any wrapped wildcard (*) symbol. | |
SymbolWrapper (const IndexedEventSubscriptionSymbol &indexedEventSubscriptionSymbol) noexcept | |
Constructor for IndexedEventSubscriptionSymbol. | |
SymbolWrapper (const TimeSeriesSubscriptionSymbol &timeSeriesSubscriptionSymbol) noexcept | |
Constructor for TimeSeriesSubscriptionSymbol. | |
SymbolWrapper (const CandleSymbol &candleSymbol) noexcept | |
Constructor for CandleSymbol. | |
void * | toGraal () const noexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
std::string | toString () const noexcept |
Returns a string representation of the current object. | |
bool | isStringSymbol () const noexcept |
std::string | asStringSymbol () const noexcept |
bool | isWildcardSymbol () const noexcept |
std::optional< WildcardSymbol > | asWildcardSymbol () const noexcept |
bool | isIndexedEventSubscriptionSymbol () const noexcept |
std::optional< IndexedEventSubscriptionSymbol > | asIndexedEventSubscriptionSymbol () const noexcept |
bool | isTimeSeriesSubscriptionSymbol () const noexcept |
std::optional< TimeSeriesSubscriptionSymbol > | asTimeSeriesSubscriptionSymbol () const noexcept |
bool | isCandleSymbol () const noexcept |
std::optional< CandleSymbol > | asCandleSymbol () const noexcept |
Static Public Member Functions | |
static void | freeGraal (void *graalNative) noexcept |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
A helper wrapper class needed to pass heterogeneous symbols using a container and convert them to internal Graal representation.
|
inlinenoexcept |
Constructor for any wrapped symbol.
Must be implicit to wrap symbols passed to collection or container
Symbol | The symbol type |
symbol | The symbol |
|
inlinenoexcept |
Constructor for any wrapped string symbol.
Must be implicit to wrap symbols passed to collection or container
stringSymbol | The wrapped string (std::string, std::string_view, const char*) symbol |
|
inlinenoexcept |
Constructor for any wrapped wildcard (*) symbol.
wildcardSymbol | The wrapped wildcard symbol |
|
inlinenoexcept |
Constructor for IndexedEventSubscriptionSymbol.
indexedEventSubscriptionSymbol | The IndexedEventSubscriptionSymbol |
|
inlinenoexcept |
Constructor for TimeSeriesSubscriptionSymbol.
timeSeriesSubscriptionSymbol | The TimeSeriesSubscriptionSymbol |
|
inlinenoexcept |
Constructor for CandleSymbol.
candleSymbol | The CandleSymbol |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticnoexcept |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
|
inlinenoexcept |
true
if current SymbolWrapper holds a CandleSymbol
|
inlinenoexcept |
true
if current SymbolWrapper holds a IndexedEventSubscriptionSymbol
|
inlinenoexcept |
true
if current SymbolWrapper holds a StringSymbol
|
inlinenoexcept |
true
if current SymbolWrapper holds a TimeSeriesSubscriptionSymbol
|
inlinenoexcept |
true
if current SymbolWrapper holds a WildcardSymbol
|
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.
|
inlinenoexcept |
Returns a string representation of the current object.