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) | |
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 |
Allocates memory for the dxFeed Graal SDK structure (recursively if necessary). | |
Static Protected Member Functions | |
static void | freeGraal (void *graalNative) |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary). | |
static IndexedEventSubscriptionSymbol | fromGraal (void *graalNative) |
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.
DXFCPP_BEGIN_NAMESPACE IndexedEventSubscriptionSymbol::IndexedEventSubscriptionSymbol | ( | const SymbolWrapper & | eventSymbol, |
const IndexedEventSource & | source ) |
Creates indexed event subscription symbol with a specified event symbol and source.
eventSymbol | the wrapped event symbol (CandleSymbol, WildcardSymbol, etc). |
source | the source. |
References IndexedEventSubscriptionSymbol().
Referenced by IndexedEventSubscriptionSymbol().
|
staticprotected |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
graalNative | The pointer to the dxFeed Graal SDK structure. |
References IndexedEventSource::freeGraal(), and SymbolWrapper::freeGraal().
Referenced by SymbolWrapper::freeGraal().
|
staticprotected |
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. |
std::invalid_argument |
References IndexedEventSource::fromGraal(), and SymbolWrapper::fromGraal().
Referenced by SymbolWrapper::fromGraal().
|
virtual |
Returns the wrapped event symbol (CandleSymbol, WildcardSymbol, etc).
|
virtual |
Returns indexed event source.
|
protectedvirtual |
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 TimeSeriesSubscriptionSymbol.
|
virtualnoexcept |
Returns string representation of this indexed event subscription symbol.
Reimplemented in TimeSeriesSubscriptionSymbol.