Represents [wildcard] subscription to all events of the specific event type.
More...
#include <WildcardSymbol.hpp>
|
void * | toGraal () const noexcept |
| Allocates memory for the dxFeed Graal SDK structure (recursively if necessary).
|
|
std::string | toString () const noexcept |
| Returns string representation of this wildcard subscription symbol.
|
|
|
static void | freeGraal (void *graalNative) noexcept |
| Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
|
|
Represents [wildcard] subscription to all events of the specific event type.
The WildcardSymbol::ALL constant can be added to any DXFeedSubscription instance with addSymbols method to the effect of subscribing to all possible event symbols. The corresponding subscription will start receiving all published events of the corresponding types.
◆ freeGraal()
void dxfcpp::WildcardSymbol::freeGraal |
( |
void * | graalNative | ) |
|
|
staticnoexcept |
Releases the memory occupied by the dxFeed Graal SDK structure (recursively if necessary).
- Parameters
-
graalNative | The pointer to the dxFeed Graal SDK structure. |
◆ toGraal()
void * dxfcpp::WildcardSymbol::toGraal |
( |
| ) |
const |
|
noexcept |
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.
- Returns
- The pointer to the filled dxFeed Graal SDK structure
◆ toString()
std::string dxfcpp::WildcardSymbol::toString |
( |
| ) |
const |
|
inlinenoexcept |
Returns string representation of this wildcard subscription symbol.
- Returns
- string representation of this wildcard subscription symbol.
◆ ALL
Represents [wildcard] subscription to all events of the specific event type.
NOTE: Wildcard subscription can create extremely high network and CPU load for certain kinds of high-frequency events like quotes. It requires a special arrangement on the side of upstream data provider and is disabled by default in upstream feed configuration. Make that sure you have adequate resources and understand the impact before using it. It can be used for low-frequency events only (like Forex quotes), because each instance of DXFeedSubscription processes events in a single thread and there is no provision to load-balance wildcard subscription amongst multiple threads. Contact your data provider for the corresponding configuration arrangement if needed.
- See also
- WildcardSymbol
◆ RESERVED_PREFIX
const std::string dxfcpp::WildcardSymbol::RESERVED_PREFIX = "*" |
|
static |
Symbol prefix that is reserved for wildcard subscriptions.
Any subscription starting with "*" is ignored with the exception of WildcardSymbol subscription.