HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_UndoWorkerFinderTable.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: UT_UndoWorkerFinderTable.h
7  *
8  * COMMENTS:
9  * This class maintains a table of undo worker finders. See
10  * UT_UndoWorkerFinder.h for comments on how this class works.
11  */
12 
13 #ifndef __UT_UndoWorkerFinderTable_h__
14 #define __UT_UndoWorkerFinderTable_h__
15 
16 #include "UT_API.h"
17 #include "UT_Map.h"
19 
21 {
22 public:
23  static UT_UndoWorkerFinderTable &instance();
24 
25  void addWorkerFinder(UT_UndoWorkerFinderBase &worker_finder);
26  void removeWorkerFinder(UT_UndoWorkerFinderBase &worker_finder);
27  void *findOpaqueWorker(int undo_worker_id);
28 
29 protected:
32 
34 
37 };
38 
39 #endif
#define UT_API
Definition: UT_API.h:12
static UT_UndoWorkerFinderTable * ourInstance
UT_Map< int, UT_UndoWorkerFinderBase * > myTable