BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
client_ui::ConnectionPanel Class Reference

Provides a Dear ImGui interface for managing the FIX connection. More...

#include <ConnectionPanel.h>

Collaboration diagram for client_ui::ConnectionPanel:
Collaboration graph

Classes

struct  LogEntry
 

Public Member Functions

 ConnectionPanel ()
 
 ~ConnectionPanel ()
 
void render (std::shared_ptr< fix_client::FixClientSession > &session, asio::io_context &ioContext)
 Renders the connection panel UI.
 

Private Member Functions

void addLog (const std::string &direction, const std::string &msg)
 

Private Attributes

bool mAutoScroll = true
 
bool mForceReset = false
 
int mHeartbeatInterval = 30
 
char mHost [128] = "127.0.0.1"
 
std::vector< LogEntrymLogs
 
int mPort = 8088
 
char mSenderCompId [64] = "CLIENT1"
 
char mTargetCompId [64] = "BETA_EXCHANGE"
 

Detailed Description

Provides a Dear ImGui interface for managing the FIX connection.

This panel lives in client_ui (not client_fix) to keep the protocol library free of GUI dependencies.

Constructor & Destructor Documentation

◆ ConnectionPanel()

client_ui::ConnectionPanel::ConnectionPanel ( )

◆ ~ConnectionPanel()

client_ui::ConnectionPanel::~ConnectionPanel ( )

Member Function Documentation

◆ addLog()

void client_ui::ConnectionPanel::addLog ( const std::string &  direction,
const std::string &  msg 
)
private

◆ render()

void client_ui::ConnectionPanel::render ( std::shared_ptr< fix_client::FixClientSession > &  session,
asio::io_context &  ioContext 
)

Renders the connection panel UI.

Parameters
sessionShared pointer to the FIX session.
ioContextReference to the ASIO io_context (for starting connections).
Here is the caller graph for this function:

Member Data Documentation

◆ mAutoScroll

bool client_ui::ConnectionPanel::mAutoScroll = true
private

◆ mForceReset

bool client_ui::ConnectionPanel::mForceReset = false
private

◆ mHeartbeatInterval

int client_ui::ConnectionPanel::mHeartbeatInterval = 30
private

◆ mHost

char client_ui::ConnectionPanel::mHost[128] = "127.0.0.1"
private

◆ mLogs

std::vector<LogEntry> client_ui::ConnectionPanel::mLogs
private

◆ mPort

int client_ui::ConnectionPanel::mPort = 8088
private

◆ mSenderCompId

char client_ui::ConnectionPanel::mSenderCompId[64] = "CLIENT1"
private

◆ mTargetCompId

char client_ui::ConnectionPanel::mTargetCompId[64] = "BETA_EXCHANGE"
private

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