The invention belongs to the field of computer software, in particular to a method for automatically creating a head file data interface of an interface control file. The invention provides the interface control document automatic generation of ideas and methods of data interface header files, changed by the programmer to write a header file interface control manual data interface, so as to improve the efficiency and degree of standardization. In the automatic generation of the interface control document interface data header file process, the interface control signal and data blocks in the file in accordance with the procedures required for encoding organization structure and encoding method according to the requirements of the type of structure named method and variable names, is to realize the automatic generation of key interface data header file, the structure of progressive output the header file interface data signal and a block of data, obtained can be directly used for header file interface data of software development.
【技术实现步骤摘要】
一种将接口控制文件自动生成头文件数据接口的方法
:本专利技术属于计算机软件领域,具体涉及一种将接口控制文件自动生成软件开发的头文件数据接口的方法。
技术介绍
:接口控制文件是编写软件头文件中数据接口的重要输入,要按程序编码要求严格遵照接口控制文件编写头文件中的数据接口。在电子综合化设计中,接口控制文件(InterfaceControlDocument,ICD)定义了各个系统、设备之间要处理和管理的数据块、信号及其数据格式的详细信息,由总体设计单位在系统的详细设计过程中编写,是系统控制软件开发的重要依据。头文件是软件程序的组成文件之一,数据接口是软件头文件的重要组成,需要按照程序编码要求编写,软件头文件的数据接口必须按照接口控制文件的要求组织定义。《航空电子技术》2003年3月第34卷第1期第15页《XML技术在航空电子接口控制中的应用前景》介绍了将接口控制文件使用XML技术进行管理的应用前景,提出了使用XML语言组织接口控制文件的思路,将接口控制文件存储成XML文档,应用XML技术对接口控制文件进行管理和查询。专利申请号201120330280.4“接口控制文件解 ...
【技术保护点】
一种将接口控制文件自动生成头文件数据接口的方法,其特征是,本方法包括以下步骤:第一步,读入接口控制文件,并创建头文件;第二步,从接口控制文件获取第一个信号的详细信息,包括信号名称、比例因子、构成信号的字段、字段的位置关系、字段的大小、字段的含义信息,构成信号的字段数量;第三步,解析信号的详细信息,为信号的结构体类型名称和变量名称命名,获取结构体类型和变量的注释信息,组织信号的结构体,向头文件逐行输出信号的结构体;第四步,判断是否已解析全部信号,如果未全部解析,则从接口控制文件获取下一个信号的详细信息,返回第三步;如果已解析生成全部信号的结构体,则进入下一步;第五步,从接口控 ...
【技术特征摘要】
1.一种将接口控制文件自动生成头文件数据接口的方法,其特征是,本方法包括以下步骤:第一步,读入接口控制文件,并创建头文件;第二步,从接口控制文件获取第一个信号的详细信息,包括信号名称、比例因子、构成信号的字段、字段的位置关系、字段的大小、字段的含义信息,构成信号的字段数量;第三步,解析信号的详细信息,为信号的结构体类型名称和变量名称命名,获取结构体类型和变量的注释信息,组织信号的结构体,向头文件逐行输出信号的结构体;第四步,判断是否已解析全部信号,如果未全部解析,则从接口控制文件获取下一个信号的详细信息,返回第三步;如果已解析生成全部信号的结构体,...
【专利技术属性】
技术研发人员:葛晨,余爱国,
申请(专利权)人:中国直升机设计研究所,
类型:发明
国别省市:江西,36
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。