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::AHMdSpiInl Class Reference
Inheritance diagram for annhoo::AHMdSpiInl:
annhoo::IAHMdSpi

Public Member Functions

 AHMdSpiInl (const std::string &index_filename, const std::string &tick_filename, const std::string &snap_shot_filename, const char *delimiter=", ", const char *suffix="\n")
 
 AHMdSpiInl (const AHMdSpiInl &r)=delete
 
 AHMdSpiInl (AHMdSpiInl &&r)=delete
 
AHMdSpiInloperator= (const AHMdSpiInl &r)=delete
 
AHMdSpiInloperator= (AHMdSpiInl &&r)=delete
 
virtual void OnIndexCB (AHIndex *index) override
 Callback for AHIndex. More...
 
virtual void OnTickCB (AHTick *tick, uint16_t type) override
 Callback for AHEntrust or AHTrade. More...
 
virtual void OnSnapshotCB (AHSnapshot *snap_shot) override
 Callback for AHSnapshot. More...
 
- Public Member Functions inherited from annhoo::IAHMdSpi
 IAHMdSpi ()
 Constucts a IAHMdSpi.
 
virtual ~IAHMdSpi ()
 Frees the IAHMdSpi object.
 

Detailed Description

Definition at line 24 of file ah_md_spi_inl.h.

Member Function Documentation

void annhoo::AHMdSpiInl::OnIndexCB ( AHIndex index)
overridevirtual

Callback for AHIndex.

Parameters
[in]indexIndex pointer

Implements annhoo::IAHMdSpi.

Definition at line 102 of file ah_md_spi_inl.cpp.

void annhoo::AHMdSpiInl::OnSnapshotCB ( AHSnapshot snapshot)
overridevirtual

Callback for AHSnapshot.

Parameters
[in]snapshotsnapshot pointer

Implements annhoo::IAHMdSpi.

Definition at line 281 of file ah_md_spi_inl.cpp.

void annhoo::AHMdSpiInl::OnTickCB ( AHTick data,
uint16_t  type 
)
overridevirtual

Callback for AHEntrust or AHTrade.

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

Implements annhoo::IAHMdSpi.

Definition at line 168 of file ah_md_spi_inl.cpp.


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