CN104572034B - A kind of implementation method and device for cancelling and/or reforming - Google Patents

A kind of implementation method and device for cancelling and/or reforming Download PDF

Info

Publication number
CN104572034B
CN104572034B CN201310472634.2A CN201310472634A CN104572034B CN 104572034 B CN104572034 B CN 104572034B CN 201310472634 A CN201310472634 A CN 201310472634A CN 104572034 B CN104572034 B CN 104572034B
Authority
CN
China
Prior art keywords
queue
revocation
container
template class
function
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.)
Active
Application number
CN201310472634.2A
Other languages
Chinese (zh)
Other versions
CN104572034A (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.)
Beijing Siemens Cerberus Electronics Ltd
Original Assignee
Beijing Siemens Cerberus Electronics 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 Beijing Siemens Cerberus Electronics Ltd filed Critical Beijing Siemens Cerberus Electronics Ltd
Priority to CN201310472634.2A priority Critical patent/CN104572034B/en
Publication of CN104572034A publication Critical patent/CN104572034A/en
Application granted granted Critical
Publication of CN104572034B publication Critical patent/CN104572034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiment of the present invention discloses a kind of implementation method and device for cancelling and/or reforming.Method includes: to establish comprising revocation queue and/or reform the container of queue, the revocation queue and/or reform queue for accommodating the objects of one or more template class, the template class include to wait cancel and/or wait reform the joint (UNION) and associated functional calls information that operate relevant function pointer;It creates the object of corresponding template class based on the operation that user executes, and by corresponding revocation queue that the object of the template class created is put into container and/or reforms queue;When user triggers revocation and/or when reforming movement, the object of corresponding template class is popped up in queue from revocation queue and/or reform, and executes the function of the function pointer meaning in template class object using the recalls information in template class object.Using template class as revocation and/or the operator reformed, various types of classes can be accommodated, data manipulation is not related to, be suitable for various application environments.

Description

A kind of implementation method and device for cancelling and/or reforming
Technical field
The present invention relates to field of computer technology, more particularly to a kind of revocation and/or the implementation method and device reformed.
Background technique
Soft project is a research engineering method building and safeguards effective, practical and high quality software Subject.It is related to programming language, database, Software Development Tools, system platform, standard, design pattern etc..? In modern society, software application is in many aspects.Typical software has Email, embedded system, man-machine interface, office set Part, operating system, compiler, database, game etc..Meanwhile various industries nearly all have the application of computer software, such as work Industry, agricultural, bank, aviation, government department etc..These applications promote the development of economy and society, also improve work and life Active rate
Software frame (Software framework) is commonly referred to as to realize some industrywide standard or complete specific The component software specification of basic task when also referring to realize some component software specification, provides specification required basis function The software product of energy.Software frame is a reusable designed component, it defines the architecture of application, is illustrated entire Dependence, responsibility distribution and control flow between design, cooperating member, show as one group between abstract class and the example The method of cooperation, it provides context (Context) relationship for component reusage.
Application developer and user it is expected that the program developed is removed with UNDO/REDO(in many cases, Sell/reform) function.Revocation function reforms function for the operation before restoring for the operation before cancelling.Either how Under kind computer language, there is specific demand for cancelling/reforming function.
However, in the prior art, needing in software development phase, for each module, each step and each function It separately designs and cancels/reform function, and this can occupy a large amount of design time, and significantly increase development cost.
Summary of the invention
Embodiment of the present invention proposes a kind of revocation and/or the implementation methods reformed, to reduce design time.
Embodiment of the present invention proposes a kind of revocation and/or the realization devices reformed, to reduce design time.
The technical solution of embodiment of the present invention is as follows:
A kind of implementation method for cancelling and/or reforming, this method comprises:
Establish comprising revocation queue and/or reform the container of queue, the revocation queue and/or reform queue for accommodate one A or multiple template class object, the template class include to wait cancel and/or wait reform the joint for operating relevant function pointer (UNION) and associated functional calls information;
Create the object of the corresponding template class based on the operation that user executes, and by the object of the template class created The corresponding revocation queue that is put into the container and/or reform queue;
When user triggers revocation and/or when reforming movement, from the revocation queue and/or pop-up is reformed in queue accordingly The object of the template class, and execute the function in the template class object using the recalls information in the template class object and refer to The function of needle meaning.
The function call information includes function call parameter and calling object.
The template class has association's statement and association's variable-definition, include in association statement it is described with Cancel and/or reform the list for operating relevant function pointer.
The function pointer relevant to cancelling and/or reforming operation includes the letter for being directed toward at least one of following operation Number pointer:
Add field device icon;Delete field device icon;Mobile field device icon;Modify field device parameters.
It the revocation queue and reforms queue queue length having the same, and the revocation queue and reforms queue and be total to Enjoy queue pointer.
The template class object for being put into the revocation queue and reforming in queue includes same functions pointer or identical letter Number call chain.
The container is Standard Template Library sequence container, Standard Template Library associated container, non-standard sequence container or nonstandard Quasi- associated container.
The container is the container of the container of C Plus Plus Standard Template Library, MFC container class libraries, or holds for customized chained list Device.
A kind of realization device for cancelling and/or reforming, including container establish unit, Object Creation unit and execution unit, Wherein:
Container establishes unit, includes revocation queue and/or reforms the container of queue for establishing, the revocation queue and/or Queue is reformed for accommodating the objects of one or more template class, the template class include with wait cancel and/or operation phase to be reformed The joint (UNION) and associated functional calls information of the function pointer of pass;
Object Creation unit, for creating the object of the corresponding template class based on the operation that user executes, and by institute The corresponding revocation queue and/or reform queue that the object of the template class of creation is put into the container;
Execution unit, for from the revocation queue and/or reforming team when user triggers revocation and/or reforms movement The object of the corresponding template class is popped up in column, and executes the template class using the recalls information in the template class object The function of function pointer meaning in object.
The function call information includes function call parameter and calling object.
The template class has association's statement and association's variable-definition, include in association statement it is described with Cancel and/or reform the list for operating relevant function pointer.
The function pointer relevant to cancelling and/or reforming operation includes the letter for being directed toward at least one of following operation Number pointer:
Add field device icon;Delete field device icon;Mobile field device icon;Modify field device parameters.
It the revocation queue and reforms queue queue length having the same, and the revocation queue and reforms queue and be total to Enjoy queue pointer.
The template class object for being put into the revocation queue and reforming in queue includes same functions pointer or identical letter Number call chain.
The container is Standard Template Library sequence container, Standard Template Library associated container, non-standard sequence container or nonstandard Quasi- associated container.
The container is the container of the container of C Plus Plus Standard Template Library, MFC container class libraries, or holds for customized chained list Device.
It can be seen from the above technical proposal that in embodiments of the present invention, establishing comprising revocation queue and/or reforming team The container of column, the revocation queue and/or reforms queue for accommodating the objects of one or more template class, the template class include with Wait cancel and/or wait reform the joint (UNION) and associated functional calls information that operate relevant function pointer;Based on user The operation of execution creates the object of the corresponding template class, and the object of the template class created is put into the container It is corresponding to cancel queue and/or reform queue;When user triggers revocation and/or reforms movement, from the revocation queue and/or again The object for popping up the corresponding template class in queue is done, and executes the mould using the recalls information in the template class object The function of function pointer meaning in plate class object.It can be seen that using template class after using embodiment of the present invention and making For the operator for cancelling and/or reforming, therefore various types of classes can be accommodated, without being directed to each module, each step Revocation is designed with each function and/or reforms function, therefore has saved design time.Embodiment of the present invention is not related to various Data manipulation, therefore can be applicable in various application environments.
Moreover, because using sharing body statement and sharing body variable-definition attribute, therefore embodiment of the present invention occupies Seldom memory, to also improve development efficiency.
Detailed description of the invention
Fig. 1 is the implementation method flow chart for cancelling and/or reforming according to embodiment of the present invention.
Fig. 2 is the first instance graph of implementation method for cancelling and/or reforming according to embodiment of the present invention.
Fig. 3 is the second instance graph of implementation method for cancelling and/or reforming according to embodiment of the present invention.
Fig. 4 is the implementation method third instance graph for cancelling and/or reforming according to embodiment of the present invention.
Fig. 5 is the 4th instance graph of implementation method for cancelling and/or reforming according to embodiment of the present invention.
Fig. 6 is the realization device structure chart for cancelling and/or reforming according to embodiment of the present invention.
Specific embodiment
In order to which technical solution of the present invention and advantage is more clearly understood, below in conjunction with drawings and the embodiments, to this Invention is further elaborated.It should be appreciated that the specific embodiments described herein are only used to illustrative illustrate originally Invention, is not intended to limit the scope of protection of the present invention.
Fig. 1 is the implementation method flow chart for cancelling and/or reforming according to embodiment of the present invention.
As shown in Figure 1, this method comprises:
Step 101: establishing comprising revocation queue and/or reform the container of queue, the revocation queue and/or reform queue use In the object for accommodating one or more template class, which includes to refer to wait cancel and/or wait reform the relevant function of operation The joint (UNION) and associated functional calls information of needle.
In embodiments of the present invention, using template class (template class) as revocation and/or the operation reformed Symbol.Template class is that only the different types of class of member data is abstracted to a batch, as long as programmer is whole composed by this collection of class Ge Lei family creates a template class, provides a set of program code, so that it may (this kind of to see for generating a variety of specific classes Work is the example of class template), to greatly improve programming efficiency.The type parameter of template can be by keyword class or key Word typename and subsequent identifier are constituted.
In one embodiment, the template class has association's statement and association's variable-definition, in the association It include described to operate the list of relevant function pointer with cancelling and/or reform in statement.
In one embodiment, function call information may include function call parameter and calling object.
In one embodiment:
Function pointer relevant to cancelling and/or reforming operation includes being directed toward at least one of following function operated to refer to Needle: addition field device icon;Delete field device icon;Mobile field device icon;Modify field device parameters.
Function pointer relevant to cancelling and/or reforming operation is enumerated in detail above, and those skilled in the art can anticipate Know, embodiment of the present invention is not limited to these function pointers, but is suitable for arbitrary function pointer.
When the C/C++ Programming with Pascal Language of certain algorithms, need that several different types of variables is made to be stored in same section In internal storage location.Soverlay technique is namely used, several variables cover mutually.This several different variables occupy one section jointly The structure of memory is referred to as " sharing body " or " association " type structure, referred to as shares/association in C language.
Exemplarily, which can be named as CUserOperation, and be defined as follows:
Theoretically, template class defined above can cover all function prototypes (function types).In project In exploitation, all function prototypes can be listed in a template.However, if all function prototypes are all arranged in a template Out, it is likely to result in redundancy.
Preferably, it can use the redundancy between template keyword elimination function prototype.
Such as:
In order to which function is added in template class, many " char ", " m_arg " parameter can be introduced, in template class to deposit Store up variable element (variable-argument) list.Label " m_indx " can also be passed through in template class and point out function class The concrete meaning of type.
It when user executes operation on software, can be generated by different modes different as a result, including user interface Change, database update send a command to equipment, etc..It is assumed that revocation function can be searched out, can be disappeared by cancelling function Except brought by all these operations as a result, here it is cancel and/or reform in embodiment of the present invention realize frame basis.
Therefore, can establish a container (container) in a program, in this embodiment comprising revocation queue and/or Reform queue.Revocation queue and/or the object for reforming template class of the queue for accommodating the foregoing description.Wherein it is possible to using mark Quasi- template library (STL) sequence container, such as vector, string, deque and list;STL associated container can also be used, than Such as set, multiset, map and multimap;Non-standard sequence container slist and rope can also be used;Or it can use Off-gauge associated container, such as hash_set, hase_multiset, hash_map and hash_multimap, etc..One In a embodiment: container can be the container of the container of C Plus Plus Standard Template Library, MFC container class libraries, or be customized chain Table container, etc..
The specific example for enumerating container in detail above, is only used for it will be appreciated by those of skill in the art that these are enumerated Demonstration purpose, is not used to be defined the protection domain of embodiment of the present invention.
Preferably, cancelling queue and reforming queue can have identical queue size, and cancels queue and reform team Column can also be with shared queue's pointer.In this way, can be kept between queue cancelling queue and reforming based on shared queue pointer Operation order relevance, to guarantee destruction operation and reform the correct of operation and execute sequence.
Step 102: the object of the corresponding template class, and the template that will be created are created based on the operation that user executes The corresponding revocation queue and/or reform queue that the object of class is put into the container.
Herein, when executing operation on software as user, if the user decide that needing to protect operation site environment, by base In the specific object for executing operation and operation site environment drawing template establishment class, and the object of template class is put into the revocation team Arrange and/or reform queue.Here, can select which user's operation when programming according to specific requirements can be revoked and/or again It does.For selected user's operation, is operated in execution code at it and relevant template class Object Creation code is added.Needle as a result, Certain user is operated, software can execute above-mentioned steps 102.
In view of in some cases, revocation function may be to execute identical function operation, and it is joined with function is reformed Number is different.For example, cancelling function if movement performed by user is mobile mouse from A point to B point and reforming the letter of function Number operation is mouse move function, and only the parameter of move function is changed.For this purpose, in one embodiment of the present invention In, the template class object comprising same functions pointer or same functions call chain can be preferably put into the revocation queue and reformed Queue.That is, be put into the revocation queue and reform the template class object in queue comprising same functions pointer or Same functions call chain.It is often necessary to execute identical function (different function parameters is respectively adopted) or identical function tune To realize revocation function and function is reformed with chain (for each function in function call company, different function parameters is respectively adopted) Energy.
Step 103: when user triggers revocation and/or when reforming movement, from the revocation queue and/or reforming queue and be hit by a bullet The object of the corresponding template class out, and executed in the template class object using the recalls information in the template class object Function pointer meaning function.
Herein, when user triggers revocation and/or reforms movement, for example user clicks revocation and/or reforms button, from It cancels queue and/or reforms the object for popping up corresponding template class in queue, and parsed specifically from the object of template class Function pointer joint and recalls information, recycle the recalls information in template class object to execute in the template class object Function pointer.
In fact, identical function can be applicable in by cancelling and reforming operation.For example, when equipment is dragged in map by user New position when, system will call function as follows:
void CView::MovePosition(const int&x,const int&y);
In this case, revocation function executes identical function, but the input parameter for cancelling function should be original Position, and it is not the new position being dragged to.
In some cases, individual function is not available to cancel or reform some step.Therefore, execute revocation or When reforming operation, need using function call chain.
Two functions can be used when appliance icon is dragged to the new position in map by revocation in citing.First letter Number selection particular device, and second function realizes mobile device.
Such as:
a)void CView::SelectDevice(CDeivce*pSel);// selection equipment
b)void CView::MovePosition(const int&x,const int&y);
It can implement the present invention, such as Pascal, C language, C++, Csharp, JAVA, AAuto in a variety of exploitation environment Deng exploitation environment in, embodiment of the present invention is to this and is not limited.Preferably, present invention is particularly suitable for C Plus Plus.
Fig. 2 is the first instance graph of implementation method for cancelling and/or reforming according to embodiment of the present invention.Fig. 3 is according to this The second instance graph of implementation method that invention embodiment is cancelled and/or reformed.Fig. 4 be according to embodiment of the present invention revocation and/ Or the implementation method third instance graph reformed.Fig. 5 is the implementation method the 4th for cancelling and/or reforming according to embodiment of the present invention Instance graph.
In fig. 2 it is shown that position of all icons in map.
If user it is expected left-justify icon, user can choose icon and execute left-justify function, and Fig. 3 is to execute a left side Schematic diagram after alignment function.At this point, user (for example can be adjusted based on left-justify handling function pointer and operation site environment With object and call parameters) object of drawing template establishment class, and the object of template class is put into revocation queue and/or reforms queue.
If user triggers revocation function, for example presses revocation button, icon will cancel left-justify, and be restored to original The position come, Fig. 4 are that icon is restored to the schematic diagram after origin-location.At this point, taking out the template class from revocation queue Object, and parse corresponding operation function, call parameters and call object, and accordingly execute destruction operation.
If user, which triggers, reforms function, for example presses and reform button again, icon will execute left-justify function again, Fig. 5 is the schematic diagram that icon executes left-justify again.At this point, from the object for taking out the template class in queue is reformed, and parse Corresponding operation function, call parameters and calling object, and accordingly execute and reform operation.
Based on above-mentioned detailed analysis, embodiment of the present invention also proposed a kind of realization device for cancelling and/or reforming.
Fig. 6 is the realization device structure chart for cancelling and/or reforming according to embodiment of the present invention.
As shown in fig. 6, the revocation and/or the realization device reformed include that container establishes unit 601, Object Creation unit 602 and execution unit 603, in which:
Container establishes unit 601, includes revocation queue and/or reforms the container of queue for establishing, the revocation queue and/ Or reforming queue for accommodating the object of one or more template class, the template class includes to operate with wait cancel and/or wait reform The joint (UNION) and associated functional calls information of relevant function pointer;
Object Creation unit 602, for creating the object of the corresponding template class based on the operation that user executes, and will The corresponding revocation queue and/or reform queue that the object of the template class created is put into the container;
Execution unit 603, for from the revocation queue and/or reforming when user triggers revocation and/or reforms movement The object of the corresponding template class is popped up in queue, and executes the template using the recalls information in the template class object The function of function pointer meaning in class object.
In one embodiment, the function call information includes function call parameter and calling object.
In one embodiment, the template class has association's statement and association's variable-definition, in the association It include described to operate the list of relevant function pointer with cancelling and/or reform in statement.
In one embodiment, the function pointer relevant to cancelling and/or reforming operation includes being directed toward in following At least one operation function pointer: addition field device icon;Delete field device icon;Mobile field device icon; Modify field device parameters, etc..
In one embodiment, it cancels queue and reforms queue queue length having the same, and the revocation team Arrange and reform queue sharing queue pointer.In this way, in revocation queue and can be reformed between queue based on shared queue pointer Operation order relevance is kept, to guarantee destruction operation and reform the correct of operation and execute sequence.
In one embodiment, the template class object comprising same functions pointer or same functions call chain is put into institute It states revocation queue and reforms queue.That is, being put into the revocation queue and reforming the template class object packet in queue Pointer containing same functions or same functions call chain.It is often necessary to which executing identical function (is respectively adopted different function ginsengs Number) or identical function call chain (for function call even in each function, different function parameters is respectively adopted) with reality It now cancels function and reforms function.
In one embodiment, can use Standard Template Library (STL) sequence container, such as vector, string, Deque and list;STL associated container, such as set, multiset, map and multimap can also be used;It can also use non- Standard sequence container slist and rope;Or off-gauge associated container, such as hash_set, hase_ can be used Multiset, hash_map and hash_multimap, etc..
Preferably, container can be the container of the container of C Plus Plus Standard Template Library, MFC container class libraries, or be customized Chained list container, etc..
Indeed, it is possible to which the revocation and/or reform that embodiment of the present invention is proposed are embodied by diversified forms Implementation method and device.
For example, the application programming interfaces centainly standardized can be followed, the implementation method for cancelling and/or reforming is written as pacifying The plug-in card program being attached in PC, work station, mobile terminal etc., can also be encapsulated for application program for user from Row downloading uses.When being written as plug-in card program, a variety of card formats such as ocx, dll, cab can be implemented as.It can also be with By particular techniques such as Flash plug-in unit, RealPlayer plug-in unit, MMS plug-in unit, MIDI staff plug-in unit, ActiveX plug-in units come real Apply the revocation that embodiment of the present invention is proposed and/or the implementation method reformed.
It can by the storing mode revocation that is proposed embodiment of the present invention of instruction or instruction set storage and/or again The implementation method done is stored on various storage mediums.These storage mediums include but is not limited to: floppy disk, CD, DVD, Hard disk, flash memory etc..
Furthermore it is also possible to which revocation that embodiment of the present invention is proposed and/or the implementation method reformed to be applied to and be based on In the storage medium of flash memory (Nand flash), such as USB flash disk, CF card, SD card, SDHC card, mmc card, SM card, memory stick, xD card Deng.
In conclusion in embodiments of the present invention, establishing comprising revocation queue and/or reforming the container of queue, this is removed Pin queue and/or reform queue for accommodating the objects of one or more template class, the template class include with wait cancel and/or to Reform the joint (UNION) and associated functional calls information for operating relevant function pointer;The operation wound executed based on user The object of the corresponding template class is built, and the object of the template class created is put into the corresponding revocation queue in the container And/or reform queue;When user triggers revocation and/or when reforming movement, popped up from the revocation queue and/or reform in queue The object of the corresponding template class, and executed in the template class object using the recalls information in the template class object The function of function pointer meaning.It can be seen that after using embodiment of the present invention, use template class as revocation and/or The operator reformed, therefore various types of classes can be accommodated, without being set for each module, each step and each function Meter cancels/reforms function, therefore has saved design time.And embodiment of the present invention is not related to various data manipulations, because This can be adapted in various application environments.
Moreover, because using sharing body statement and sharing body variable-definition attribute, therefore embodiment of the present invention occupies Seldom memory, to also improve development efficiency.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (14)

1. a kind of revocation and/or the implementation method reformed, which is characterized in that this method comprises:
Establish comprising revocation queue and/or reform the container of queue, the revocation queue and/or reform queue for accommodate one or The object of multiple template class, the template class include to wait cancel and/or wait reform the association for operating relevant function pointer (UNION) and associated functional calls information;
The object of the corresponding template class is created based on the operation that user executes, and the object of the template class created is put into Corresponding revocation queue in the container and/or reform queue;
When user triggers revocation and/or reforms movement, from the revocation queue and/or reform in queue described in pop-up accordingly The object of template class, and execute using the recalls information in the template class object function pointer institute in the template class object The function of finger;
Wherein, the template class is to be abstracted and formed to the different types of class of member data, and the template class can For generating a variety of different classes;
Wherein, the template class object for being put into the revocation queue and reforming in queue includes same functions pointer or identical letter Number call chain.
2. revocation according to claim 1 and/or the implementation method reformed, which is characterized in that the function call information Including function call parameter and call object.
3. revocation according to claim 1 and/or the implementation method reformed, which is characterized in that the template class has connection Zoarium statement and association's variable-definition, in association statement include it is described with wait cancel and/or operation phase to be reformed The list of the function pointer of pass.
4. revocation according to claim 1 and/or the implementation method reformed, which is characterized in that it is described with wait cancelling and/or Include the function pointer for being directed toward at least one of following operation wait reform the relevant function pointer of operation:
Add field device icon;Delete field device icon;Mobile field device icon;Modify field device parameters.
5. revocation according to claim 1 and/or the implementation method reformed, which is characterized in that the revocation queue and again It does queue queue length having the same, and the revocation queue and reforms queue sharing queue pointer.
6. revocation according to any one of claims 1-5 and/or the implementation method reformed, which is characterized in that the appearance Device is Standard Template Library sequence container, Standard Template Library associated container, non-standard sequence container or non-standard associated container.
7. revocation according to claim 6 and/or the implementation method reformed, which is characterized in that the container is C Plus Plus The container of the container of Standard Template Library, MFC container class libraries, or be customized chained list container.
8. a kind of revocation and/or the realization device reformed, which is characterized in that including container establish unit, Object Creation unit and Execution unit, in which:
Container establishes unit, includes revocation queue and/or reforms the container of queue for establishing, and the revocation queue and/or reforms Queue is used to accommodate the objects of one or more template class, which includes relevant to wait cancel and/or wait reform operation The association (UNION) of function pointer and associated functional calls information;
Object Creation unit for creating the object of the corresponding template class based on the operation that user executes, and will be created Template class the corresponding revocation queue that is put into the container of object and/or reform queue;
Execution unit, for from the revocation queue and/or reforming in queue when user triggers revocation and/or reforms movement The object of the corresponding template class is popped up, and executes the template class object using the recalls information in the template class object In function pointer meaning function;
Wherein, the template class is to be abstracted and formed to the different types of class of member data, and the template class can For generating a variety of different classes;
Wherein, the template class object for being put into the revocation queue and reforming in queue includes same functions pointer or identical letter Number call chain.
9. revocation according to claim 8 and/or the realization device reformed, which is characterized in that the function call information Including function call parameter and call object.
10. revocation according to claim 8 and/or the realization device reformed, which is characterized in that the template class has connection Zoarium statement and association's variable-definition, in association statement include it is described with wait cancel and/or operation phase to be reformed The list of the function pointer of pass.
11. revocation according to claim 8 and/or the realization device reformed, which is characterized in that
It is described to include the letter for being directed toward at least one of following operation wait cancel and/or wait reform the relevant function pointer of operation Number pointer:
Add field device icon;Delete field device icon;Mobile field device icon;Modify field device parameters.
12. revocation according to claim 8 and/or the realization device reformed, which is characterized in that the revocation queue and again It does queue queue length having the same, and the revocation queue and reforms queue sharing queue pointer.
13. the revocation according to any one of claim 8-12 and/or the realization device reformed, which is characterized in that described Container is Standard Template Library sequence container, Standard Template Library associated container, non-standard sequence container or non-standard associated container.
14. revocation according to claim 13 and/or the realization device reformed, which is characterized in that the container is C++ language It says the container of Standard Template Library, the container of MFC container class libraries, or is customized chained list container.
CN201310472634.2A 2013-10-11 2013-10-11 A kind of implementation method and device for cancelling and/or reforming Active CN104572034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310472634.2A CN104572034B (en) 2013-10-11 2013-10-11 A kind of implementation method and device for cancelling and/or reforming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310472634.2A CN104572034B (en) 2013-10-11 2013-10-11 A kind of implementation method and device for cancelling and/or reforming

Publications (2)

Publication Number Publication Date
CN104572034A CN104572034A (en) 2015-04-29
CN104572034B true CN104572034B (en) 2019-04-02

Family

ID=53088210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310472634.2A Active CN104572034B (en) 2013-10-11 2013-10-11 A kind of implementation method and device for cancelling and/or reforming

Country Status (1)

Country Link
CN (1) CN104572034B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355991B (en) * 2016-10-31 2020-12-18 成都乐创自动化技术股份有限公司 Teaching method and device
CN109032752B (en) * 2017-06-12 2023-03-10 微软技术许可有限责任公司 Cloud platform based operation revocation
CN107656679B (en) * 2017-09-28 2019-08-06 上海传英信息技术有限公司 Picture editing method and terminal
CN108228168A (en) * 2017-12-29 2018-06-29 安徽方正医疗信息技术有限公司 A kind of revocation, the abstract method of recovery operation
CN110231909B (en) * 2019-05-15 2021-03-05 广州视源电子科技股份有限公司 Writing operation processing method and device
CN112000321A (en) * 2020-09-01 2020-11-27 杭州宏深科技有限公司 Method and device for realizing undo and/or redo of three-dimensional detection software
CN114489453A (en) * 2022-01-26 2022-05-13 深圳市前海手绘科技文化有限公司 Visual generation method and system for revocation and recovery of presentation drafts

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
CN102736910A (en) * 2011-05-11 2012-10-17 新奥特(北京)视频技术有限公司 Plugin-based general command interface definition method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364176A (en) * 2008-08-12 2009-02-11 北京航空航天大学 BPEL visual model building system based on GMF
CN102736910A (en) * 2011-05-11 2012-10-17 新奥特(北京)视频技术有限公司 Plugin-based general command interface definition method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MFC文档编辑器中多级Undo与Redo的通用实现;赵梅 等;《计算机工程》;20030905;第29卷(第17期);95-96
撤销和重做(Undo和Redo)的C++完美实现;星空下的魔术师;《wenku.baidu.com/view/3bd7e266caaedd3383c4d353.htm?from=search》;20111130;第2,6-9,28页
监控绘图软件中Undo/Redo的设计和实现;张昊 等;《自动化与信息工程》;20080315(第1期);23-25

Also Published As

Publication number Publication date
CN104572034A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104572034B (en) A kind of implementation method and device for cancelling and/or reforming
JP4669788B2 (en) Restriction condition solving method, restriction condition solving apparatus, and restriction condition solving system
Bastide et al. Petri net objects for the design, validation and prototyping of user-driven interfaces.
CN102054217B (en) Entity morphing in metamodel-based tools
US20080015911A1 (en) Methods and apparatuses for developing business solutions
CN102681878A (en) Method to add new software features without modifying existing code
Ferreira et al. Automated verification of the FreeRTOS scheduler in Hip/Sleek
US10489167B2 (en) Dynamically binding data in an application
CA2110417A1 (en) Message dispatching in an event-driven architecture
US9170783B1 (en) Class creation assistant for textual programming languages
CN102289367A (en) Command line shell command generation based on schema
Luckow et al. Symbolic pathfinder v7
Hamon et al. Formal modelling of dynamic instantiation of input devices and interaction techniques: application to multi-touch interactions
CN112965721A (en) Android-based project compiling method and device, computer equipment and storage medium
CN112988139A (en) Method and device for developing event processing file
CN109117124A (en) A kind of function programming method of more return values
Sarkar et al. Higher-order concurrency for microcontrollers
US20230093709A1 (en) Dynamically binding data in an application
CN113434141B (en) Method and system for developing windows graphical interface management system based on domestic environment
CN107562430A (en) A kind of Compilation Method of file process function for mobile π algorithmic language
CN109062556A (en) A kind of function programming system of more return values
Aziz Distributed Model Checking Using Hadoop
CN101446894B (en) Embedded graphic system based on household computerized embroidery machine
CN105117420A (en) Method and apparatus for updating word stock of input method
Sun et al. Formal verification of a task scheduler for embedded operating systems

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