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

风控检查结果 More...

#include <risk_manager.hpp>

Collaboration diagram for fix40::CheckResult:
Collaboration graph

Public Member Functions

 CheckResult ()
 默认构造函数(检查通过)
 
 CheckResult (RejectReason reason, const std::string &text)
 构造失败结果
 

Static Public Member Functions

static CheckResult success ()
 创建成功结果
 
static CheckResult failure (RejectReason reason, const std::string &text)
 创建失败结果
 

Public Attributes

bool passed
 检查是否通过
 
RejectReason rejectReason
 拒绝原因代码
 
std::string rejectText
 拒绝原因文本
 

Detailed Description

风控检查结果

包含检查是否通过、拒绝原因代码和拒绝原因文本。

Constructor & Destructor Documentation

◆ CheckResult() [1/2]

fix40::CheckResult::CheckResult ( )
inline

默认构造函数(检查通过)

Here is the caller graph for this function:

◆ CheckResult() [2/2]

fix40::CheckResult::CheckResult ( RejectReason  reason,
const std::string &  text 
)
inline

构造失败结果

Parameters
reason拒绝原因代码
text拒绝原因文本

Member Function Documentation

◆ failure()

static CheckResult fix40::CheckResult::failure ( RejectReason  reason,
const std::string &  text 
)
inlinestatic

创建失败结果

Parameters
reason拒绝原因代码
text拒绝原因文本
Returns
检查失败的结果
Here is the call graph for this function:
Here is the caller graph for this function:

◆ success()

static CheckResult fix40::CheckResult::success ( )
inlinestatic

创建成功结果

Returns
检查通过的结果
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ passed

bool fix40::CheckResult::passed

检查是否通过

◆ rejectReason

RejectReason fix40::CheckResult::rejectReason

拒绝原因代码

◆ rejectText

std::string fix40::CheckResult::rejectText

拒绝原因文本


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