面向航空领域系统的hiredis C++单例动态库OA
A hiredis C++Singleton Dynamic Library for Qt:Design and Implementation in Aviation Systems
面向空中交通管制系统的高可靠性需求,本文设计并实现了一个基于Qt框架与hiredis的Redis访问库.该库以C++编写并封装为动态链接库,采用单例模式统一管理连接与配置,具备断线自动重连与调用前强制判连机制.接口设计避免隐式重试与阻塞操作,提供简洁调用方式与明确错误码,确保业务模块响应迅速、行为确定.该库已成功应用于管制席位、监控后台等关键模块,表现出良好的复用性与可控恢复能力,为航空安全关键系统的可靠运行提供了技术支撑.
This research aims to develop a highly reliable Redis access library for Air Traffic Control(ATC)systems,meeting stringent requirements for predictable operations,fault fallback,and auditable behavior.Based on the Qt framework and the hiredis library,the library is implemented in C++and packaged as a dynamic link library.It adopts the singleton pattern to unify connection and configuration management,supporting automatic reconnection upon disconnection and a mandatory connection check before each call.The interface design avoids implicit retries and blocking operations,providing a concise calling method and clear error codes to ensure rapid response and deterministic behavior of business modules.The library has been successfully applied in critical modules such as control workstations and monitoring backends,demonstrating good reusability and controllable recovery capabilities,thereby providing technical support for the reliable operation of safety-critical aviation systems.
张振华;苑博亚
中国人民解放军海军装备部 成都 610074四川川大智胜软件股份有限公司 成都 610041
信息技术与安全科学
空中交通管制远程字典服务器动态库单例模式连接管理
Air Traffic ControlRedisDynamic LibrarySingleton PatternConnection Management
《福建电脑》 2026 (2)
1-6,6
评论