Method and system for automatically generating MIB function codes of software platform
A function code and software platform technology, applied in the field of automatic generation of software platform MIB function code, can solve the problems of increasing the risk of introducing coding errors, large amount of code, and high error rate of manual coding, so as to reduce the amount of manual coding and meet the needs of users. demand, workload reduction effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] see figure 1 , figure 2 As shown, the present embodiment provides a method for automatically generating software platform MIB function codes, the method comprising the following steps:
[0043] A. Set the MIB generation rule: set the MIB generation rule of the control block in the configuration XML file, and the generation rule includes the designated software platform data structure header file. In this embodiment, the file name of the configuration XML file is named cfg.xml; in the actual implementation process, the file name of the configuration XML file can be set by the developer as required, and this embodiment does not make specific limitations.
[0044] B, generate data XML file: Utilize Python script to analyze the specified software platform data structure header file in the configuration XML file, and generate the data XML file of MIB table according to the MIB generation rule of setting, and described data XML file is the MIB table of XML format D...
Embodiment 2
[0047] A kind of method that present embodiment provides automatically generating software platform MIB function code, its basic steps are identical with embodiment one, and difference is: in step A, the configuration XML file that is provided with MIB generation rule includes the following content:
[0048] The attribution module name of the control block, the module product table ID, the header file where the control block data structure is located (that is, the specified software platform data structure header file), the output file generated by the MIB function code (the output file includes the MIB table header file and the MIB table Callback function source file), control block name, MIB table name, and the tree to which the associated control block is attached during MIB table query (by obtaining the control block positioned on the tree, the data in the control block is returned to the MIB in the data format of the MIB table query interface), the node of the control ...
Embodiment 3
[0057] A kind of method for automatically generating software platform MIB function code provided by this embodiment, its basic steps are identical with embodiment two, and difference is: step A of this method specifically comprises the following operations:
[0058] Step A1, use the tag attribute in the configuration XML file to define the belonging module of the control block (such as "rldf"); use The label attribute defines the module product table ID (such as "LOCAL.lsr_index");
[0059] Step A2, use in the configuration XML file The header file where the label defines the data structure of the control block, (for example, the structure of the rldf_ftn_pw_data_cb control block is defined in the rldf.h file, so The path content of the label is ".. / rldf.h"); use The label defines the output file generated by the MIB function code. When there are multiple files, use a semicolon to separate them (for example, in the example of Embodiment 2, label outputs multiple fil...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com