BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
trading_core::Command Class Reference

An internal representation of a request, converted from an FIX message into this object for faster processing. More...

#include <Command.h>

Inheritance diagram for trading_core::Command:
Inheritance graph
Collaboration diagram for trading_core::Command:
Collaboration graph

Public Member Functions

 Command (const CommandType type, common::ClientID clientId, const common::Timestamp timestamp)
 Constructs a new Command object.
 
virtual ~Command ()=default
 Virtual destructor for the Command class.
 
common::ClientID getClientId () const
 Gets the client's identifier.
 
common::Timestamp getTimestamp () const
 Gets the command's timestamp.
 
CommandType getType () const
 Gets the type of the command.
 

Private Attributes

common::ClientID mClientId
 
common::Timestamp mTimestamp
 The timestamp of when the command was created.
 
CommandType mType
 The type of the command.
 

Detailed Description

An internal representation of a request, converted from an FIX message into this object for faster processing.

This is the base class for all commands in the trading system. It provides a common interface for handling different types of requests, such as new orders, modifications, and cancellations.

Constructor & Destructor Documentation

◆ Command()

trading_core::Command::Command ( const CommandType  type,
common::ClientID  clientId,
const common::Timestamp  timestamp 
)
inline

Constructs a new Command object.

Parameters
typeThe type of the command.
clientIdThe identifier of the client sending the command.
timestampThe timestamp of when the command was created.

◆ ~Command()

virtual trading_core::Command::~Command ( )
virtualdefault

Virtual destructor for the Command class.

Member Function Documentation

◆ getClientId()

common::ClientID trading_core::Command::getClientId ( ) const
inline

Gets the client's identifier.

Here is the caller graph for this function:

◆ getTimestamp()

common::Timestamp trading_core::Command::getTimestamp ( ) const
inline

Gets the command's timestamp.

◆ getType()

CommandType trading_core::Command::getType ( ) const
inline

Gets the type of the command.

Member Data Documentation

◆ mClientId

common::ClientID trading_core::Command::mClientId
private

The identifier of the client sending the command.

◆ mTimestamp

common::Timestamp trading_core::Command::mTimestamp
private

The timestamp of when the command was created.

◆ mType

CommandType trading_core::Command::mType
private

The type of the command.


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