CN104090779A - Automatic configuration method and cloud compiling system - Google Patents

Automatic configuration method and cloud compiling system Download PDF

Info

Publication number
CN104090779A
CN104090779A CN201410372991.6A CN201410372991A CN104090779A CN 104090779 A CN104090779 A CN 104090779A CN 201410372991 A CN201410372991 A CN 201410372991A CN 104090779 A CN104090779 A CN 104090779A
Authority
CN
China
Prior art keywords
configuration information
function unit
attribute
program code
macro definition
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
CN201410372991.6A
Other languages
Chinese (zh)
Other versions
CN104090779B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201410372991.6A priority Critical patent/CN104090779B/en
Publication of CN104090779A publication Critical patent/CN104090779A/en
Application granted granted Critical
Publication of CN104090779B publication Critical patent/CN104090779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses an automatic configuration method used for avoiding the situation that error data are configured into a cloud compiling system when manually configured, ensuring stable operation of the cloud compiling system and automatically configuring attribute configuration information into the cloud compiling system, and use is convenient. The automatic configuration method comprises the steps that 1, a standard file format of procedure codes is obtained and is generated by macro definition information of the procedure codes; 2, the macro definition information of the standard file format is extracted; 3, the macro definition information is converted into function unit configuration information according to a preset function unit mapping table; 4, the attribute configuration information is obtained according to a preset attribute resolution mode and the function unit configuration information; 5, the function unit configuration information and the attribute configuration information are stored; 6, when in need, the attribute configuration information is edited through an editable interface; 7, whether the edited attribute configuration information meets a preset reasonable condition or not is judged, the step 8 is carried out if the edited attribute configuration information meets the preset reasonable condition, and the attribute configuration information restores if the edited attribute configuration information does not meet the preset reasonable condition; 8, the function unit configuration information is updated according to the edited attribute configuration information. The embodiment of the invention further provides the cloud compiling system.

Description

Method of automatic configuration and cloud compiling system
Technical field
The present invention relates to field of computer technology, relate in particular to method of automatic configuration and cloud compiling system.
Background technology
Cloud compiling system is a kind of automatic Compiling System, and user can compile out corresponding software according to Automatically invoked program code after the configuration item submission demand configuration of specifying.The principle of work of cloud compiling system is that user selects to submit to cloud compiling system after corresponding demand configuration at the visual demand apolegamy page, cloud compiling system is extracted the first configuration information of corresponding function according to this demand configuration from function metadatabase, and use this function unit's configuration information and program code to mate, automatic compiling goes out software, and sends to user.
At present, the common practices of daily servicing cloud compiling system is that maintainer is function unit configuration information by the macro definition information manual configuration extracting from program code, and is saved in cloud compiling system.
But, when manual configuration, can there is error and careless mistake, may, by wrong data configuration in cloud compiling system, be unfavorable for the stable operation of cloud compiling system.
Summary of the invention
The embodiment of the present invention provides method of automatic configuration and cloud compiling system, can avoid manual configuration time by wrong data configuration the situation to cloud compiling system, ensure the stable operation of cloud compiling system, and attribute configuration information is also configured to cloud compiling system automatically, use more conveniently, and greatly promote adaptability and the frequency of utilization of cloud compiling system.
A kind of method of automatic configuration that the embodiment of the present invention provides, comprising:
S1: obtain the standard format files of program code, this standard format files is by the macro definition Information generation of this program code;
S2: extract the macro definition information in this standard format files;
S3: according to preset function unit mapping table, this macro definition information is converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information;
S4: carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information;
S5: preserve this function unit's configuration information and this attribute configuration information;
S6: whenever necessary, by can this attribute configuration information of edition interface editor;
S7: judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step S8, if not, reduces this attribute configuration information;
S8: according to this function unit configuration information of the attribute configuration information updating after editor.
Alternatively, also comprise before obtaining the standard format files of program code:
Obtain the program code that meets prerequisite;
From program code, extract macro definition information;
According to preset code data form, by this macro definition Information generation standard format files, this standard format files comprises this macro definition information.
Alternatively, the method also comprises:
Whether this function unit configuration information of verification changes, and if so, re-executes step S4.
Alternatively, the method also comprises:
Preview is from the function unit of this function unit configuration information, and the corresponding attribute from this attribute configuration information.
Alternatively, obtaining the program code that meets prerequisite specifically comprises:
Acquisition time stabs the program code before Preset Time point;
Upgrade the timestamp of this program code.
A kind of cloud compiling system that the embodiment of the present invention provides, comprising:
The first acquisition module, for obtaining the standard format files of program code, this standard format files is by the macro definition Information generation of this program code;
The first extraction module, for extracting the macro definition information of this standard format files;
Modular converter, for according to preset function unit mapping table, this macro definition information being converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information;
Attribute acquisition module, for carrying out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information;
First preserves module, for preserving this function unit's configuration information and this attribute configuration information;
Editor module, for whenever necessary, by can this attribute configuration information of edition interface editor;
Rationality judge module, for judging whether the attribute configuration information after editor meets preset reasonable terms, if so, carries out function unit update module, if not, reduces this attribute configuration information;
This function unit update module, for according to this function unit configuration information of the attribute configuration information updating after editor.
Alternatively, this cloud compiling system also comprises:
The second acquisition module, for obtaining the program code that meets prerequisite;
The second extraction module, for extracting macro definition information from program code;
Generation module, for according to preset code data form by this macro definition Information generation standard format files, this standard format files comprises this macro definition information.
Alternatively, this cloud compiling system also comprises:
Whether correction verification module, change for this function unit configuration information of verification, if so, carries out this attribute acquisition module, if not, and according to normal works.
Alternatively, this cloud compiling system also comprises:
Previewing module, the function unit for preview from this function unit configuration information, and the corresponding attribute from this attribute configuration information.
Alternatively, this second acquisition module specifically comprises:
Acquiring unit, stabs the program code before Preset Time point for acquisition time;
Updating block, for upgrading the timestamp of this program code.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the embodiment of the present invention, a kind of job step of method of automatic configuration is: S1: obtain the standard format files of program code, this standard format files is by the macro definition Information generation of this program code; S2: extract the macro definition information in this standard format files; S3: according to preset function unit mapping table, this macro definition information is converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information; S4: carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information; S5: preserve this function unit's configuration information and this attribute configuration information; S6: whenever necessary, by can this attribute configuration information of edition interface editor; S7: judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step S8, if not, reduces this attribute configuration information; S8: according to this function unit configuration information of the attribute configuration information updating after editor.In embodiments of the present invention, cloud compiling system is converted to the macro definition information of program code function unit configuration information and preserves, while therefore having avoided manual configuration by wrong data configuration the situation to cloud compiling system, ensured the stable operation of cloud compiling system.And, obtain attribute configuration information corresponding to function unit's configuration information, the attribute configuration information of attribute corresponding function unit also can be configured to cloud compiling system automatically, and these attributes can also be shown, use more convenient.Further, can be by can this attribute configuration information of edition interface editor, thus upgrade this function unit configuration information, greatly promote adaptability and the frequency of utilization of cloud compiling system.
Brief description of the drawings
Fig. 1 is embodiment process flow diagram of method of automatic configuration in the embodiment of the present invention;
Fig. 2 is another embodiment process flow diagram of method of automatic configuration in the embodiment of the present invention;
Fig. 3 is example structure figure of embodiment of the present invention medium cloud compiling system;
Fig. 4 is another example structure of embodiment of the present invention medium cloud compiling system figure.
Embodiment
The embodiment of the present invention provides method of automatic configuration and cloud compiling system, when avoiding manual configuration by wrong data configuration the situation to cloud compiling system, ensure the stable operation of cloud compiling system, and attribute configuration information is also configured to cloud compiling system automatically, use more conveniently, and greatly promote adaptability and the frequency of utilization of cloud compiling system.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, embodiment of method of automatic configuration comprises:
S1, obtain the standard format files of program code;
In the time that cloud compiling system receives automatic configuration-direct, obtain the standard format files of program code, this standard format files is by the macro definition Information generation of this program code.
S2, extract the macro definition information in this standard format files;
Cloud compiling system is getting after the standard format files of program code, extracts the macro definition information in this standard format files.
S3, according to preset function unit mapping table, this macro definition information is converted to function unit configuration information;
Cloud compiling system obtains after macro definition information, can this macro definition information be converted to function unit configuration information according to preset function unit mapping table, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information.
S4, carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information;
After getting this function unit configuration information, can carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information.
S5, preserve this function unit's configuration information and this attribute configuration information;
Cloud compiling system is converted to macro definition information after function unit configuration information, this function unit's configuration information and attribute configuration information can be preserved.
S6: whenever necessary, by can this attribute configuration information of edition interface editor;
Whenever necessary, can be by can this attribute configuration information of edition interface editor.
S7: judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step S8, if not, performs step S9;
By after can this attribute configuration information of edition interface editor, can judge whether the attribute configuration information after editor meets preset reasonable terms, if so, perform step S8, if not, perform step S9.
S8: according to this function unit configuration information of the attribute configuration information updating after editor;
If the attribute configuration information after editor meets preset reasonable terms, according to this function unit configuration information of the attribute configuration information updating after editor.
S9: reduce this attribute configuration information.
If the attribute configuration information after editor does not meet preset reasonable terms, reduce this attribute configuration information.
In the present embodiment, a kind of job step of method of automatic configuration is: S1: obtain the standard format files of program code, this standard format files is by the macro definition Information generation of this program code; S2: extract the macro definition information in this standard format files; S3: according to preset function unit mapping table, this macro definition information is converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information; S4: carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information; S5: preserve this function unit's configuration information and this attribute configuration information; S6: whenever necessary, by can this attribute configuration information of edition interface editor; S7: judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step S8, if not, performs step S9; S8: according to this function unit configuration information of the attribute configuration information updating after editor; S9: reduce this attribute configuration information.In the present embodiment, cloud compiling system is converted to the macro definition information of program code function unit configuration information and preserves, while therefore having avoided manual configuration by wrong data configuration the situation to cloud compiling system, ensured the stable operation of cloud compiling system.And, obtain attribute configuration information corresponding to function unit's configuration information, the attribute configuration information of attribute corresponding function unit also can be configured to cloud compiling system automatically, and these attributes can also be shown, use more convenient.Further, can be by can this attribute configuration information of edition interface editor, thus upgrade this function unit configuration information, greatly promote adaptability and the frequency of utilization of cloud compiling system.
For ease of understanding, below the method for automatic configuration in the embodiment of the present invention is described in detail, refer to Fig. 2, in the embodiment of the present invention, another embodiment of method of automatic configuration comprises:
201, acquisition time stabs the program code after Preset Time point;
Cloud compiling system, receiving after automatic configuration-direct, can be obtained program code, and the timestamp of this program code will be after Preset Time point.Be understandable that, this program code can be stored in cloud compiling system inside before execution step, also can before obtaining, be uploaded to by other means cloud compiling system, was specifically not construed as limiting herein.
202, upgrade the timestamp of this program code;
Cloud compiling system gets after program code, upgrades the timestamp of this program code.Be understandable that, while automatically configuration in order to carry out in next time, do not repeat same program code to process, cloud compiling system can be upgraded its timestamp to the program code obtaining, and carrys out recognizer code by timestamp.
203, from program code, extract macro definition information;
Cloud compiling system can be extracted macro definition information from program code.
204, according to preset code data form by this macro definition Information generation standard format files;
Cloud compiling system can be according to preset code data form by this macro definition Information generation standard format files, and this standard format files comprises this macro definition information.
It should be noted that, in order to allow the format specification of standard format files according to this code data form by macro definition Information generation standard format files, because macro definition information is by extracting in program code, and may there is multiple different form in program code, for unified these forms, facilitate cloud compiling system use and manage, so can make the format specification of standard format files unified by preset code data form.
In general, this standard format files can be the file of XML form or JSON form.
205, obtain the standard format files of program code;
Generating after standard format files, cloud compiling system is obtained the standard format files of this program code, and this standard format files is by the macro definition Information generation of this program code.It should be noted that, after standard format files generation, can transmit this standard format files by the mode such as external linkage or manual operation, therefore cloud compiling system can read the outside standard format files sending, also can read inner standard format files, specifically be not construed as limiting herein.
206, extract the macro definition information in this standard format files;
Cloud compiling system is extracted the macro definition information in this standard format files.
207, according to preset function unit mapping table, this macro definition information is converted to function unit configuration information;
Cloud compiling system extracts after macro definition information, according to preset function unit mapping table, this macro definition information is converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information.
208, carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information;
After getting this function unit configuration information, can carry out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information.
It should be noted that, the concrete form of this attribute configuration information can define in advance.Be understandable that, function unit is for completing the unit of a function in cloud compiling system, for example, sound curve is a function unit, telepilot is a function unit, image quality can be also a function unit, therefore function unit configuration information be these functions unit correspondences, for the configuration information of automatic compiling.Some features that attribute comprises for function unit, such as for telepilot, there are silk-screen, the code value of button etc. of name, first code, each button, these are all the attributes belonging under this function unit of telepilot, therefore attribute configuration information be these attributes corresponding, for the configuration information of automatic compiling, the concrete form of this attribute configuration information can have staff define in advance or set.
It should be noted that, this attribute analysis mode exists in order to get attribute configuration information from function unit configuration information, and attribute analysis mode can be corresponding one by one with every kind of attribute.Such as, need to obtain this attribute of code value of button under telepilot, can be set with the attribute analysis mode of " code value attribute "; Need to obtain this attribute of colour temperature under image quality, can be set with the attribute analysis mode of " colour temperature attribute ".Attribute analysis mode by these can get corresponding attribute configuration information from different function unit configuration informations.The Analytic principle of attribute analysis mode can be: cloud compiling system is according to keyword match principle, the data of the key word in function unit configuration information are extracted, according to field attribute and the field type of staff's configuration, data are arranged to (for example field is shaping, deposit the number of shaping in, field is Form, deposits the data of whole form in) after associate with first configuration information of this function (or function unit).
209, whether this function unit configuration information of verification changes, and if so, re-executes step 208, if not, and according to normal flow work;
In the cloud compiling system course of work, can whether change by this function unit configuration information of verification, if so, re-execute step 208, if not, according to normal flow work.Be understandable that, due to service needed, the software upgrading replacement, customer demand etc. reason, staff may revise this program code or directly revise this function unit configuration information in cloud compiling system, and therefore corresponding attribute configuration information should upgrade in time.Cloud compiling system can be set a specific time, such as 0 verification in morning every day once, or verification in every 12 hours once checks whether these function unit configuration informations change, if, need again to obtain attribute configuration information corresponding to function unit's configuration information that change has occurred, so re-execute step 208; If not, according to normal flow work.
It should be noted that, can pass through this function unit configuration information of MD5 (Message-Digest Algorithm5, hash algorithm) method of calibration verification; Or, by this function unit configuration information of checksum (summation inspection code) method of calibration verification.
210, preserve this function unit's configuration information and this attribute configuration information;
Cloud compiling system, macro definition information being converted to after function unit configuration information, preserves this function unit's configuration information and attribute configuration information.Can be specifically, function unit's configuration information and attribute configuration information are kept in the background data base of cloud compiling system, also can be kept in the external exclusive database of cloud compiling system, specifically be not construed as limiting herein.
211, whenever necessary, by can this attribute configuration information of edition interface editor;
Whenever necessary, can be by can this attribute configuration information of edition interface editor.
It should be noted that, this can edition interface can be the interfaces such as human-computer interaction interface, physical button, can edit this attribute configuration information by edition interface by this, and edit mode can be interpolation, deletion, amendment etc.
Be understandable that, can edit field many due to some attribute, as PQ (image quality), if all field all needs user to fill in, that has very large workload, and on the PQ that user only wants to use sometimes, revise effect before certain, for example, allow picture partially greener, the data of certain attribute that cloud compiling system just need to be based on original allow user revise.
212, judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step 213, if not, performs step 214;
By after can this attribute configuration information of edition interface editor, can judge whether the attribute configuration information after editor meets preset reasonable terms, if so, perform step 213, if not, perform step 214.Be understandable that, preset reasonable terms need to carry out preset according to concrete attribute configuration information, for example, for " color value " attribute under " image quality " function unit, reasonable terms can be 0~255, off-set value scope 0~1024, if the attribute configuration information after editor does not fall in corresponding scope, represents that the attribute configuration information after editor does not meet preset reasonable terms.
213, according to this function unit configuration information of the attribute configuration information updating after editor;
If the attribute configuration information after editor meets preset reasonable terms, according to this function unit configuration information of the attribute configuration information updating after editor.Be understandable that, because this attribute configuration information exchange is crossed attribute analysis mode and is obtained from function unit configuration information, therefore also can upgrade this function unit configuration information by the attribute configuration information after editor, make this function unit configuration information and attribute configuration information real-time update and corresponding.
214, reduce this attribute configuration information;
If the attribute configuration information after editor does not meet preset reasonable terms, reduce this attribute configuration information, by this attribute configuration information reverting to the state before editor.
215, iteration is upgraded this attribute analysis mode;
Be understandable that, whole automatic configuration flow is all regularly to carry out, and after executing, cloud compiling system can normal operation.Staff can carry out Update attribute analysis mode according to the reliability of automatic configuration correlated results, thereby gets more reliable and more stable attribute configuration information by improving this attribute analysis mode.
216, iteration is upgraded the form of this attribute configuration information;
Staff can be in daily work as required iteration upgrade the form of this attribute configuration information, for example, add after certain attribute or certain field, or revise certain key word, so in the next one performance period of configuration automatically, cloud compiling system will be carried out the form of new attribute configuration information, thereby the form of the attribute configuration information getting obtains upgrading (change).
217, preview is from the function unit of this function unit configuration information, and the corresponding attribute from this attribute configuration information.
When needed, can preview from the function unit of this function unit configuration information, and the corresponding attribute from this attribute configuration information, uses this cloud compiling system more convenient, interactivity is better.
For ease of understanding, according to the described embodiment of Fig. 2, with a practical application scene, the method for automatic configuration in the embodiment of the present invention is described below:
Before realizing automatic configuration feature, maintainer need to be to the setting of being correlated with of cloud compiling system, comprises preparatory function unit mapping table, preset code data form, part prerequisite, initialize program code attribute mapping table, preset configuration rule etc. are set.
Suppose that maintainer sets cloud compiling system every day at interval of within 12 hours, carrying out once configuration automatically, preset time point morning on schedule.
At point on the same day 12, cloud compiling system receives automatic configuration-direct so, reads the program code of timestamp after morning today from database, if read failure, notifies maintainer, if read successfully, carries out next step.
Cloud compiling system is extracted the macro definition information of this program code, if extracted unsuccessfully, notifies maintainer, if extracted successfully, carries out next step.
Cloud compiling system is upgraded the timestamp of this program code.
Cloud compiling system according to preset code data form by macro definition Information generation XML formatted file.
Cloud compiling system is extracted the macro definition information in this XML formatted file, and this macro definition information is converted to function unit configuration information.Concrete transfer process can be: suppose that macro definition information is for the definition to " supporting wireless ", " supporting language ", query function unit mapping table is known, " support " corresponding function unit " support bluetooth " wireless, " supporting infrared ", " support 3G network ", " supporting LTE ", and " supporting language " corresponding function unit " supports Chinese ", " supporting English ", " support Japanese ", " support French ".The function unit configuration information obtaining after conversion is respectively " support bluetooth ", " supporting infrared ", " support 3G network ", " supporting LTE ", " supporting Chinese ", " supporting English ", " support Japanese ", " support French ".
Cloud compiling system is saved in the function unit configuration information obtaining in external exclusive database.In the present embodiment, specifically the data such as " support bluetooth ", " supporting infrared ", " support 3G network ", " supporting LTE ", " supporting Chinese ", " supporting English ", " support Japanese ", " support French " are saved in exclusive database.
Hypothesis again, configuration feature is supported 5 kinds of function units automatically, is respectively: external button, telepilot, boot LOGO picture, image quality and sound curve.Wherein, these attributes corresponding to function unit are respectively:
1, external button: the definition (for example first button is that switching on and shutting down, second button are that channel adds 1) of name, each button etc.;
2, telepilot: silk-screen and the code value etc. of name, first code, each button;
3, boot LOGO picture: name, picture length and width, picture/mb-type, picture size etc.;
4, PQ (image quality): colour temperature, image non-linear curve, EQ (balanced device) curve etc.;
5, sound curve: volume curve, volume offset, AVC (advanced video coding Advanced Video Coding) etc.
After getting the function unit configuration information of external button, telepilot, boot LOGO picture, image quality, sound curve, can get corresponding attribute configuration information according to different attribute analysis modes.For example, from the function unit configuration information of " external button ", get the attribute configuration information of " name " of external button according to the attribute analysis mode of " button name "; From the function unit configuration information of " boot LOGO picture ", get the attribute configuration information of " the picture length and width " of external button according to the attribute analysis mode of " picture length and width " ... do not enumerate herein.
After getting these function unit's configuration informations and attribute configuration information, their are associated and save, when needed, can directly call automatically to configure, can also select a function unit in cloud compiling system time, by out (configuration information display function unit of calling function unit of attribute display corresponding this function unit, call corresponding attribute configuration information and show corresponding attribute), make user know more intuitively under this function unit have which attribute, what kind of is respectively, easy to use, experience property is good.
User can also edit corresponding attribute configuration information by window interface.Such as, first select PQ, then the attribute that demonstrates all PQ in PQ mono-hurdle, is respectively: colour temperature, image non-linear curve, EQ (balanced device) curve, now user can edit colour temperature, image non-linear curve, EQ (balanced device) curve by window interface.Such as, tri-the value scopes of RGB in colour temperature are 0~255, and off-set value scope is 0~1024, and user can choose a value and inserts in these scopes, if this value, not within the scope of this, cannot successfully be revised.Meanwhile, user can also delete or add certain attribute for PQ, such as adding " color subregion " attribute, deletion " EQ curve " attribute.Again for example, telepilot name can not repeat, telepilot name can only comprise 0-9A-Za-z and these characters of underscore, telepilot length of name can not exceed 64 characters, fill in after corresponding field user, the rule (reasonable terms) that cloud compiling system can configure according to each field judges, if the rule of not meeting, can be to eject mode (the alerting pattern is not limit) reminding users such as dialog box, for example " comprise error character in telepilot name, correct characters scope is ... " etc. information.Cloud compiling system determines and does not meet regular field, and user cannot submit content to, can only, according to corresponding prompting by correct the value amendment in field, could submit to.
Above method of automatic configuration in the embodiment of the present invention is described, below the cloud compiling system in the embodiment of the present invention is described, refer to Fig. 3, embodiment of embodiment of the present invention medium cloud compiling system comprises:
The first acquisition module 301, for obtaining the standard format files of program code, this standard format files is by the macro definition Information generation of this program code;
The first extraction module 302, for extracting the macro definition information of this standard format files;
Modular converter 303, for according to preset function unit mapping table, this macro definition information being converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information;
Attribute acquisition module 304, for carrying out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information;
First preserves module 305, for preserving this function unit's configuration information and this attribute configuration information;
Editor module 306, for whenever necessary, by can this attribute configuration information of edition interface editor;
Rationality judge module 307, for judging whether the attribute configuration information after editor meets preset reasonable terms, if so, carries out function unit update module 308, if not, reduces this attribute configuration information;
This function unit update module 308, for according to this function unit configuration information of the attribute configuration information updating after editor.
In the present embodiment, first, the first acquisition module 301 obtains the standard format files of program code, and this standard format files is by the macro definition Information generation of this program code; The macro definition information that the first extraction module 302 extracts in this standard format files; Then, modular converter 303 is converted to function unit configuration information according to preset function unit mapping table by this macro definition information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information; In addition, attribute acquisition module 304 carrys out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information; Finally, first preserve module 305 preservations this function unit's configuration information and this attribute configuration information; Editor module 306 is whenever necessary, by can this attribute configuration information of edition interface editor; Rationality judge module 307 judges whether the attribute configuration information after editor meets preset reasonable terms, if so, carries out function unit update module 308, if not, reduces this attribute configuration information; This function unit update module 308 is according to this function unit configuration information of the attribute configuration information updating after editor.In the present embodiment, cloud compiling system is converted to the macro definition information of program code function unit configuration information and preserves, while therefore having avoided manual configuration by wrong data configuration the situation to cloud compiling system, ensured the stable operation of cloud compiling system.And, obtain attribute configuration information corresponding to function unit's configuration information, attribute configuration information corresponding to function unit also can be configured to cloud compiling system automatically, and these attributes can also be shown, use more convenient.Further, can be by can this attribute configuration information of edition interface editor, thus upgrade this function unit configuration information, greatly promote adaptability and the frequency of utilization of cloud compiling system.
For ease of understanding, below embodiment of the present invention medium cloud compiling system is further described in more detail, refer to Fig. 4, another embodiment of embodiment of the present invention medium cloud compiling system comprises:
The first acquisition module 401, for obtaining the standard format files of program code, this standard format files is by the macro definition Information generation of this program code;
The first extraction module 402, for extracting the macro definition information of this standard format files;
Modular converter 403, for according to preset function unit mapping table, this macro definition information being converted to function unit configuration information, the relation of the function unit configuration information that this function unit mapping table comprises program code and corresponding macro definition information;
Attribute acquisition module 404, for carrying out getattr configuration information according to preset attribute analysis mode and this function unit configuration information, the corresponding relation that this attribute analysis mode has comprised this function unit's configuration information and this attribute configuration information;
First preserves module 405, for preserving this function unit's configuration information and this attribute configuration information.
Editor module 406, for whenever necessary, by can this attribute configuration information of edition interface editor;
Rationality judge module 407, for judging whether the attribute configuration information after editor meets preset reasonable terms, if so, carries out function unit update module 408, if not, reduces this attribute configuration information;
This function unit update module 408, for according to this function unit configuration information of the attribute configuration information updating after editor.
In the present embodiment, this cloud compiling system can also comprise:
The second acquisition module 409, for obtaining the program code that meets prerequisite;
The second extraction module 410, for extracting macro definition information from program code;
Generation module 411, for according to preset code data form by this macro definition Information generation standard format files, this standard format files comprises this macro definition information.
In the present embodiment, this cloud compiling system can also comprise:
Whether correction verification module 412, change for this function unit configuration information of verification, if so, carries out this attribute acquisition module 404, if not, and according to normal works.
In the present embodiment, this cloud compiling system can also comprise:
Previewing module 413, the function unit for preview from this function unit configuration information, and the corresponding attribute from this attribute configuration information.
In the present embodiment, this second acquisition module 409 specifically can comprise:
Acquiring unit 4091, stabs the program code before Preset Time point for acquisition time;
Updating block 4092, for upgrading the timestamp of this program code.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method of automatic configuration, is characterized in that, comprising:
S1: obtain the standard format files of program code, described standard format files is by the macro definition Information generation of described program code;
S2: extract the macro definition information in described standard format files;
S3: according to preset function unit mapping table, described macro definition information is converted to function unit configuration information, the relation of the function unit configuration information that described function unit mapping table comprises program code and corresponding macro definition information;
S4: carry out getattr configuration information, the corresponding relation that described attribute analysis mode has comprised described function unit's configuration information and described attribute configuration information according to preset attribute analysis mode and described function unit configuration information;
S5: preserve described function unit's configuration information and described attribute configuration information;
S6: whenever necessary, by attribute configuration information described in can edition interface editor;
S7: judge whether the attribute configuration information after editor meets preset reasonable terms, if so, performs step S8, if not, reduces described attribute configuration information;
S8: according to function unit configuration information described in the attribute configuration information updating after editor.
2. method according to claim 1, is characterized in that, the standard format files of obtaining program code also comprises before:
Obtain the program code that meets prerequisite;
From program code, extract macro definition information;
According to preset code data form, by described macro definition Information generation standard format files, described standard format files comprises described macro definition information.
3. method according to claim 1, is characterized in that, described method also comprises:
Described in verification, whether function unit configuration information changes, and if so, re-executes step S4.
4. method according to claim 1, is characterized in that, described method also comprises:
Preview is from the function unit of the first configuration information of described function, and the corresponding attribute from described attribute configuration information.
5. method according to claim 2, is characterized in that, obtains the program code that meets prerequisite and specifically comprises:
Acquisition time stabs the program code before Preset Time point;
Upgrade the timestamp of described program code.
6. a cloud compiling system, is characterized in that, comprising:
The first acquisition module, for obtaining the standard format files of program code, described standard format files is by the macro definition Information generation of described program code;
The first extraction module, for extracting the macro definition information of described standard format files;
Modular converter, for according to preset function unit mapping table, described macro definition information being converted to function unit configuration information, the relation of the function unit configuration information that described function unit mapping table comprises program code and corresponding macro definition information;
Attribute acquisition module, for carrying out getattr configuration information, the corresponding relation that described attribute analysis mode has comprised described function unit's configuration information and described attribute configuration information according to preset attribute analysis mode and described function unit configuration information;
First preserves module, for preserving described function unit's configuration information and described attribute configuration information;
Editor module, for whenever necessary, by attribute configuration information described in can edition interface editor;
Rationality judge module, for judging whether the attribute configuration information after editor meets preset reasonable terms, if so, carries out function unit update module, if not, reduces described attribute configuration information;
Described function unit update module, for according to function unit configuration information described in the attribute configuration information updating after editor.
7. cloud compiling system according to claim 6, is characterized in that, described cloud compiling system also comprises:
The second acquisition module, for obtaining the program code that meets prerequisite;
The second extraction module, for extracting macro definition information from program code;
Generation module, for according to preset code data form by described macro definition Information generation standard format files, described standard format files comprises described macro definition information.
8. cloud compiling system according to claim 6, is characterized in that, described cloud compiling system also comprises:
Whether correction verification module, change for function unit configuration information described in verification, if so, carries out described attribute acquisition module, if not, and according to normal works.
9. cloud compiling system according to claim 6, is characterized in that, described cloud compiling system also comprises:
Previewing module, the function unit for preview from the first configuration information of described function, and the corresponding attribute from described attribute configuration information.
10. cloud compiling system according to claim 7, is characterized in that, described the second acquisition module specifically comprises:
Acquiring unit, stabs the program code before Preset Time point for acquisition time;
Updating block, for upgrading the timestamp of described program code.
CN201410372991.6A 2014-07-31 2014-07-31 Method of automatic configuration and cloud compiling system Active CN104090779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410372991.6A CN104090779B (en) 2014-07-31 2014-07-31 Method of automatic configuration and cloud compiling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410372991.6A CN104090779B (en) 2014-07-31 2014-07-31 Method of automatic configuration and cloud compiling system

Publications (2)

Publication Number Publication Date
CN104090779A true CN104090779A (en) 2014-10-08
CN104090779B CN104090779B (en) 2017-12-29

Family

ID=51638498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410372991.6A Active CN104090779B (en) 2014-07-31 2014-07-31 Method of automatic configuration and cloud compiling system

Country Status (1)

Country Link
CN (1) CN104090779B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484491A (en) * 2016-10-09 2017-03-08 广州视源电子科技股份有限公司 Cloud Compilation Method and system
CN107733722A (en) * 2017-11-16 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for configuring voice service
CN109919914A (en) * 2019-02-15 2019-06-21 广州视源电子科技股份有限公司 Method of calibration, device, computer equipment and the storage medium of configuration file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751028A (en) * 2009-12-01 2010-06-23 重庆邮电大学 General calibration system of automobile electronic control unit and realizing method thereof
US20120266131A1 (en) * 2011-04-12 2012-10-18 Hitachi, Ltd. Automatic program generation device, method, and computer program
CN103645895A (en) * 2013-11-29 2014-03-19 广州视源电子科技股份有限公司 Automatic configuration method and cloud compiling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751028A (en) * 2009-12-01 2010-06-23 重庆邮电大学 General calibration system of automobile electronic control unit and realizing method thereof
US20120266131A1 (en) * 2011-04-12 2012-10-18 Hitachi, Ltd. Automatic program generation device, method, and computer program
CN103645895A (en) * 2013-11-29 2014-03-19 广州视源电子科技股份有限公司 Automatic configuration method and cloud compiling system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484491A (en) * 2016-10-09 2017-03-08 广州视源电子科技股份有限公司 Cloud Compilation Method and system
CN106484491B (en) * 2016-10-09 2019-07-26 广州视源电子科技股份有限公司 Cloud Compilation Method and system
CN107733722A (en) * 2017-11-16 2018-02-23 百度在线网络技术(北京)有限公司 Method and apparatus for configuring voice service
CN107733722B (en) * 2017-11-16 2021-07-20 百度在线网络技术(北京)有限公司 Method and apparatus for configuring voice service
CN109919914A (en) * 2019-02-15 2019-06-21 广州视源电子科技股份有限公司 Method of calibration, device, computer equipment and the storage medium of configuration file

Also Published As

Publication number Publication date
CN104090779B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
TWI663553B (en) Method and device for generating contract
CN104615466B (en) A kind of cloud platform dispositions method and system
CN100543732C (en) The method and system that is used for ui language between synchronizing software application program and the web website
CN104133772A (en) Automatic test data generation method
CN104866512A (en) Method, device and system for extracting webpage content
CN108121539B (en) Component processing method and device
CN108399072A (en) Five application page update method and device
CN109710631A (en) Auxiliary generates method, apparatus, equipment and the computer storage medium of SQL code
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN104090780A (en) Automatic configuration method and cloud compiling system
CN104077159A (en) Small cell system parameter attribute configuration method and device
CN104090779A (en) Automatic configuration method and cloud compiling system
CN100450013C (en) Method for storing configuration data of communication equipment
CN107404669A (en) Television system interface display methods, equipment and computer-readable recording medium
CN103491522A (en) Terminal adaption method and device
CN107426588B (en) Method, system and storage device for acquiring television set configuration information
CN109683948A (en) System data introduction method, device, electronic product and storage medium
CN103645895A (en) Automatic configuration method and cloud compiling system
CN104602124A (en) Multi-screen driving method and system of LCD TV and driving main board module
CN110865827B (en) Data updating method, device and system
CN113268232A (en) Page skin generation method and device and computer readable storage medium
CN106648618B (en) Text information generation method and device for virtual application
CN115167941A (en) Front-end component processing method, device, terminal and storage medium
CN109543122B (en) Content synchronization method, device, storage medium and electronic device
CN114138813A (en) Attribute configuration method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant