66 lines
2.1 KiB
C++
66 lines
2.1 KiB
C++
/**
|
|
* @file include/ActivOneApi/Constants/DataSourceIds.h
|
|
*
|
|
* @brief Header for the DataSourceId definitions.
|
|
*/
|
|
|
|
#if (!defined ACTIV_ONE_API_CONSTANTS_DATA_SOURCES_IDS_H)
|
|
#define ACTIV_ONE_API_CONSTANTS_DATA_SOURCES_IDS_H
|
|
|
|
#include "ActivOneApi/External.h"
|
|
|
|
#include "ActivOneApi/TypeDefinitions.h"
|
|
|
|
//! Activ namespace.
|
|
namespace Activ
|
|
{
|
|
|
|
//! OneApi namespace.
|
|
namespace OneApi
|
|
{
|
|
|
|
//! The PLATFORM data source is used for service status messages, global statistics and core platform services.
|
|
const DataSourceId DATA_SOURCE_PLATFORM = 0;
|
|
|
|
//! The ACTIV data source is used for real-time ACTIV market data.
|
|
const DataSourceId DATA_SOURCE_ACTIV = 1;
|
|
|
|
//! The LOCAL data source, generated internally in APId providing platform state information and usage statistics.
|
|
const DataSourceId DATA_SOURCE_LOCAL = 2;
|
|
|
|
//! The ACTIV_DELAYED data source is used for all delayed ACTIV market data.
|
|
const DataSourceId DATA_SOURCE_ACTIV_DELAYED = 3;
|
|
|
|
//! The ACTIV_LOW_LATENCY data source is used for low latency real-time ACTIV market data.
|
|
const DataSourceId DATA_SOURCE_ACTIV_LOW_LATENCY = 4;
|
|
|
|
//! The ACTIV_FEED_HANDLER data source is used for real-time ACTIV market data sourced from the ACTIV feed handlers.
|
|
const DataSourceId DATA_SOURCE_ACTIV_FEED_HANDLER = 5;
|
|
|
|
//! Reserved DataSourceIds.
|
|
const DataSourceId DATA_SOURCE_ACTIV_RESERVED_6 = 6;
|
|
const DataSourceId DATA_SOURCE_ACTIV_RESERVED_7 = 7;
|
|
const DataSourceId DATA_SOURCE_ACTIV_RESERVED_8 = 8;
|
|
const DataSourceId DATA_SOURCE_ACTIV_RESERVED_9 = 9;
|
|
const DataSourceId DATA_SOURCE_ACTIV_RESERVED_10 = 10;
|
|
|
|
//! The TREP data source is used for all real-time TREP content.
|
|
const DataSourceId DATA_SOURCE_TREP = 100;
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @brief Convert a DataSourceId to a string.
|
|
*
|
|
* @param dataSourceId
|
|
*
|
|
* @return String representation of @a dataSourceId.
|
|
*/
|
|
ACTIV_ONE_API String DataSourceIdToString(const DataSourceId dataSourceId);
|
|
|
|
} // namespace OneApi
|
|
|
|
} // namespace Activ
|
|
|
|
#endif // (!defined ACTIV_ONE_API_CONSTANTS_DATA_SOURCES_IDS_H)
|