dxFeed Graal CXX API
|
Represents subscription to a specific source of indexed events. More...
#include <IndexedEventSubscriptionSymbol.hpp>
Public Member Functions | |
IndexedEventSubscriptionSymbol (const SymbolWrapper &eventSymbol, const IndexedEventSource &source) noexcept | |
Creates indexed event subscription symbol with a specified event symbol and source. | |
virtual const std::unique_ptr< SymbolWrapper > & | getEventSymbol () const |
Returns the wrapped event symbol (CandleSymbol, WildcardSymbol, etc). | |
virtual const IndexedEventSource & | getSource () const |
Returns indexed event source. | |
virtual std::string | toString () const noexcept |
Returns string representation of this indexed event subscription symbol. | |
Protected Member Functions | |
virtual void * | toGraal () const noexcept |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
Static Protected Member Functions | |
static void | freeGraal (void *graalNative) noexcept |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
static IndexedEventSubscriptionSymbol | fromGraal (void *graalNative) noexcept |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure (recursively if necessary). | |
Represents subscription to a specific source of indexed events.
This is symbol is observed by ObservableSubscriptionChangeListener methods symbolsAdded and symbolsRemoved when subscription to IndexedEvent is defined.
Instances of this class can be used with DXFeedSubscription to specify subscription to a particular source of indexed events. By default, when subscribing to indexed events by their event symbol object, the subscription is performed to all supported sources.
Indexed event subscription symbols are compared based on their eventSymbol and source.
|
noexcept |
Creates indexed event subscription symbol with a specified event symbol and source.
eventSymbol | the wrapped event symbol (CandleSymbol, WildcardSymbol, etc). |
source | the source. |
|
staticprotectednoexcept |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
|
staticprotectednoexcept |
Creates an object of the current type and fills it with data from the the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
|
virtual |
Returns the wrapped event symbol (CandleSymbol, WildcardSymbol, etc).
|
virtual |
Returns indexed event source.
|
protectedvirtualnoexcept |
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.
Reimplemented in dxfcpp::TimeSeriesSubscriptionSymbol.
|
virtualnoexcept |
Returns string representation of this indexed event subscription symbol.
Reimplemented in dxfcpp::TimeSeriesSubscriptionSymbol.