summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/ObjectStore.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-09-03 14:42:10 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-09-03 14:42:10 +0200
commitc82f0a59f136fbeb8b66eabdc29e0e18b64d6717 (patch)
tree585ce7bf387885677d020463e446424598a34093 /cpp/src/Freeze/ObjectStore.h
parentMerge branch 'encoding11' into mx (diff)
parentchanging data member mapping to use Ice.Optional in C# (diff)
downloadice-c82f0a59f136fbeb8b66eabdc29e0e18b64d6717.tar.bz2
ice-c82f0a59f136fbeb8b66eabdc29e0e18b64d6717.tar.xz
ice-c82f0a59f136fbeb8b66eabdc29e0e18b64d6717.zip
Merge remote-tracking branch 'origin/encoding11' into mx
Conflicts: cpp/src/IceGrid/Database.cpp
Diffstat (limited to 'cpp/src/Freeze/ObjectStore.h')
-rw-r--r--cpp/src/Freeze/ObjectStore.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/src/Freeze/ObjectStore.h b/cpp/src/Freeze/ObjectStore.h
index a78c3e197d9..ff2574fa931 100644
--- a/cpp/src/Freeze/ObjectStore.h
+++ b/cpp/src/Freeze/ObjectStore.h
@@ -44,8 +44,8 @@ public:
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&);
+ static void marshal(const ObjectRecord&, Value&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&, bool);
+ static void unmarshal(ObjectRecord&, const Value&, const Ice::CommunicatorPtr&, const Ice::EncodingVersion&, bool);
bool load(const Ice::Identity&, const TransactionIPtr&, ObjectRecord&);
void update(const Ice::Identity&, const ObjectRecord&, const TransactionIPtr&);
@@ -64,7 +64,8 @@ public:
const Ice::CommunicatorPtr& communicator() const;
const Ice::EncodingVersion& encoding() const;
const std::string& facet() const;
-
+ bool keepStats() const;
+
protected:
bool loadImpl(const Ice::Identity&, ObjectRecord&);
@@ -79,6 +80,7 @@ private:
Ice::CommunicatorPtr _communicator;
Ice::EncodingVersion _encoding;
Ice::ObjectPtr _sampleServant;
+ bool _keepStats;
};
@@ -156,6 +158,12 @@ ObjectStoreBase::facet() const
return _facet;
}
+inline bool
+ObjectStoreBase::keepStats() const
+{
+ return _keepStats;
+}
+
inline const Ice::ObjectPtr&
ObjectStoreBase::sampleServant() const
{