#include <OnixS/Senaf/MarketData/Handler.h>
Static Public Member Functions | |
static const std::string & | version () |
The Handler
class is responsible for connecting to the BME SENAF Financial Asset Electronic Trading System, processing exchange events, and notifying user code through callbacks. It ensures efficient handling of market data, logging, and listener registration, providing a robust interface for interacting with the exchange's data feed.
Handler | ( | const HandlerSettings & | handlerSettings | ) |
Performs instance initialization.
handlerSettings | defines values for various settings which affect handler behavior like enabling logging during execution of the handler. |
std::string licenseExpirationDate | ( | ) | const |
Retrieves the expiration date of the Handler's license.
This method returns a string representing the date when the Handler's license will expire. The expiration date is provided in the format "YYYYMMDD", where:
This information is useful for ensuring that the Handler's license remains valid and for tracking when renewal is required.
void logDebug | ( | const std::string & | message | ) |
Logs a debug message for diagnostic purposes.
This method records a debug-level message to the logging system, which can be useful for tracking application behavior and troubleshooting. It is safe to call this method from any thread.
message | The debug message to be logged. |
void logError | ( | const std::string & | message | ) |
Logs an error message to the logging system.
This method records an error-level message, which can be critical for monitoring application health and diagnosing issues. It is safe to call this method from any thread.
message | The error message to be logged, providing context for the issue. |
void logMessage | ( | const std::string & | message | ) |
Logs an informational message to the logging system.
This method records an informational-level message, which can be useful for general application logging and monitoring. It is safe to call this method from any thread.
message | The informational message to be logged. |
void logWarning | ( | const std::string & | message | ) |
Logs a warning message to the logging system.
This method records a warning-level message, which can be useful for highlighting potential issues or unusual conditions in the application. It is safe to call this method from any thread.
message | The warning message to be logged. |
void registerErrorListener | ( | ErrorListener * | listener | ) |
void registerHandlerStateChangeListener | ( | HandlerStateChangeListener * | listener | ) |
void registerLogReplayListener | ( | LogReplayListener * | listener | ) |
void registerMarketControlListener | ( | MarketControlListener * | listener | ) |
void registerMarketPublicationListener | ( | MarketPublicationListener * | listener | ) |
void registerOrderBookUpdateListener | ( | OrderBookUpdateListener * | listener | ) |
void registerPrivateManagementListener | ( | PrivateManagementListener * | listener | ) |
void registerReferenceListener | ( | ReferenceListener * | listener | ) |
void registerSecurityDbListener | ( | SecurityDbListener * | listener | ) |
void registerWarningListener | ( | WarningListener * | listener | ) |
void start | ( | ) |
Starts the Handler.
exception | in case of unable to establish TCP connection. |
HandlerStates::Enum state | ( | ) | const |
void stop | ( | ) |
Stops the Handler.
void subscribe | ( | const MarketSubscription & | subscription | ) |
Subscribes to market data updates based on the provided subscription details.
This method registers the specified market subscription, allowing the Handler to receive updates related to the market events specified in the subscription. It is safe to call this method from any thread.
subscription | The details of the market subscription to be registered. |
|
static |
Retrieves the version of the Handler.
This method returns a constant reference to a string representing the version of the Handler in the format "X.Y.Z". The version information is useful for tracking the Handler's release or update state in the system.