Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS2 / JAWS / Cache_Manager.h
bloba545e989acb553924b9898dc1f36bb99de9283e5
1 /* -*- c++ -*- */
2 #ifndef JAWS_CACHE_MANAGER_H
3 #define JAWS_CACHE_MANAGER_H
5 #include "ace/ACE.h"
7 #include "JAWS/Cache_Manager_T.h"
9 class JAWS_String_Hash_Functor
11 public:
12 JAWS_String_Hash_Functor (const char *s);
13 operator unsigned long () const;
15 private:
16 unsigned long i_;
19 class JAWS_String_Equal_Functor
21 public:
22 JAWS_String_Equal_Functor (const char *s1, const char *s2);
23 operator int () const;
25 private:
26 int i_;
29 class JAWS_Strdup_String
31 public:
32 JAWS_Strdup_String ();
33 JAWS_Strdup_String (const char *s);
34 JAWS_Strdup_String (const JAWS_Strdup_String &s);
35 ~JAWS_Strdup_String ();
37 operator const char * () const;
38 void operator = (const char *s);
39 void operator = (const JAWS_Strdup_String &s);
41 private:
42 int *c_;
43 char *s_;
46 typedef JAWS_Cache_Manager<JAWS_Strdup_String,
47 JAWS_Referenced_Cache_Object_Factory,
48 JAWS_String_Hash_Functor,
49 JAWS_String_Equal_Functor>
50 JAWS_String_Referenced_Cache_Manager;
52 typedef JAWS_Cache_Manager<JAWS_Strdup_String,
53 JAWS_Counted_Cache_Object_Factory,
54 JAWS_String_Hash_Functor,
55 JAWS_String_Equal_Functor>
56 JAWS_String_Counted_Cache_Manager;
59 #endif /* JAWS_CACHE_MANAGER_H */