Apama Capital Markets Foundation  10.7.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
com::softwareag::marketdata::NewsDataPublisher Class Reference

#include <Connectivity_MDPublisher.h>

Inheritance diagram for com::softwareag::marketdata::NewsDataPublisher:
com::softwareag::marketdata::MarketDataPublisher

Public Member Functions

 NewsDataPublisher (void *dataManagerPtr)
 
void SetNewsData (const std::string &subKey, const std::string &newsId, const StringSet &symbolSet, int64_t updateType, const std::string &headline, const std::string &story, const double sourceTimestamp, const NewsDataList &newsDataList, const double value=MDM_DEFAULT_FLOAT)
 
void DeleteNewsData (const std::string &subKey, const std::string &newsId, const StringSet &symbolSet, const double sourceTimestamp, const NewsDataList &newsDataList)
 
void DefineNewsSchema (const std::string &subKey, const NewsDataList &newsDataList)
 
- Public Member Functions inherited from com::softwareag::marketdata::MarketDataPublisher
 MarketDataPublisher (void *dataManagerPtr)
 
void SetExtraParam (const std::string &subKey, const std::string &paramName, const std::string &type, const std::string &value, const std::string &description)
 
void SetExtraParams (const std::string &subKey, const ExtraParamList &extraParamList)
 
void SetExtraParamValue (const std::string &subKey, const std::string &paramName, const std::string &value)
 
void SetExtraParamsValue (const std::string &subKey, const ExtraParamValueList &extraParamValueList)
 
void RemoveExtraParam (const std::string &subKey, const std::string &paramName, bool permanent=false)
 
void RemoveExtraParams (const std::string &subKey, const StringList &paramNames, bool permanent=false)
 

Additional Inherited Members

- Protected Attributes inherited from com::softwareag::marketdata::MarketDataPublisher
void * dataManagerPtr_
 

Detailed Description

Constructor & Destructor Documentation

com::softwareag::marketdata::NewsDataPublisher::NewsDataPublisher ( void *  dataManagerPtr)
inline

NewsDataPublisher constructor

Parameters
dataManagerPtrGeneric void* pointer to take any stream.

Member Function Documentation

void com::softwareag::marketdata::NewsDataPublisher::DefineNewsSchema ( const std::string &  subKey,
const NewsDataList newsDataList 
)

Set the News Delete data to send at the next commit.

Parameters
subKeyThe subscription key this News Delete is for.
newsDataListThe list of NewsData Key:Value pairs for this News Feed. The type and description in NewsData should be set.
void com::softwareag::marketdata::NewsDataPublisher::DeleteNewsData ( const std::string &  subKey,
const std::string &  newsId,
const StringSet symbolSet,
const double  sourceTimestamp,
const NewsDataList newsDataList 
)

Set the News Delete data to send at the next commit.

Parameters
subKeyThe subscription key this News Delete is for.
newsIdThe id of this News Delete as supplied by the source feed. Can be blank.
symbolSetThe set of symbols this News Delete is for, used for filtering by symbol. Can be empty. The library always sends on if empty.
sourceTimestampThe timestamp for this News Delete as supplied by the source feed. Normalised to UTC.
newsDataListThe list of NewsData Key:Value pairs for this News Delete. The type and description in NewsData can be blank. If an unknown Key is supplied, a schema update will be sent before the News Data.
void com::softwareag::marketdata::NewsDataPublisher::SetNewsData ( const std::string &  subKey,
const std::string &  newsId,
const StringSet symbolSet,
int64_t  updateType,
const std::string &  headline,
const std::string &  story,
const double  sourceTimestamp,
const NewsDataList newsDataList,
const double  value = MDM_DEFAULT_FLOAT 
)

Set the News Data to send at the next commit.

Parameters
subKeyThe subscription key this News Data is for.
newsIdThe id of this News Data as supplied by the source feed. Can be blank.
symbolSetThe set of symbols this News Data is for, used for filtering by symbol. Can be empty.
updateTypeThe update type (UPDATETYPE_ADD_INT, UPDATETYPE_MODIFY_INT, UPDATETYPE_REMOVE_INT from MDM_Constants.h) of this News Data.
headlineThe headline of this News Data. Can be blank.
storyThe story text of this News Data. Can be blank.
sourceTimestampThe timestamp for this News Data as supplied by the source feed. Normalised to UTC.
newsDataListThe list of NewsData Key:Value pairs for this News Data. The type and description in NewsData can be blank. If an unknown Key is supplied, a schema update will be sent before the News Data.
valueThe value of this News Data. Used for economic indicators. Can be set to MDM_DEFAULT_FLOAT.

The documentation for this class was generated from the following file: