HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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"
18 #include "UT_NonCopyable.h"
19 
21 
23 {
24 public:
25  static UT_UndoWorkerFinderTable &instance();
26 
27  void addWorkerFinder(UT_UndoWorkerFinderBase &worker_finder);
28  void removeWorkerFinder(UT_UndoWorkerFinderBase &worker_finder);
29  void *findOpaqueWorker(int undo_worker_id);
30 
31 protected:
35 
36  static UT_UndoWorkerFinderTable *ourInstance;
37 
39  int myNextUniqueId;
40 };
41 
42 #endif
Unsorted map container.
Definition: UT_Map.h:107
#define UT_API
Definition: UT_API.h:14
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.