Xlight API用户手册 v1.6.0.23
Xlight极速柜台接口文档
载入中...
搜索中...
未找到
xlt_security_filter.h
浏览该文件的文档.
1#pragma once
2#include "xlt_data_type.h"
3
4namespace x1 {
10 public:
15 void disable() {enable_ = false;}
19 void enable() {enable_ = true;}
26 bool add(const char* security_code);
32 bool check(const char* security_code);
33 private:
34 uint64_t* security_mask_ = nullptr;
35 bool enable_ = true;
36 };
37}
证券过滤器类,提供添加过滤证券代码和检查证券代码是否被订阅的功能
定义 xlt_security_filter.h:9
bool add(const char *security_code)
添加证券代码(添加订阅)
bool check(const char *security_code)
void disable()
禁用功能,禁用后所有证券代码都认为被订阅,check永远返回true
定义 xlt_security_filter.h:15
void enable()
启用功能,启用后只有添加到过滤器中的证券代码才认为被订阅
定义 xlt_security_filter.h:19
定义 xlt_data_type.h:13
本文件定义XLT API中使用的基本数据类型和常量