HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CH_UndoTimeGroup.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CH_UndoTimeGroup.h ( OP Library, C++)
7  *
8  * COMMENTS: This class handles the undoing of time group
9  * operations.
10  *
11  * This class handles the updating of internal data
12  * when a channel group operation is undone/redone.
13  */
14 
15 #ifndef __CH_UndoTimeGroup__
16 #define __CH_UndoTimeGroup__
17 
18 #include "CH_API.h"
19 #include <UT/UT_Undo.h>
20 #include <SYS/SYS_Types.h>
21 
22 class CH_TimeGroup;
23 
25 {
29 };
30 
32 {
33 public:
35  ~CH_UndoTimeGroup() override;
36 
37  void undo() override;
38  void redo() override;
39 
40 private:
41  void swap();
42 
43  UT_String myGroupName;
44  fpreal myTime;
45  CH_UndoTimeGroupOperation myOperation;
46 };
47 
48 #endif
49 
virtual void redo()=0
void swap(T &lhs, T &rhs)
Definition: pugixml.cpp:7172
CH_UndoTimeGroupOperation
virtual void undo()=0
fpreal64 fpreal
Definition: SYS_Types.h:277
#define CH_API
Definition: CH_API.h:10