CN101957759A - SDK interface conversion system and implementation method thereof - Google Patents

SDK interface conversion system and implementation method thereof Download PDF

Info

Publication number
CN101957759A
CN101957759A CN2010105142462A CN201010514246A CN101957759A CN 101957759 A CN101957759 A CN 101957759A CN 2010105142462 A CN2010105142462 A CN 2010105142462A CN 201010514246 A CN201010514246 A CN 201010514246A CN 101957759 A CN101957759 A CN 101957759A
Authority
CN
China
Prior art keywords
interface
sdk
module
information
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010105142462A
Other languages
Chinese (zh)
Other versions
CN101957759B (en
Inventor
刘镇
胡锐
钱萍
黄树成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University of Science and Technology
Nantong Power Supply Co of Jiangsu Electric Power Co Ltd
Original Assignee
Jiangsu University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu University of Science and Technology filed Critical Jiangsu University of Science and Technology
Priority to CN 201010514246 priority Critical patent/CN101957759B/en
Publication of CN101957759A publication Critical patent/CN101957759A/en
Application granted granted Critical
Publication of CN101957759B publication Critical patent/CN101957759B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an SDK interface conversion system and an implementation method thereof. The system comprises an SDK explanation document standardization processing module, an interface reading module, an interface recognition module, an interface conversion module and an interface output module. In the method, a matching database is taken as a conversion medium to convert data type, functions and class used by the original SDK into the data type, the functions and the class of designated computer language. The invention solves the problems of difficult SDK interface conversion, more labor consumption, low accuracy and the like, and has good openness, good robustness and generality, thus being applicable to conversion of various SDK development interfaces.

Description

A kind of SDK interface conversion system and its implementation
Technical field
The invention belongs to the software development technique field, relating to is SDK(Software Development Kit) system and method changed to the employed language of software development of the language that uses.
Background technology
The exploitation of existing application software generally is to be based upon on the basis of existing SDK to carry out, and the employed computerese of SDK generally can and the computerese of applied software development use differ to, this will carry out interface conversion, all be the conversion of manually carrying out between the SDK interface generally.Such conversion regime waste of manpower, shortcoming consuming time, as not have versatility, very flexible and modification trouble.
Summary of the invention
The present invention seeks to provides a kind of SDK interface conversion system and its implementation for solving above-mentioned SDK interface conversion problem.
The present invention adopts following technical scheme for achieving the above object:
A kind of SDK interface conversion system of the present invention comprises:
SDK explanation document standardization processing module: original SDK explanation document is added label symbol;
Interface read module: open SDK explanation document and read, run into label symbol the interface identification module is submitted in work;
The interface identification module: judge the classification that will change according to the keyword of label symbol, read the information that will change, the calling interface modular converter carries out conversion work then;
Interface modular converter: the information of submitting to according to the interface identification module at first finds the target information of coupling local matching database search, if do not forward the online help module to;
The online help module: comprise the line of questioning submodule, online answer submodule and matching database submodule, line of questioning submodule are under the unsuccessful situation of coupling, wanting match information to be published to the line of questioning submodule; And online answer submodule is the submodule that the online help module is used to exchange, and the form of answer adopts the form of matching database;
Interface output module: the new interface specification document of interface specification document format output of pressing the designated computer language.
A kind of implementation method of SDK interface conversion system comprises the steps:
Step 1 adopts SDK explanation document standardization processing module to add label symbol on former SDK explanation document;
Step 2, the computerese of specifying the employed machine word of SDK kit to make peace and will change;
Step 3 adopts the interface read module to begin to read SDK explanation document, and adopts the interface identification module to judge the classification that will change according to the keyword of label symbol, and reads the information that will change;
Step 4 is carried out search matched according to the resulting classification that will change of step 3 at local data base, if the match is successful then forward step 6 to, if coupling is unsuccessful then forward step 5 to;
Step 5, if carry out on-line search coupling the match is successful then change step 6 over to, if search less than, just will be published on the online help module by transitional information, and will not change successful prime information and output to output document and add that remark information forwards step 6 to;
Step 6, the information output with converting finishes.
Wherein, the information search of carrying out in described interface conversion is searched in this locality or at the enterprising line search of line platform.
The invention solves SDK interface conversion difficulty, the consumption manpower, problem such as at the bottom of the accuracy rate has good opening and robustness, is suitable for the conversion of various SDK development interfaces, has versatility.
Description of drawings
Fig. 1 is one-piece construction figure of the present invention;
Fig. 2 is a functional block diagram of the present invention;
Fig. 3 is a workflow diagram of the present invention.
Embodiment
Be elaborated below in conjunction with the technical scheme of accompanying drawing, introduce specific implementation process of the present invention invention.
In Fig. 1, expressed entire block diagram.See to be exactly on the whole, convert the exploitation document of designated computer language to after the processing of former SDK exploitation document through the SDK interface conversion system.
Step 1, before changing, to standardize in the place according to the standard of formatting to SDK exploitation document of SDK interface conversion system, in SDK exploitation document, add the label symbol pattern and tell that the SDK interface conversion system will begin to discern, label symbol occurs in pairs, form by the keyword that angle brackets surround, with<the sign beginning, with</the sign end.Keyword is generally data type (data type), function (function) and class (class) or the like; And data type (data type) is divided into basic data type(basic data type) and Custom data types (self-defining data type) or the like form.
Step 2, it is exactly the process that the SDK interface conversion system is handled, the SDK interface conversion system reads former SDK exploitation document, and recognition goes out label symbol, reads the information that mark will be changed, can judge what will change according to the keyword of mark mark is any classification (data type, function and class or the like), and read the information that will change, in matching database, carry out search matched, if the match is successful then be input in the shelves newly developed, if unsuccessful; Then in online coupling storehouse, carry out search matched, if the match is successful then be input in the shelves newly developed, otherwise just a little information are published on the online help module, and will go out to have to change writing document newly developed and adding remark information successfully by SDK exploitation document information.
Step 3 is exported with document form.
Represented functional block diagram of the present invention in Fig. 2, shown between each functional module it is collaborative work how, the interface read module reads by certain rule; And the information that reads is submitted to the interface identification module judges to be underlined symbol the out, if just judging label symbol, underlined symbol belongs to that kind, read the information that will change afterwards; And the information that will change is submitted to interface modular converter, interface modular converter is responsible for carrying out data search and is carried out information matches, if the match is successful then change, otherwise submission information is to the online help module, carrying out the on-line search coupling, if the match is successful then change, otherwise the information that will change sends out at line platform, and will not have the former information that will change to add that remarks export.
SDK interface conversion system among the present invention comprises: SDK explanation document standardization processing module, interface read module, interface identification module, interface modular converter, interface output module and online help module.Wherein interface modular converter comprises the matching database of changing between the various computerese data types; The online help module provide on-line search submodule and line of questioning submodule and and the matching database submodule.
SDK explanation document standardization processing module is added label symbol to original SDK explanation document, and the SDK interface conversion system is to read according to label symbol, identification and conversion work.
The interface read module is opened SDK explanation document and is read (as: reading line by line) according to certain rule, runs into label symbol the interface identification module is submitted in work.
The interface identification module judges it is data type, function and class or the like according to label symbol, reads the information that will change, and the calling interface modular converter carries out conversion work then.
The information that interface modular converter is submitted to according to the interface identification module at first finds the target information of coupling local matching database search, if do not forward the online help module to.Matching database is the corresponding mutually database of various computerese data types and various forms or the like.The design of this matching database has much now lifts an example the mutual corresponding relation of this matching database is described, designs a table of depositing basic data type, deposits the complex data type form shfft, deposits table of class form or the like.What the basic data type table was deposited is various one to one computing machine basic data types, such as C++ to the mapping of C#: the int of C++ is corresponding to the int of c#, and the int * of C++ is corresponding to the ref int of c#, and the void of C++ is corresponding to IntPtr of * c# or the like; What the complex data type table was deposited is the form of various computing machine complex data types,
Such as: the form of C++ structure is:
Struct student
{
Variable 1
Variable 2
Variable
};
Corresponding to C# structure form be:
Struct student
{
Variable 1
Variable 2
Variable
(do not have; )
Complicated type is combined by basic data type, and the basic data type in the complicated type of place can be searched the basic data type table and be obtained;
What the class form shfft was deposited is various computer forms, such as: the form of C++ class is:
The class class name
{
private:
The statement tabulation of<private data member and privately owned member function 〉;
public:
The statement tabulation of<publicly-owned data member and publicly-owned member function 〉;
protected:
The statement tabulation of<protected data member and protection member function 〉;
};
Form corresponding to the C# class is:
Modifier class class name
The class members
}
Class is by basic data type, and complicated type and combination of function form, thus the class members can search the basic data type table and, the complicated type table obtains.
The online help module comprises the line of questioning submodule, online answer submodule and matching database submodule, the line of questioning submodule is under the unsuccessful situation of coupling, wanting match information to be published to the line of questioning submodule, and online answer submodule to be the online help module be used for everybody submodule of exchanging, the form of answering adopts the form of matching database, and answer can be used to expand matching database like this.
The interface output module is pressed the new interface specification document of interface specification document format output of designated computer language.
As shown in Figure 3, realize that the method for this system such as following steps implement:
Step 1 is added label symbol on former SDK explanation document.
Step 2 starts the SDK interface conversion system, the computerese of specifying the employed machine word of SDK kit to make peace and will change.
Step 3, SDK interface conversion system begin to read SDK explanation document, and begin to discern to judge it is data type from label symbol, function and class or the like, and read the information that will change.
Step 4 is carried out search matched according to the resulting classification that will change of step 3 at local data base, if the match is successful then forward step 6 to, if coupling is unsuccessful then forward step 5 to;
Step 5 is matched to then changes step 6 over to if carry out on-line search, if search less than, just will be published on the online help by transitional information, and will not change successful prime information and output to output document and add that remark information forwards step 6 to.
Step 6, the information output with converting finishes.

Claims (3)

1. SDK interface conversion system is characterized in that comprising:
SDK explanation document standardization processing module: original SDK explanation document is added label symbol;
Interface read module: open SDK explanation document and read, run into label symbol the interface identification module is submitted in work;
The interface identification module: judge the classification that will change according to the keyword of label symbol, read the information that will change, the calling interface modular converter carries out conversion work then;
Interface modular converter: the information of submitting to according to the interface identification module at first finds the target information of coupling local matching database search, if do not forward the online help module to;
The online help module: comprise the line of questioning submodule, online answer submodule and matching database submodule, line of questioning submodule are under the unsuccessful situation of coupling, wanting match information to be published to the line of questioning submodule; And online answer submodule is the submodule that the online help module is used to exchange, and the form of answer adopts the form of matching database;
Interface output module: the new interface specification document of interface specification document format output of pressing the designated computer language.
2. the implementation method based on the described a kind of SDK interface conversion system of claim 1 is characterized in that comprising the steps:
Step 1 adopts SDK explanation document standardization processing module to add label symbol on former SDK explanation document;
Step 2, the computerese of specifying the employed machine word of SDK kit to make peace and will change;
Step 3 adopts the interface read module to begin to read SDK explanation document, and adopts the interface identification module to judge the classification that will change according to the keyword of label symbol, and reads the information that will change;
Step 4 is carried out search matched according to the resulting classification that will change of step 3 at local data base, if the match is successful then forward step 6 to, if coupling is unsuccessful then forward step 5 to;
Step 5, if carry out on-line search coupling the match is successful then change step 6 over to, if search less than, just will be published on the online help module by transitional information, and will not change successful prime information and output to output document and add that remark information forwards step 6 to;
Step 6, the information output with converting finishes.
3. the implementation method of a kind of SDK interface conversion system according to claim 2 is characterized in that the information search of carrying out in described interface conversion is searched in this locality or at the enterprising line search of line platform.
CN 201010514246 2010-10-21 2010-10-21 SDK interface conversion system and implementation method thereof Expired - Fee Related CN101957759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010514246 CN101957759B (en) 2010-10-21 2010-10-21 SDK interface conversion system and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010514246 CN101957759B (en) 2010-10-21 2010-10-21 SDK interface conversion system and implementation method thereof

Publications (2)

Publication Number Publication Date
CN101957759A true CN101957759A (en) 2011-01-26
CN101957759B CN101957759B (en) 2013-02-06

Family

ID=43485103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010514246 Expired - Fee Related CN101957759B (en) 2010-10-21 2010-10-21 SDK interface conversion system and implementation method thereof

Country Status (1)

Country Link
CN (1) CN101957759B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062801A (en) * 2018-08-01 2018-12-21 四川长虹电器股份有限公司 Software interface automated conversion system
CN110018818A (en) * 2018-01-10 2019-07-16 武汉斗鱼网络科技有限公司 It polymerize switching method, storage medium, equipment and the system of SDK
CN111639350A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Cipher service system and encryption method
CN114416202A (en) * 2022-01-17 2022-04-29 赞同科技股份有限公司 Mobile terminal SDK calling method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
US20050268233A1 (en) * 2004-04-30 2005-12-01 Configurecode, Inc. System and method for mixed language editing
CN101057213A (en) * 2004-09-30 2007-10-17 路创电子公司 Technical specification editor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
US20050268233A1 (en) * 2004-04-30 2005-12-01 Configurecode, Inc. System and method for mixed language editing
CN101057213A (en) * 2004-09-30 2007-10-17 路创电子公司 Technical specification editor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018818A (en) * 2018-01-10 2019-07-16 武汉斗鱼网络科技有限公司 It polymerize switching method, storage medium, equipment and the system of SDK
CN110018818B (en) * 2018-01-10 2023-08-11 天音移动通信有限公司 Switching method, storage medium, device and system for aggregation SDK
CN109062801A (en) * 2018-08-01 2018-12-21 四川长虹电器股份有限公司 Software interface automated conversion system
CN111639350A (en) * 2020-05-16 2020-09-08 中信银行股份有限公司 Cipher service system and encryption method
CN111639350B (en) * 2020-05-16 2023-01-31 中信银行股份有限公司 Cipher service system and encryption method
CN114416202A (en) * 2022-01-17 2022-04-29 赞同科技股份有限公司 Mobile terminal SDK calling method and system
CN114416202B (en) * 2022-01-17 2023-08-04 赞同科技股份有限公司 Mobile terminal SDK calling method and system

Also Published As

Publication number Publication date
CN101957759B (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN110852065B (en) Document auditing method, device, system, equipment and storage medium
CN102110170B (en) System with information distribution and search functions and information distribution method
CN106777644A (en) Power plant identifies the automatic generation method and device of system coding
CN104376336B (en) The method and writing pencil of a kind of handwriting recognition
CN101957759B (en) SDK interface conversion system and implementation method thereof
CN102334095A (en) Software development support tool
CN103279846A (en) Project acceptance method and system based on BIM model
CN107992476B (en) Corpus generation method and system for sentence-level biological relation network extraction
CN112650858B (en) Emergency assistance information acquisition method and device, computer equipment and medium
CN113569998A (en) Automatic bill identification method and device, computer equipment and storage medium
CN100535891C (en) Device and mode for commuting value into expression mode correlative to language
CN103929499A (en) Internet of things heterogeneous identification recognition method and system
CN105183476A (en) Cross-application program construction method and device
CN102968610B (en) Receipt image processing method and equipment
CN103970776A (en) Method and system for creating CAN hierarchy tree
CN105573972A (en) Report check formula generation method and apparatus
CN101533391A (en) System for searching similar matched sentences and method thereof
CN110674623A (en) Reading system and method for modeled embedded part positioning information
CN103186247A (en) Formula input method and system
CN116151240A (en) Relation extraction model training method and device, electronic equipment and storage medium
CN115730603A (en) Information extraction method, device, equipment and storage medium based on artificial intelligence
CN108984508A (en) Bidding documents generation method and device
CN102053972A (en) Method and device for acquiring parent task relation between extract/transform/load (ETL) modules
CN101414313A (en) Line layout system and method
CN111950875A (en) Intelligent contract reviewing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Liu Zhen

Inventor after: Hu Rui

Inventor after: Qian Ping

Inventor after: Huang Shucheng

Inventor after: Sun Tongtong

Inventor after: Jiu Haiyan

Inventor after: Gu Haifeng

Inventor after: Han Shu

Inventor after: Zhang Xiaohui

Inventor before: Liu Zhen

Inventor before: Hu Rui

Inventor before: Qian Ping

Inventor before: Huang Shucheng

COR Change of bibliographic data
TR01 Transfer of patent right

Effective date of registration: 20160620

Address after: 212003 Zhenjiang City, Jiangsu province dream Creek Road, No. 2

Patentee after: Jiangsu University of Science and Technology

Patentee after: Nantong Power Supply Company, Jiangsu Electric Power Co., Ltd.

Address before: 212003 Zhenjiang City, Jiangsu province dream Creek Road, No. 2

Patentee before: Jiangsu University of Science and Technology

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130206

Termination date: 20161021

CF01 Termination of patent right due to non-payment of annual fee