BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
client_app::App Class Reference

Coordinates the lifecycle of the network and UI threads. More...

#include <App.h>

Collaboration diagram for client_app::App:
Collaboration graph

Public Member Functions

 App ()
 
 ~App ()
 
int run ()
 Entry point that runs the application until closure.
 

Private Member Functions

void initLogic (trading_core::TradingCore &core)
 

Private Attributes

std::unique_ptr< ohlc::CandleAggregatormAggregator
 
client_ui::OrderBookPanel mBookPanel
 
client_ui::ChartPanel mChartPanel
 
client_ui::ConnectionPanel mConnPanel
 
trading_core::TradingCoremCurrentCore = nullptr
 
admin::ExchangeManager mExchMgr
 
admin::ExchangePanel mExchPanel
 
std::shared_ptr< fix_client::FixClientSessionmFixSession
 
std::unique_ptr< data::MarketHistoryRepositorymHistoryRepo
 
asio::io_context mIoCtx
 
bool mLogicInitialized = false
 
std::thread mNetworkThread
 
std::unique_ptr< orderbook::OrderBookmOrderBook
 
client_ui::SimulatorPanel mSimPanel
 
std::unique_ptr< simulator::StochasticSimulatormSimulator
 
client_ui::TradingPanel mTradingPanel
 
client_ui::UIManager mUI
 
asio::executor_work_guard< asio::io_context::executor_type > mWork
 

Detailed Description

Coordinates the lifecycle of the network and UI threads.

Constructor & Destructor Documentation

◆ App()

client_app::App::App ( )

◆ ~App()

client_app::App::~App ( )
Here is the call graph for this function:

Member Function Documentation

◆ initLogic()

void client_app::App::initLogic ( trading_core::TradingCore core)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

int client_app::App::run ( )

Entry point that runs the application until closure.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mAggregator

std::unique_ptr<ohlc::CandleAggregator> client_app::App::mAggregator
private

◆ mBookPanel

client_ui::OrderBookPanel client_app::App::mBookPanel
private

◆ mChartPanel

client_ui::ChartPanel client_app::App::mChartPanel
private

◆ mConnPanel

client_ui::ConnectionPanel client_app::App::mConnPanel
private

◆ mCurrentCore

trading_core::TradingCore* client_app::App::mCurrentCore = nullptr
private

◆ mExchMgr

admin::ExchangeManager client_app::App::mExchMgr
private

◆ mExchPanel

admin::ExchangePanel client_app::App::mExchPanel
private

◆ mFixSession

std::shared_ptr<fix_client::FixClientSession> client_app::App::mFixSession
private

◆ mHistoryRepo

std::unique_ptr<data::MarketHistoryRepository> client_app::App::mHistoryRepo
private

◆ mIoCtx

asio::io_context client_app::App::mIoCtx
private

◆ mLogicInitialized

bool client_app::App::mLogicInitialized = false
private

◆ mNetworkThread

std::thread client_app::App::mNetworkThread
private

◆ mOrderBook

std::unique_ptr<orderbook::OrderBook> client_app::App::mOrderBook
private

◆ mSimPanel

client_ui::SimulatorPanel client_app::App::mSimPanel
private

◆ mSimulator

std::unique_ptr<simulator::StochasticSimulator> client_app::App::mSimulator
private

◆ mTradingPanel

client_ui::TradingPanel client_app::App::mTradingPanel
private

◆ mUI

client_ui::UIManager client_app::App::mUI
private

◆ mWork

asio::executor_work_guard<asio::io_context::executor_type> client_app::App::mWork
private

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