summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ObjectCache.h
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-05-09 13:07:41 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-05-09 13:07:41 +0000
commit197b6de9281b52d0b53c4b3fa3312e371b4469a9 (patch)
treebae93f8155da0770f5dd45d12ef1160ee99aed54 /cpp/src/IceGrid/ObjectCache.h
parentAdded identityToString and stringToIdentity to Communicator (diff)
downloadice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.bz2
ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.xz
ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.zip
Fixed proxy and identity t/from string functions to use string converters
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.h')
-rw-r--r--cpp/src/IceGrid/ObjectCache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h
index c608f57aa7f..cb9d049a6f9 100644
--- a/cpp/src/IceGrid/ObjectCache.h
+++ b/cpp/src/IceGrid/ObjectCache.h
@@ -80,7 +80,7 @@ class ObjectCache : public Cache<Ice::Identity, ObjectEntry>
{
public:
- ObjectCache(AdapterCache&);
+ ObjectCache(const Ice::CommunicatorPtr&, AdapterCache&);
void add(const ObjectInfo&, const std::string&, bool, const AllocatablePtr&);
ObjectEntryPtr get(const Ice::Identity&) const;
@@ -93,6 +93,8 @@ public:
ObjectInfoSeq getAll(const std::string&);
ObjectInfoSeq getAllByType(const std::string&);
+ const Ice::CommunicatorPtr& communicator() const { return _communicator; }
+
private:
class TypeEntry
@@ -117,6 +119,7 @@ private:
int _allocatablesCount;
};
+ Ice::CommunicatorPtr _communicator;
AdapterCache& _adapterCache;
std::map<std::string, TypeEntry> _types;