FIX 4.0 Demo 1.0
Loading...
Searching...
No Matches
fix40::SessionID Struct Reference

FIX 会话标识符 More...

#include <application.hpp>

Collaboration diagram for fix40::SessionID:
Collaboration graph

Public Member Functions

 SessionID ()=default
 默认构造函数
 
 SessionID (const std::string &sender, const std::string &target)
 构造会话标识符
 
std::string to_string () const
 转换为字符串表示
 
bool operator== (const SessionID &other) const
 相等比较
 
bool operator!= (const SessionID &other) const
 不等比较
 

Public Attributes

std::string senderCompID
 发送方标识符
 
std::string targetCompID
 接收方标识符
 

Detailed Description

FIX 会话标识符

唯一标识一个 FIX 会话,由发送方和接收方的 CompID 组成。 用于在多会话环境中区分不同的连接。

Constructor & Destructor Documentation

◆ SessionID() [1/2]

fix40::SessionID::SessionID ( )
default

默认构造函数

◆ SessionID() [2/2]

fix40::SessionID::SessionID ( const std::string &  sender,
const std::string &  target 
)
inline

构造会话标识符

Parameters
sender发送方 CompID
target接收方 CompID

Member Function Documentation

◆ operator!=()

bool fix40::SessionID::operator!= ( const SessionID other) const
inline

不等比较

◆ operator==()

bool fix40::SessionID::operator== ( const SessionID other) const
inline

相等比较

◆ to_string()

std::string fix40::SessionID::to_string ( ) const
inline

转换为字符串表示

Returns
std::string 格式为 "sender->target"
Here is the caller graph for this function:

Member Data Documentation

◆ senderCompID

std::string fix40::SessionID::senderCompID

发送方标识符

◆ targetCompID

std::string fix40::SessionID::targetCompID

接收方标识符


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