Fix typo in license headers
[oweals/cde.git] / cde / programs / dtmail / include / DtMail / ObjectKey.hh
1 /*
2  *+SNOTICE
3  *
4  *
5  *      $XConsortium: ObjectKey.hh /main/4 1996/04/21 19:45:25 drk $
6  *
7  *      RESTRICTED CONFIDENTIAL INFORMATION:
8  *      
9  *      The information in this document is subject to special
10  *      restrictions in a confidential disclosure agreement bertween
11  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
12  *      document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
13  *      Sun's specific written approval.  This documment and all copies
14  *      and derivative works thereof must be returned or destroyed at
15  *      Sun's request.
16  *
17  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
18  *
19  *+ENOTICE
20  */
21
22 #ifndef _OBJECTKEY_HH
23 #define _OBJECTKEY_HH
24
25 #include <DtMail/DtLanguages.hh>
26
27 typedef char * ObjectKeyType;
28 typedef short HashVal;
29
30 class ObjectKey : public DtCPlusPlusAllocator {
31   public:
32     ObjectKey(ObjectKeyType type);
33     ObjectKey(ObjectKey &);
34     virtual ~ObjectKey(void);
35
36     virtual int operator==(ObjectKey &) = 0;
37     virtual int operator!=(ObjectKey &) = 0;
38     virtual int operator<(ObjectKey &) = 0;
39     virtual int operator>(ObjectKey &) = 0;
40     virtual int operator<=(ObjectKey &) = 0;
41     virtual int operator>=(ObjectKey &) = 0;
42
43     virtual HashVal hashValue(void) = 0;
44
45   protected:
46     ObjectKeyType       _type;
47     HashVal genericHashValue(void * buf, int len);
48 };
49
50 #endif