00001 /********************************************************************** 00002 *< 00003 FILE: toolmap.h 00004 00005 DESCRIPTION: defines a mapping between control identifiers and osnaps 00006 00007 CREATED BY: John Hutchinson 00008 00009 HISTORY: January 15, 1996 00010 *> Copyright (c) 1994, All Rights Reserved. 00011 **********************************************************************/ 00012 00013 #pragma once 00014 #include "maxheap.h" 00015 #include "tab.h" 00016 00017 00018 class msgdata: public MaxHeapOperators { 00019 public: 00020 int recipient; 00021 int subindex; 00022 int msg; 00023 msgdata(){}; 00024 msgdata(int r, int s, int m):recipient(r), subindex(s), msg(m){}; 00025 }; 00026 00027 00028 00029 class tooltabentry: public MaxHeapOperators { 00030 00031 private: 00032 00033 int indexer; 00034 msgdata data; 00035 00036 public: 00037 00038 tooltabentry(){}; 00039 tooltabentry(int i, int r, int s, int m); 00040 msgdata *Query(int i); 00041 00042 }; 00043 00044 00045 class ToolTab : public Tab<tooltabentry *> { 00046 public: 00047 msgdata *Lookup(int toolid); 00048 }; 00049 00050 00051 00052