Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
x1::XLTQuoteDecoder类 参考

xlight行情解码迭代器 更多...

#include <xlt_quote_decoder.h>

Public 类型

using StepFunc = const XLTQuoteItem* (*)(uint8_t*& data, uint32_t& remain, XLTQuoteItem& item)
 

Public 成员函数

 XLTQuoteDecoder (QuoteMCType mc_type, const void *msg_data, uint32_t msg_len)
 
 ~XLTQuoteDecoder ()=default
 
 XLTQuoteDecoder (const XLTQuoteDecoder &)=delete
 不可拷贝、不可移动
 
XLTQuoteDecoderoperator= (const XLTQuoteDecoder &)=delete
 
const XLTQuoteItemget_next ()
 获取下一条解码后的行情数据
 

Protected 属性

StepFunc step_fn_
 
uint8_t * data_
 
uint32_t remain_
 
XLTQuoteItem item_
 

详细描述

xlight行情解码迭代器

支持以下行情源: QuoteMCType::XLT_SSE_L1 QuoteMCType::XLT_SZSE_L1

成员类型定义说明

◆ StepFunc

using x1::XLTQuoteDecoder::StepFunc = const XLTQuoteItem* (*)(uint8_t*& data, uint32_t& remain, XLTQuoteItem& item)

构造及析构函数说明

◆ XLTQuoteDecoder() [1/2]

x1::XLTQuoteDecoder::XLTQuoteDecoder ( QuoteMCType mc_type,
const void * msg_data,
uint32_t msg_len )

◆ ~XLTQuoteDecoder()

x1::XLTQuoteDecoder::~XLTQuoteDecoder ( )
default

◆ XLTQuoteDecoder() [2/2]

x1::XLTQuoteDecoder::XLTQuoteDecoder ( const XLTQuoteDecoder & )
delete

不可拷贝、不可移动

成员函数说明

◆ get_next()

const XLTQuoteItem * x1::XLTQuoteDecoder::get_next ( )

获取下一条解码后的行情数据

返回
非空指针表示一条有效数据,nullptr 表示遍历结束或构造时 mc_type 不支持
注解
返回的指针在下一次调用 get_next() 后失效(指向内部复用对象)
data 指针的生命周期与构造时传入的 msg_data 一致

◆ operator=()

XLTQuoteDecoder & x1::XLTQuoteDecoder::operator= ( const XLTQuoteDecoder & )
delete

类成员变量说明

◆ data_

uint8_t* x1::XLTQuoteDecoder::data_
protected

◆ item_

XLTQuoteItem x1::XLTQuoteDecoder::item_
protected

◆ remain_

uint32_t x1::XLTQuoteDecoder::remain_
protected

◆ step_fn_

StepFunc x1::XLTQuoteDecoder::step_fn_
protected

该类的文档由以下文件生成: