Libannhoo_md_sdk  1.6.1
for index, tick(entrust and trade), and snapshot with solar flare
 All Classes Namespaces Files Functions Variables Pages
annhoo::IAHMdSpi Class Referenceabstract

This is the main interface to use library libAHQuotes. More...

#include <ah_md_spi.h>

Inheritance diagram for annhoo::IAHMdSpi:
annhoo::AHMdSpiInl annhoo::SubscribeAndPrint

Public Member Functions

 IAHMdSpi ()
 Constucts a IAHMdSpi.
 
virtual ~IAHMdSpi ()
 Frees the IAHMdSpi object.
 
virtual void OnIndexCB (AHIndex *index)=0
 Callback for AHIndex. More...
 
virtual void OnTickCB (AHTick *data, uint16_t type)=0
 Callback for AHEntrust or AHTrade. More...
 
virtual void OnSnapshotCB (AHSnapshot *snapshot)=0
 Callback for AHSnapshot. More...
 

Detailed Description

This is the main interface to use library libAHQuotes.

User should implement four methods: OnIndexCB, OnEntrustAndTradeCB, and OnSnapshotCB

Definition at line 26 of file ah_md_spi.h.

Member Function Documentation

virtual void annhoo::IAHMdSpi::OnIndexCB ( AHIndex index)
pure virtual

Callback for AHIndex.

Parameters
[in]indexIndex pointer

Implemented in annhoo::SubscribeAndPrint, and annhoo::AHMdSpiInl.

virtual void annhoo::IAHMdSpi::OnSnapshotCB ( AHSnapshot snapshot)
pure virtual

Callback for AHSnapshot.

Parameters
[in]snapshotsnapshot pointer

Implemented in annhoo::SubscribeAndPrint, and annhoo::AHMdSpiInl.

virtual void annhoo::IAHMdSpi::OnTickCB ( AHTick data,
uint16_t  type 
)
pure virtual

Callback for AHEntrust or AHTrade.

Parameters
[in]dataAHTick, member tag, 0: AHEntrust, 1: AHTrade

Implemented in annhoo::SubscribeAndPrint, and annhoo::AHMdSpiInl.


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