Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
telAPIHandleManager.h
1 #ifndef telAPIHandleManagerH
2 #define telAPIHandleManagerH
3 #include <map>
4 #include "telplugins_types.h"
5 //---------------------------------------------------------------------------
6 //Class keeping track of all handles that are created in the Tellurium C API
7 
8 using namespace tlpc;
9 using std::map;
10 typedef map<TELHandle, const char*> HandleMap;
11 
13 {
14  public:
17  TELHandle registerHandle(TELHandle handle, const char* typeOf);
18  bool unRegisterHandle(TELHandle handle);
19  TELHandle validate(TELHandle handle, const char* typeOf, const char* fnc);
20 
21  protected:
22  HandleMap mHandles;
23  TELHandle searchFor(TELHandle handle);
24 
25 };
26 #endif
27 
28