CN115878091A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115878091A
CN115878091A CN202211492276.7A CN202211492276A CN115878091A CN 115878091 A CN115878091 A CN 115878091A CN 202211492276 A CN202211492276 A CN 202211492276A CN 115878091 A CN115878091 A CN 115878091A
Authority
CN
China
Prior art keywords
configuration file
key
statement
dependent
key statement
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.)
Pending
Application number
CN202211492276.7A
Other languages
Chinese (zh)
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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN202211492276.7A priority Critical patent/CN115878091A/en
Publication of CN115878091A publication Critical patent/CN115878091A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the disclosure provides a data processing method, a data processing device, data processing equipment and a storage medium. The method comprises the following steps: acquiring a dependent parameter; inputting the dependent parameters into a setting configuration file; adding a dependency library to the compilation project based on the set-up configuration file to process the data according to the compilation project. According to the method and the device for configuring the dependency library, the dependency parameters are input into the set configuration file, so that a user can automatically complete the configuration of the compilation project by directly inputting the dependency parameters, and compared with the method of manually adding the dependency library into the compilation project in the prior art, the efficiency of configuring the dependency library can be improved, and the efficiency and the accuracy of data processing are improved.

Description

Data processing method, device, equipment and storage medium
Technical Field
The embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
When a compiler (such as a TASKING single-chip compiler) compiles a source file, a developer is usually required to manually add some dependency libraries into a compilation project through a graphical interface button. When a new dependency library is added, a compiling project needs to be opened, the new dependency library is manually added into the new dependency library one by one, a certain time is consumed, and when the MCU (Microcontroller Unit) software is compiled on a server, the compiler is called by using a command line, so that the dependency library cannot be added through graphical interface operation.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method, a data processing device, a data processing apparatus and a storage medium, which can improve data processing efficiency.
In a first aspect, an embodiment of the present disclosure provides a data processing method, including: acquiring a dependent parameter; inputting the dependent parameters into a setting configuration file; and adding a dependency base into the compiling project based on the setting configuration file so as to process data according to the compiling project.
In a second aspect, an embodiment of the present disclosure further provides a parameter obtaining module, configured to obtain a dependent parameter; the input module is used for inputting the dependence parameters into a setting configuration file; and the adding module is used for adding the dependency base into the compiling project based on the setting configuration file so as to process the data according to the compiling project.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to the embodiment of the present disclosure.
In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the data processing method according to the disclosed embodiments.
According to the technical scheme of the embodiment of the disclosure, the dependence parameters are obtained; inputting the dependent parameters into a setting configuration file; adding a dependency library to the compilation project based on the set-up configuration file to process the data according to the compilation project. According to the method and the device for configuring the dependency library, the dependency parameters are input into the set configuration file, so that a user can automatically complete the configuration of the compilation project by directly inputting the dependency parameters, and compared with the method of manually adding the dependency library into the compilation project in the prior art, the efficiency of configuring the dependency library can be improved, and the efficiency and the accuracy of data processing are improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the disclosure;
FIG. 2 is a schematic flow chart of another data processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
It will be appreciated that the data involved in the subject technology, including but not limited to the data itself, the acquisition or use of the data, should comply with the requirements of the corresponding laws and regulations and related regulations.
Fig. 1 is a schematic flow chart of a data processing method provided by an embodiment of the present disclosure, and the embodiment of the present disclosure is applicable to a data processing method, where the method may be executed by a data processing apparatus, and the apparatus may be implemented in the form of software and/or hardware, and optionally implemented by an electronic device, and the electronic device may be a mobile terminal, a PC terminal, or a server.
As shown in fig. 1, the method includes:
and S110, obtaining the dependent parameters.
The dependent variable can be understood as a dependent variable, the number of the dependent variables can be multiple, and each dependent variable is associated with a corresponding dependent library. The dependency library can be understood as a related dependency library file required when a compiler compiles a source file.
And S120, inputting the dependent parameters into a setting configuration file.
Wherein the settings profile may be used to add a dependency library to the compilation project. For a compilation project, after being created, the compiler may generate the compilation project including various setting configuration files, where the setting configuration files may be cproject files. The cproject file may be a kind of project description file, and source files to be compiled, dependent header files, dependent library files, and the like are defined in the cproject file.
Optionally, the mode of inputting the dependent parameter into the setting configuration file may be: acquiring a key statement; judging whether the key sentences are in a set configuration file or not; if the key statement is not in the set configuration file, inserting configuration information, and acquiring a dependent library name and a storage path corresponding to the dependent parameter; if the key statement is in the set configuration file, acquiring a name and a storage path of a dependency library corresponding to the dependency parameter; and inserting the dependent library name and the storage path into the setting configuration file based on the configuration information.
The key statement carries configuration information. The configuration file is set for configuring the dependency library. Configuration information may be understood as association information needed to add dependent libraries. Specifically, first, a key statement is obtained, then whether a corresponding key statement exists is searched for in a setting configuration file through the key statement, and if the search is successful, it is indicated that the key statement is in the setting configuration file. The dependent library name and the storage path associated with the dependent parameter may then be obtained. Wherein, the dependency parameters and the dependency library are set in advance in an associated manner. And finally, inserting the dependent library name and the storage path into adjacent positions of the configuration information to realize the insertion of the dependent library name and the storage path into the set configuration file. If the search is not successful, it indicates that the key statement is not in the configuration file. Next, the corresponding configuration information needs to be inserted, and for the inserted position, the position where the dependency library related information is described and added in the configuration file may be set. Finally, the dependent library name and the storage path associated with the dependent parameter can also be acquired, and the dependent library name and the storage path are inserted into adjacent positions of the configuration information, so that the dependent library name and the storage path are inserted into the set configuration file.
Optionally, the manner of obtaining the key statement may be: respectively acquiring a first key statement and a second key statement; correspondingly, judging whether the key statement is in the setting configuration file includes: matching the first key statement with each key statement in a set configuration file; if the matching is not successful, the first key statement is not in the set configuration file; and if the matching is successful, the first key statement is in the setting configuration file.
Wherein the second key sentence comprises the first key sentence; the second key statement is a fixed key statement in the setting configuration file. The first key statement and the second key statement both have corresponding attribute information, and the relationship between the first key statement and the second key statement may be: the second key sentence may include a variety of attribute information and include the first key sentence and corresponding associated attribute information. Correspondingly, the configuration information may be the first key statement and the corresponding associated attribute information. Illustratively, the first key sentence may be a key sentence related to a library key word, such as (name = "library" superClass = "com.task.ctc.lk.library"), and the second key sentence may be a key sentence related to a Linker key word, such as (name = "Linker" superClass = "com.task.ctc.lk.abs.debug").
It should be noted that, first, a first key statement and a second key statement may be obtained respectively, and then, whether the first key statement is in a setting configuration file is determined, and since the second key statement is a fixed key statement in the setting configuration file, the second key statement exists in the setting configuration file. And the setting configuration file can include multiple key statements, the first key statement can be matched with each key statement in the setting configuration file one by one, and if the matching is successful, the first key statement is represented in the setting configuration file. If the matching is not successful, it indicates that the first key statement is not in the configuration file.
Optionally, if the first key statement is not in the setting configuration file, the manner of inserting the configuration information may be: acquiring a first position of a second key statement in a setting configuration file; determining a next position adjacent to the first position as a first position-to-be-inserted; the configuration information is inserted into a first to-be-inserted position.
Specifically, the insertion positions for the configuration information may be: since the second key statement exists in the configuration file, the position of the second key statement in the configuration file may be acquired and used as the first position, and as for the method for acquiring the position, any method may be adopted, which is not limited in this embodiment, for example, the method may be a method of recording the position of each key statement while matching the second key statement line by line in the configuration file. The location may be characterized by a number of rows. After the first location is obtained, a next location adjacent to the first location (e.g., a next row of the first location) may be used as an insertion location of the configuration information, and may be referred to as a first to-be-inserted location.
Optionally, the manner of inserting the dependent library name and the storage path into the setting configuration file based on the configuration information may be: if the first key statement is in the setting configuration file, acquiring a second position of the first key statement in the setting configuration file; determining a next position adjacent to the second position as a second position to be inserted; inserting the dependent library name and the storage path into a second position to be inserted; or; acquiring a first position to be inserted; determining a next position adjacent to the first position to be inserted as a third position to be inserted; and inserting the dependent library name and the storage path into a third position to be inserted.
Specifically, for the case that the first key statement is not in the setting configuration file, the first to-be-inserted location where the configuration information is located may be first obtained, and then a next location adjacent to the first to-be-inserted location (for example, a next row of the first to-be-inserted location) may be used as the dependent library name and the storage path insertion location.
Specifically, for the case that the first key statement is in the setting configuration file, since the first key statement exists in the setting configuration file, it indicates that there is configuration information in the setting configuration file, and the position of the configuration information of the first key statement in the setting configuration file may be obtained and used as the second position. The manner of acquiring the position may be the same as the manner of acquiring the position of the second key sentence. After the second location is obtained, the next location adjacent to the second location may be used as (e.g., the next row of the second location) the dependent library name and the storage path insertion location.
Exemplarily, fig. 2 is a schematic flow chart of another data processing method according to an embodiment of the present invention.
The method comprises the following steps: defining dependent variables and associating set dependent libraries.
In this embodiment, from the application perspective, by defining the dependent variable, the user can directly input the dependent parameter to complete the configuration of the setting configuration file. The dependent variables and the dependent parameters may also have a one-to-one correspondence relationship.
Step two: and acquiring a first key statement and a second key statement.
Step three: and matching the first key statement with each key statement in the set configuration file, if the matching is not successful, acquiring a first position of a second key statement in the set configuration file, inserting the configuration information into a next position adjacent to the first position, marking as a first position to be inserted, and executing the step four. If the matching is successful, judging whether the attribute of the first key statement is empty, if so, configuring the attribute of the first key statement, otherwise, acquiring a second position of the configuration information of the first key statement in the set configuration file, and executing the fifth step.
Step four: and acquiring a first position to be inserted, and inserting the name of the dependent library and the storage path into a next position adjacent to the first position to be inserted.
Step five: and acquiring a second position, and inserting the dependent library name and the storage path into the next position adjacent to the second position.
In this embodiment, all operations of adding a dependent library to a setting configuration file may be regarded as operations executed by a dependent library script, and a programming language of the script may be arbitrary, for example, a shell language. The user only needs to input the dependent parameters, the dependent script runs, and the dependent script inputs the dependent parameters into the set configuration file by obtaining the dependent parameters, so that the user can realize the effect of automatically adding the dependent library through the dependent library script without opening a compiling project.
And S130, adding a dependency base into the compiling project based on the setting configuration file so as to process the data according to the compiling project.
According to the embodiment, the dependency library is added to the compiling project according to the set configuration file, so that data is processed according to the compiling project, the source file is compiled, and further corresponding recordable software or executable programs can be generated.
According to the technical scheme of the embodiment of the disclosure, the dependent parameters are obtained; inputting the dependent parameters into a setting configuration file; adding a dependency base to the compilation project based on the set-up configuration file to process the data according to the compilation project. According to the method and the device for configuring the dependency library, the dependency parameters are input into the set configuration file, so that a user can automatically complete the configuration of the compilation project by directly inputting the dependency parameters, and compared with the method that the dependency library is manually added into the compilation project in the prior art, the efficiency of configuring the dependency library can be improved, and the efficiency and the accuracy of data processing are improved.
Fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the disclosure. As shown in fig. 3, the apparatus includes: a parameter acquisition module 310, an input module 320, and an add module 330.
A parameter obtaining module 310, configured to obtain a dependent parameter;
an input module 320, configured to input the dependency parameter into a configuration file;
an adding module 330, configured to add a dependency library to the compilation project based on the set configuration file, so as to process data according to the compilation project.
According to the technical scheme of the embodiment of the disclosure, the dependent parameters are obtained through a parameter obtaining module; inputting the dependence parameters into a setting configuration file through an input module; and adding the dependency base into the compiling project through the adding module based on the setting configuration file so as to process the data according to the compiling project. According to the method and the device for configuring the dependency library, the dependency parameters are input into the set configuration file, so that a user can automatically complete the configuration of the compilation project by directly inputting the dependency parameters, and compared with the method of manually adding the dependency library into the compilation project in the prior art, the efficiency of configuring the dependency library can be improved, and the efficiency and the accuracy of data processing are improved.
Optionally, the input module is specifically configured to: acquiring a key statement; the key statement carries configuration information; judging whether the key sentence is in a set configuration file or not; the setting configuration file is used for configuring the dependency library; if the key statement is not in the set configuration file, inserting the configuration information, and acquiring a dependent library name and a storage path corresponding to the dependent parameter; if the key statement is in a set configuration file, acquiring a dependent library name and a storage path corresponding to the dependent parameter; inserting the dependent library name and the storage path into the setting configuration file based on the configuration information.
Optionally, the input module is further configured to: respectively acquiring a first key statement and a second key statement; wherein the second key sentence comprises the first key sentence; the second key statement is a fixed key statement in the setting configuration file; matching the first key statement with each key statement in the set configuration file; if the matching is not successful, the first key statement is not in a set configuration file; and if the matching is successful, the first key statement is in a setting configuration file.
Optionally, the input module is further configured to: acquiring a first position of a second key statement in the setting configuration file; determining a next position adjacent to the first position as a first position-to-be-inserted; inserting the configuration information into the first to-be-inserted location.
Optionally, the input module is further configured to: if the first key statement is in a setting configuration file, acquiring a second position of the first key statement in the setting configuration file; determining a next position adjacent to the second position as a second position to be inserted; inserting the dependent library name and the storage path into the second to-be-inserted location; or; acquiring a first position to be inserted; determining a next position adjacent to the first position to be inserted as a third position to be inserted; inserting the dependent library name and the storage path into the third to-be-inserted location.
The data processing device provided by the embodiment of the disclosure can execute the data processing method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are also only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. Referring now to fig. 4, a schematic diagram of an electronic device (e.g., the terminal device or the server in fig. 4) 500 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An editing/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The electronic device provided by the embodiment of the present disclosure and the data processing method provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the embodiment, and the embodiment has the same beneficial effects as the embodiment.
The disclosed embodiments provide a computer storage medium on which a computer program is stored, which when executed by a processor implements the data processing method provided by the above-described embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a dependent parameter; inputting the dependent parameters into a setting configuration file; adding a dependency base to a compilation project based on the configuration file to process data according to the compilation project.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, including conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the disclosed embodiments, the disclosed embodiments disclose a data processing method, comprising: acquiring a dependent parameter; inputting the dependent parameters into a setting configuration file; and adding a dependency base into the compiling project based on the setting configuration file so as to process data according to the compiling project.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of data processing, comprising:
acquiring a dependent parameter;
inputting the dependent parameters into a setting configuration file;
and adding a dependency base into the compiling project based on the setting configuration file so as to process data according to the compiling project.
2. The method of claim 1, wherein entering the dependent parameter into a settings profile comprises:
acquiring a key sentence; the key statement carries configuration information;
judging whether the key sentence is in a set configuration file or not; the setting configuration file is used for configuring the dependency library;
if the key statement is not in the set configuration file, inserting the configuration information, and acquiring a dependent library name and a storage path corresponding to the dependent parameter;
if the key statement is in a set configuration file, acquiring a dependent library name and a storage path corresponding to the dependent parameter;
inserting the dependent library name and the storage path into the setting configuration file based on the configuration information.
3. The method of claim 2, wherein obtaining key sentences comprises:
respectively acquiring a first key statement and a second key statement; wherein the second key sentence comprises the first key sentence; the second key statement is a fixed key statement in the setting configuration file;
correspondingly, judging whether the key statement is in a setting configuration file comprises the following steps:
matching the first key statement with each key statement in the set configuration file;
if the matching is not successful, the first key statement is not in a set configuration file;
and if the matching is successful, the first key statement is in a setting configuration file.
4. The method of claim 3, wherein inserting the configuration information if the first key statement is not in a configuration file comprises:
acquiring a first position of a second key statement in the setting configuration file;
determining a next position adjacent to the first position as a first position-to-be-inserted;
inserting the configuration information into the first to-be-inserted location.
5. The method of claim 4, wherein inserting the dependent library name and the storage path into the provisioning configuration file based on the configuration information comprises:
if the first key statement is in a setting configuration file, acquiring a second position of the first key statement in the setting configuration file;
determining a next position adjacent to the second position as a second position to be inserted;
inserting the dependent library name and the storage path into the second to-be-inserted location;
or;
acquiring a first position to be inserted;
determining a next position adjacent to the first position to be inserted as a third position to be inserted;
inserting the dependent library name and the storage path into the third to-be-inserted location.
6. A data processing apparatus, comprising:
the parameter acquisition module is used for acquiring the dependent parameters;
the input module is used for inputting the dependence parameters into a setting configuration file;
and the adding module is used for adding the dependency base into the compiling project based on the set configuration file so as to process data according to the compiling project.
7. The apparatus of claim 6, wherein the input module is specifically configured to:
acquiring a key sentence; the key statement carries configuration information;
judging whether the key sentence is in a set configuration file or not; the setting configuration file is used for configuring the dependency library;
if the key statement is not in the set configuration file, inserting the configuration information, and acquiring a dependent library name and a storage path corresponding to the dependent parameter;
if the key statement is in a set configuration file, acquiring a dependent library name and a storage path corresponding to the dependent parameter;
inserting the dependent library name and the storage path into the setting configuration file based on the configuration information.
8. The apparatus of claim 7, wherein the input module is further configured to:
respectively acquiring a first key statement and a second key statement; wherein the second key sentence comprises the first key sentence; the second key statement is a fixed key statement in the setting configuration file;
matching the first key statement with each key statement in the set configuration file;
if the matching is not successful, the first key statement is not in a set configuration file;
and if the matching is successful, the first key statement is in a setting configuration file.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of any of claims 1-5.
10. A storage medium containing computer-executable instructions for performing the data processing method of any one of claims 1-5 when executed by a computer processor.
CN202211492276.7A 2022-11-25 2022-11-25 Data processing method, device, equipment and storage medium Pending CN115878091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211492276.7A CN115878091A (en) 2022-11-25 2022-11-25 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211492276.7A CN115878091A (en) 2022-11-25 2022-11-25 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115878091A true CN115878091A (en) 2023-03-31

Family

ID=85764053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211492276.7A Pending CN115878091A (en) 2022-11-25 2022-11-25 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115878091A (en)

Similar Documents

Publication Publication Date Title
CN109726217B (en) Database operation method, device, equipment and storage medium
CN111290760B (en) Application program compiling method and device, electronic equipment and storage medium
CN110764748B (en) Code calling method, device, terminal and storage medium
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
CN110960855B (en) Communication protocol code updating method and device, electronic equipment and storage medium
CN114035805A (en) Code conversion method, apparatus, medium, and device for pre-compiler
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN113407165B (en) SDK generation and self-upgrade method, device, readable medium and equipment
CN113220281A (en) Information generation method and device, terminal equipment and storage medium
CN110704050B (en) Module initializing method and device, electronic equipment and computer readable storage medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN112416303A (en) Software development kit thermal restoration method and device and electronic equipment
CN111124541A (en) Configuration file generation method, device, equipment and medium
CN111240801A (en) Method, device, medium and electronic equipment for generating heap memory snapshot file
CN111796865B (en) Byte code file modification method, device, terminal equipment and medium
CN115878091A (en) Data processing method, device, equipment and storage medium
CN114035804A (en) Code conversion method, device, medium and electronic equipment
CN110442419B (en) Interface layout method and device for Android application
CN114047923A (en) Error code positioning method, device, storage medium and electronic equipment
CN111309323A (en) Parameter initialization method and device and electronic equipment
CN111209225B (en) Method, device, medium and electronic equipment for acquiring real address
CN114036053A (en) Test method, test device, readable medium and electronic equipment
CN116009951A (en) Code processing method, device, equipment and storage medium
CN113835718A (en) Android application package generation method and device, terminal device and medium
CN115329164A (en) Data display template generation method, device, equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication