NeXusJavaBindings  1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
handle.h
Go to the documentation of this file.
1 /*
2  This implements a handle management module. Sometimes it is useful to
3  protect the user of some software module from messing with complicated
4  datastructures. In such cases it is useful to use an integer handle
5  which can be translated into a pointer when needed by the code implementing
6  the module. Such a scheme is implemented in this module.
7 
8  Mark Koennecke, October 2000
9 */
10 #ifndef HANDLEHANDLE
11 #define HANDLEHANDLE
12 
13 /* The maximum number of handles. */
14 #define MAXHANDLE 8192
15 
16  int HHMakeHandle(void *pData);
17  void *HHGetPointer(int handle);
18  void HHRemoveHandle(int handle);
19 
20 #endif
21