CN101149700B - Method for implementing order display through configuration files - Google Patents

Method for implementing order display through configuration files Download PDF

Info

Publication number
CN101149700B
CN101149700B CN2006101530087A CN200610153008A CN101149700B CN 101149700 B CN101149700 B CN 101149700B CN 2006101530087 A CN2006101530087 A CN 2006101530087A CN 200610153008 A CN200610153008 A CN 200610153008A CN 101149700 B CN101149700 B CN 101149700B
Authority
CN
China
Prior art keywords
configuration file
order
shows
display
command
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.)
Expired - Fee Related
Application number
CN2006101530087A
Other languages
Chinese (zh)
Other versions
CN101149700A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2006101530087A priority Critical patent/CN101149700B/en
Publication of CN101149700A publication Critical patent/CN101149700A/en
Application granted granted Critical
Publication of CN101149700B publication Critical patent/CN101149700B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method of showing order through configuring files, which relates to communications, which solves problems that we have to modify resource code and it is easy to cause other problems when modifying programs show because existing programs order show is static, and that it's inconvenient to debug programs and spend a long time. The method of the invention is that firstly forming a profile; configuring new show orders in the profile; calling the order corresponding profile information through unified interface, and replacing the profile information with internal information of programs; only modifying the profile when modifying orders, which greatly saves the time of programming and debugging, and avoids grammatical mistakes and other problems caused because of amending source code.

Description

Realize the method that order shows by configuration file
Technical field
The present invention relates to communication technical field, be specifically related to, realize the method that order line shows based on configuration file.
Background technology
In the present communication technology device, generally all can need communication facilities is configured; Mutual friendly has more and more embodied its importance.Generally speaking, all be in coding, just the format and content of display message is decided, enroll in the program, program compiler reaches the purpose that order shows then.Concrete implementation method is: when programming, determine its display format, displaying contents for every order, control the print What of every row; Program compiler then; Download version is to equipment; Restart system; The correctness of verification command type information (idiographic flow as shown in Figure 1).
In the prior art, can only be static to the demonstration of order, in program design, just determined this demonstration what, what should not show.Particularly when the demonstration of program need be revised, form, grammar mistake such as showing need remodify source code, and program compiler, download version are restarted system to equipment, the correctness of verification command type information.This time that spends in actual applications is sizable, and owing to revised source code, tends to take out of other problems.
Therefore, suitable the having relatively high expectations that the embedded software order shows in the existing method can not generally be suitable for.
Summary of the invention
For overcoming above-mentioned defective, the object of the present invention is to provide and a kind ofly realize the method that order shows by configuration file, this method is by on-the-fly modifying order, do not need again coding, directly revising configuration file and reach the dirigibility that order shows and the purpose of convenience.
For achieving the above object, the present invention is a kind of to realize the method that order shows by configuration file, comprising:
(11) form that command line interface command is shown is removed from code, forms configuration file;
(12) in configuration file, add new display command one joint, and the key message that interpolation will show in the note of this display command one joint and a kind of display mode of acquiescence;
(13) call the profile information that unified interface is called this display command correspondence, the key message in the profile information is replaced with the information of program inside.
Wherein, described step (13) also comprises afterwards:
(14) program compiler;
(15) download version and configuration file are to equipment;
The correctness of (16) verification command display message.
Wherein, if key message is constant, the flow process of then revising the order demonstration is:
(21) revise configuration file;
(22) download configuration file is to equipment;
(23) move the order of reading configuration file again;
(24) verification command information.
Wherein, described configuration file is write by the programmer is unified.
Wherein, described configuration file is divided into two kinds of versions and writes: a kind of exploitation version towards the programmer, another kind are user oriented distribution version.
Wherein, the language in the described configuration file adopts the language of localization to write.
The present invention realizes the method that order shows by configuration file, the demonstration of order is dynamic, in program design as required flexibly, add easily, revise the order display format and content displayed, avoided the grammar mistake that occurs in a lot of programs, when the demonstration of order need be revised, do not need to remodify source code, only need to revise configuration file and just can realize that order shows, so both saved the time of coding and debugged program greatly, avoided grammar mistake again and owing to revising the other problems that source code produces.
Description of drawings
Fig. 1 is order flow for displaying figure of the prior art;
Fig. 2 is the process flow diagram that the inventive method is newly-increased by configuration file and the modification order shows.
Embodiment
Below in conjunction with accompanying drawing, will make comparatively detailed explanation to embodiments of the invention.
A kind of method that realizes the order demonstration by configuration file provided by the present invention, be to obtain in the process of order display message the user, added a configuration file, based on configuration file, the configuration file parsing module weaves message block and offers the user, is determined by configuration file as for the form, the content that show.
The order display format, when content displayed is made amendment, do not need coding again, directly revised configuration file just, the code that promptly will show originally in original code is obtained with the method that reads configuration file, and determine display styles, format and content by configuration file, can also shield some information, to satisfy requirements of different users.
The concrete configuration file that passes through realizes ordering the method following (with reference to Fig. 2) that shows:
The form that CLI (command line interface) order shows is removed from code, is formed a configuration file, then with configuration file as the basis, realize the demonstration of ordering;
The step of a newly-increased order is as follows:
(11) coding adds display command;
(12) adding one of new display command in configuration file saves.
(13) in the program display order, obtain the key message that needs demonstration, as display speed vSpeed, program needs the value of acquisition speed vSpeed, determine the key word of speed, as “ $SPEED ", add the description of this key word and key word in the note of this display command one joint of configuration file, and save the display mode of adding a kind of acquiescence at this display command one of configuration file, general key word all is to start with $.
(14) call the corresponding profile information of this order of unified interface interchange, the key word in the information is replaced with the information of program inside.Program is only replaced the keyword message that can find, and to what can not find, just being defaulted as does not need to be shown to the user and see.
(15) program compiler.
(16) download version and configuration file are to equipment.
The correctness of (17) verification command type information.
Wherein, step (14) also comprises:
A, because the information that can provide is all provided, remove to write configuration file by special technician is unified, it is unified ordering the style of demonstration like this, and has reduced the possibility that breaks Priscian's head.
B, to some information, need use when may be program debug, then provide two kinds of configuration files, exploitation version (debug) and distribution edition (Release).Program to these two kinds of versions also need not be replaced.If the scene is out of joint suddenly, as long as replace configuration file at the scene, just may be than orientation problem faster, for dealing with problems, more than again a kind of method.
C, provide a reasonable method for the localization of information of order; As long as the language description in the configuration file is described with the language of localization, equipment just can provide the language environment of a localization, can make file seem to have more hommization like this.
Revise the step of an order (under the constant situation of key message, just thinking to revise an order):
(21) revise configuration file;
(22) download configuration file is to equipment;
(23) move the order of reading configuration file again;
The correctness of (24) verification command type information.
Be example with display port message command show interface slot/port below, newly-increased step of ordering be elaborated:
(111) coding adds display command show interface slot/port.
(112) a joint , $SHOW_INTERFACE one who adds the display port message command in configuration file saves.
(113) obtain the key message that needs demonstration in the program display order, as display speed vSpeed, program needs the value of acquisition speed vSpeed, and unit is M.Determine the key word of speed, as “ $SPEED ", the description “ $SPEED that adds this key word and key word in the note of this display command of configuration file one joint represents the speed of port ", and add a kind of display mode " The interface speed is $SPEEDM. " of acquiescence at this display command one joint of configuration file.General key word all starts with $.If also have other parameter,, also add $DUPLEX with same method such as duplex.To the value that the display format program of order has only provided, other think how to show, configuration file can be realized.
(114) call the corresponding profile information of this order of unified interface interchange, the key word in the information is replaced with the information of program inside; Program is only replaced the keyword message that can find, and to what can not find, just being defaulted as does not need to be shown to the user and see.
(115) program compiler.
(116) download version and configuration file are to equipment.
The correctness of (117) verification command type information.
If desired the demonstration of top order is made amendment, such as wanting to allow display format The interface speed is$SPEEDM. " " being revised as The interface ' s speed is $SPEEDM. ", step is:
(211) revise configuration file, " The interface speed is $SPEEDM. " in $SHOW_INTERFACE one joint is revised as " The interface ' s speed is $SPEEDM. ".
(212) download configuration file is to equipment.
(213) move the order of reading configuration file again.
The correctness of (214) verification command type information.
The present invention realizes the method that order shows by configuration file, the demonstration of order is dynamic, in program design as required flexibly, add easily, revise the order display format and content displayed, avoided the grammar mistake that occurs in a lot of programs, when the demonstration of order need be revised, do not need to remodify source code, only need to revise configuration file and just can realize that order shows, so both saved the time of coding and debugged program greatly, avoided grammar mistake again and owing to revising the other problems that source code produces.

Claims (6)

1. a method that shows by configuration file realization order is characterized in that, comprising:
(11) form that command line interface command is shown is removed from code, forms configuration file;
(12) in configuration file, add new display command one joint, and the key message that interpolation will show in the note of this display command one joint and a kind of display mode of acquiescence;
(13) call the profile information that unified interface is called this display command correspondence, the key message in the profile information is replaced with the information of program inside.
2. the method that shows by configuration file realization order as claimed in claim 1 is characterized in that described step (13) also comprises afterwards:
(14) program compiler;
(15) download version and configuration file are to equipment;
The correctness of (16) verification command display message.
3. the method that shows by configuration file realization order as claimed in claim 1 is characterized in that, if key message is constant, then revises and orders the flow process that shows to be:
(21) revise configuration file;
(22) download configuration file is to equipment;
(23) move the order of reading configuration file again;
(24) verification command display message.
4. the method that shows by configuration file realization order as claimed in claim 1 is characterized in that described configuration file is write by the programmer is unified.
5. the method that shows by configuration file realization order as claimed in claim 1 is characterized in that described configuration file is divided into two kinds of versions: towards programmer's exploitation version, user oriented distribution version.
6. the method that shows by configuration file realization order as claimed in claim 1 is characterized in that the language in the described configuration file adopts the language of localization to write.
CN2006101530087A 2006-09-19 2006-09-19 Method for implementing order display through configuration files Expired - Fee Related CN101149700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101530087A CN101149700B (en) 2006-09-19 2006-09-19 Method for implementing order display through configuration files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101530087A CN101149700B (en) 2006-09-19 2006-09-19 Method for implementing order display through configuration files

Publications (2)

Publication Number Publication Date
CN101149700A CN101149700A (en) 2008-03-26
CN101149700B true CN101149700B (en) 2010-12-08

Family

ID=39250243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101530087A Expired - Fee Related CN101149700B (en) 2006-09-19 2006-09-19 Method for implementing order display through configuration files

Country Status (1)

Country Link
CN (1) CN101149700B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053855B (en) * 2010-12-13 2014-03-05 浪潮(北京)电子信息产业有限公司 Software generation system and method
CN106598983A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Information display method and device
CN106781100A (en) * 2017-01-17 2017-05-31 浪潮(苏州)金融技术服务有限公司 The collocation method and device of a kind of self-help terminal equipment
CN107480327B (en) * 2017-07-03 2020-11-13 北京东土军悦科技有限公司 Simulation verification method and device and electronic equipment
CN108228965B (en) * 2017-12-06 2022-01-11 北京物芯科技有限责任公司 Simulation verification method, device and equipment for memory cell

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0434288A2 (en) * 1989-12-20 1991-06-26 Ge Fanuc Automation North America, Inc. Programmable logic controller and method of operation thereof
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 General command line inputting device based on man-machine interactive languages, and its method
CN1652510A (en) * 2004-02-07 2005-08-10 华为技术有限公司 Method and terminal for operating and maintaining telecommunication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0434288A2 (en) * 1989-12-20 1991-06-26 Ge Fanuc Automation North America, Inc. Programmable logic controller and method of operation thereof
CN1601970A (en) * 2003-09-23 2005-03-30 华为技术有限公司 General command line inputting device based on man-machine interactive languages, and its method
CN1652510A (en) * 2004-02-07 2005-08-10 华为技术有限公司 Method and terminal for operating and maintaining telecommunication apparatus

Also Published As

Publication number Publication date
CN101149700A (en) 2008-03-26

Similar Documents

Publication Publication Date Title
AU2012203071B2 (en) Computer-implemented method, system and computer program product for displaying a user interface component
US8095910B2 (en) Interruptible client-side scripts
US20130305229A1 (en) Analysis of dynamic elements in bounded time
US20130086424A1 (en) Debugging analysis in running multi-user systems
CN101149700B (en) Method for implementing order display through configuration files
CN103019941B (en) program debugging method and device
CN105117215A (en) Development method and device of automobile function
CN108170430B (en) Interface display method and system
CN113064593B (en) Method and device for dynamic mobile APP, computer equipment and storage medium
CN103179166A (en) Method of providing service in client and the client
CN101887370A (en) Method and device for creating system user interface
CN113419969B (en) Interface automatic formation power guarantee method based on browser plug-in
CN104133676A (en) Function execution method and function execution device based on scripts
CN104133706B (en) Firmware modification method and firmware modification device
US20060184924A1 (en) Intelligent platform management interface firmware architecture and method of building the same
CN104123155A (en) Business system page layer development platform and method based on WEB
CN111949251A (en) Method for realizing software development and operation across platforms
CN105930166B (en) A method of based on WEB interface ejection layer
CN103677772A (en) Script compiling method and corresponding scrip compiling system
CN104462160A (en) Method and system for editing formula
US20070006199A1 (en) Methods and apparatus for communicating between multiple levels of software components
CN103226475A (en) Method and device for realizing control replacement during transcoding
CN110908656B (en) Android user interface generation method and system
CN108563475A (en) Operation method, device and the storage medium of application program
CN111857782B (en) Interface updating method and device, computer equipment and storage medium

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101208

Termination date: 20170919

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