BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
data::TradeIDRepository Class Reference

Persistent storage for trade id value. More...

#include <TradeIDRepository.h>

Collaboration diagram for data::TradeIDRepository:
Collaboration graph

Public Member Functions

 TradeIDRepository (DatabaseWorker *dbWorker)
 
void getCurrentTradeID (std::function< void(common::TradeID)> callback)
 
void initDatabase ()
 
void setCurrentTradeID (common::TradeID tradeID)
 
void truncateTradeID ()
 

Private Attributes

DatabaseWorkermDb
 

Detailed Description

Persistent storage for trade id value.

Constructor & Destructor Documentation

◆ TradeIDRepository()

data::TradeIDRepository::TradeIDRepository ( DatabaseWorker dbWorker)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ getCurrentTradeID()

void data::TradeIDRepository::getCurrentTradeID ( std::function< void(common::TradeID)>  callback)
Here is the call graph for this function:

◆ initDatabase()

void data::TradeIDRepository::initDatabase ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentTradeID()

void data::TradeIDRepository::setCurrentTradeID ( common::TradeID  tradeID)
Here is the call graph for this function:

◆ truncateTradeID()

void data::TradeIDRepository::truncateTradeID ( )
Here is the call graph for this function:

Member Data Documentation

◆ mDb

DatabaseWorker* data::TradeIDRepository::mDb
private

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