APP下载

基于Qt的神通数据库与XML文件交互

2018-02-01姜家文韩耀斌贾壮

软件导刊 2018年1期
关键词:跨平台程序数据库

姜家文+韩耀斌+贾壮

摘要:

国内外信息安全事件频发,为保障政府、国防、金融、电力、机要、保密等关键领域信息安全,软件国产化成为大势所趋。Qt开发工具开源跨平台;国产神通数据库兼容Oracle、移植性强;XML格式通用,为程序间数据交换必备,三者结合使软件国产化开发成为可能。阐述了Qt开发环境下神通数据库与xml文件的交互,给出部分代码,为国产软件开发者提供思路与解决方法。

关键词:

xml;神通数据库;Qt;软件开发交互

DOIDOI:10.11907/rjdk.172195

中图分类号:TP392

文献标识码:A文章编号文章编号:1672-7800(2018)001-0192-03

Abstract:With the domestic and international information security incidents frequently, in order to protect the government, defense, finance, electricity, confidential, confidential and other key areas of information security, software localization become the new trend. Qt development tools which is open source and cross-platform, Shentong database compatible with oracle and portability, XML (Extensible Markup Language) which is format common, and necessary at data exchanging between programs. It makes the localization of software development possible that the combination of the three. In this paper, based on Qt development environment, a brief introduction and some detailed code are given for interaction of Shentong database and xml file, which provideideas and solutions for domestic software developers.

Key Words:xml; Shentong database; Qt; software development; interaction

0引言

近年,国内外各种信息安全事件频发,特别是“棱镜门”事件给各国敲响了警钟。政府、国防、金融、电力、机要、保密等领域信息安全面临巨大威胁,在信息安全要求高的领域,采用国产软件成为大势所趋[1-4]。Qt作为一种强大开源跨平台开发工具成为国产软件首选开发工具。神通数据库作为国内知名有自主知识产权的大型通用关系型数据库,其对Oracle数据库强大兼容性与跨平台可移植性获得了国产软件开发者青睐。XML(Extensible Markup Language,可扩展标记语言)是一种置标语言,用于数据存储。XML虽然比二进制数据占用空间更多,但简单易掌握,成为程序间数据交换公共语言[5]。XML易与Windows、Linux及其它平台信息结合。通过加载XML数据,并可以XML格式输出结果,在不同程序间传递数据。XML由W3C制定,其标准化工作由W3C的XML工作组负责,作为一种共用格式该技术不会成为少数公司盈利工具,因此XML使用极其广泛。Qt、神通数据库、XML三者结合为软件国产化创造了条件。……

登录APP查看全文

猜你喜欢

跨平台程序数据库
试论我国未决羁押程序的立法完善
跨平台APEX接口组件的设计与实现
“程序猿”的生活什么样
英国与欧盟正式启动“离婚”程序程序
数据库
数据库
数据库
数据库
创卫暗访程序有待改进
基于QT的跨平台输电铁塔监控终端软件设计与实现