diff options
author | bala <balanatarajan@users.noreply.github.com> | 2000-10-16 23:19:58 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2000-10-16 23:19:58 +0000 |
commit | 4bfbe44927755f47219ef9de5c62cba9aca8a455 (patch) | |
tree | 6e3d294bd28a733420d0b56cbdb546ddfe226e1e | |
parent | f302e8f091ae87162adad6bd26a130ea3aa694be (diff) | |
download | ATCD-4bfbe44927755f47219ef9de5c62cba9aca8a455.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/tao/Connection_Cache_Manager.cpp | 14 | ||||
-rw-r--r-- | TAO/tao/Connection_Cache_Manager.h | 70 | ||||
-rw-r--r-- | TAO/tao/Connection_Cache_Manager.i | 8 |
3 files changed, 92 insertions, 0 deletions
diff --git a/TAO/tao/Connection_Cache_Manager.cpp b/TAO/tao/Connection_Cache_Manager.cpp new file mode 100644 index 00000000000..e6bffb2aa5a --- /dev/null +++ b/TAO/tao/Connection_Cache_Manager.cpp @@ -0,0 +1,14 @@ +//$Id$ + +#include "tao/Connection_Cache_Manager.h" + +#if !defined (__ACE_INLINE__) +# include "tao/Connection_Cache_Manager.i" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID(tao, Connection_Cache_Manager, "$Id$") + + +TAO_Connection_Cache_Manager::~TAO_Connection_Cache_Manager (void) +{ +} diff --git a/TAO/tao/Connection_Cache_Manager.h b/TAO/tao/Connection_Cache_Manager.h new file mode 100644 index 00000000000..4bf9d69cf16 --- /dev/null +++ b/TAO/tao/Connection_Cache_Manager.h @@ -0,0 +1,70 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// Connection_Cache_Manager.h +// +// = AUTHOR +// Bala Natarajan <bala@cs.wustl.edu> +// +// ============================================================================ + +#ifndef TAO_CONNECTION_CACHE_MANAGER_H +#define TAO_CONNECTION_CACHE_MANAGER_H +#include "ace/pre.h" + + + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +#define ACE_LACKS_PRAGMA_ONCE +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_Cache_ExtId; +class TAO_Cache_IntId; + +class TAO_Export TAO_Connection_Cache_Manager +{ + // = TITLE + // TAO_Connection_Cache_Manager is an abstract class for + + // = DESCRIPTION + // +public: + + TAO_Connection_Cache_Manager (void); + // Constructor + + virtual ~TAO_Connection_Cache_Manager (void); + // Destructor + + virtual int bind (const TAO_Cache_ExtId &ext_id, + const TAO_Cache_IntId &int_id) = 0; + // Associate <ext_id> with <int_id>. If <ext_id> is already in the + // map then the <Map_Entry> is not changed. Returns 0 if a new + // entry is bound successfully, returns 1 if an attempt is made to + // bind an existing entry, and returns -1 if failures occur. + + virtual int find (const TAO_Cache_ExtId &key, + TAO_Cache_IntId &value) = 0; + // Lookup entry<key,value> in the cache. If it is not found, returns -1. + // If the <key> is located in the MAP object, the CACHING_STRATEGY is + // notified of it via notify_find (int result, ATTRIBUTES &attribute). + // If notify_find also returns 0 (success), then this function returns + // 0 (success) and sets the cached value in <value>. + + + + +}; + +#if defined (__ACE_INLINE__) +# include "tao/Connection_Cache_Manager.i" +#endif /* __ACE_INLINE__ */ + +#include "ace/post.h" +#endif /*TAO_CONNECTION_CACHE_MANAGER_H*/ diff --git a/TAO/tao/Connection_Cache_Manager.i b/TAO/tao/Connection_Cache_Manager.i new file mode 100644 index 00000000000..f34a292269e --- /dev/null +++ b/TAO/tao/Connection_Cache_Manager.i @@ -0,0 +1,8 @@ +/* -*- C++ -*- */ +// $Id$ + + +ACE_INLINE +TAO_Connection_Cache_Manager::TAO_Connection_Cache_Manager (void) +{ +} |