summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/ObjectStore.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Freeze/ObjectStore.h')
-rw-r--r--cpp/src/Freeze/ObjectStore.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/cpp/src/Freeze/ObjectStore.h b/cpp/src/Freeze/ObjectStore.h
index 52af261a12c..a9b55d93855 100644
--- a/cpp/src/Freeze/ObjectStore.h
+++ b/cpp/src/Freeze/ObjectStore.h
@@ -43,10 +43,10 @@ public:
bool dbHasObject(const Ice::Identity&, const TransactionIPtr&) const;
void save(Key& key, Value& value, Ice::Byte status, DbTxn* tx);
- static void marshal(const Ice::Identity&, Key&, const Ice::CommunicatorPtr&);
- static void unmarshal(Ice::Identity&, const Key&, const Ice::CommunicatorPtr&);
- static void marshal(const ObjectRecord&, Value&, const Ice::CommunicatorPtr&);
- static void unmarshal(ObjectRecord&, const Value&, const Ice::CommunicatorPtr&);
+ static void marshal(const Ice::Identity&, Key&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&);
+ static void unmarshal(Ice::Identity&, const Key&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&);
+ static void marshal(const ObjectRecord&, Value&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&);
+ static void unmarshal(ObjectRecord&, const Value&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&);
bool load(const Ice::Identity&, const TransactionIPtr&, ObjectRecord&);
void update(const Ice::Identity&, const ObjectRecord&, const TransactionIPtr&);
@@ -63,6 +63,7 @@ public:
const std::string& dbName() const;
const Ice::CommunicatorPtr& communicator() const;
+ const Ice::EncodingVersion& encoding() const;
const std::string& facet() const;
protected:
@@ -77,6 +78,7 @@ private:
EvictorIBase* _evictor;
std::vector<IndexPtr> _indices;
Ice::CommunicatorPtr _communicator;
+ Ice::EncodingVersion _encoding;
Ice::ObjectPtr _sampleServant;
};
@@ -144,6 +146,12 @@ ObjectStoreBase::communicator() const
return _communicator;
}
+inline const Ice::EncodingVersion&
+ObjectStoreBase::encoding() const
+{
+ return _encoding;
+}
+
inline EvictorIBase*
ObjectStoreBase::evictor() const
{