summaryrefslogtreecommitdiff
path: root/cpp/src/IceXML/StreamI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-08-27 20:49:28 +0000
committerBernard Normier <bernard@zeroc.com>2003-08-27 20:49:28 +0000
commit96562f821fd2ba5e5ed1eb3ec6991e60c1402f06 (patch)
tree4a8b677c8c89a6c5f89cb83f320e0f0a8343cf4f /cpp/src/IceXML/StreamI.cpp
parentAdded per-proxy contexts to icej. For ice, added context to operator== and (diff)
downloadice-96562f821fd2ba5e5ed1eb3ec6991e60c1402f06.tar.bz2
ice-96562f821fd2ba5e5ed1eb3ec6991e60c1402f06.tar.xz
ice-96562f821fd2ba5e5ed1eb3ec6991e60c1402f06.zip
Freeze Evictor facet changes
Diffstat (limited to 'cpp/src/IceXML/StreamI.cpp')
-rw-r--r--cpp/src/IceXML/StreamI.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/src/IceXML/StreamI.cpp b/cpp/src/IceXML/StreamI.cpp
index 715d249a820..163ef795b4e 100644
--- a/cpp/src/IceXML/StreamI.cpp
+++ b/cpp/src/IceXML/StreamI.cpp
@@ -197,7 +197,8 @@ IceXML::StreamI::StreamI(const ::Ice::CommunicatorPtr& communicator, std::ostrea
_os(os),
_level(0),
_nextId(0),
- _dump(false)
+ _dump(false),
+ _marshalFacets(true)
{
}
@@ -205,7 +206,8 @@ IceXML::StreamI::StreamI(const ::Ice::CommunicatorPtr& communicator, std::istrea
_communicator(communicator),
_input(0),
_nextId(0),
- _dump(false)
+ _dump(false),
+ _marshalFacets(true)
{
//
// Read the contents of the stream into memory.
@@ -1247,6 +1249,12 @@ IceXML::StreamI::readObject(const string& name, const string& signatureType, con
}
void
+IceXML::StreamI::marshalFacets(bool setting)
+{
+ _marshalFacets = setting;
+}
+
+void
IceXML::StreamI::startWrite(const string& element)
{
_os << se(element);
@@ -1383,7 +1391,7 @@ IceXML::StreamI::writeObjectData(const string& name, const string& id, const Ice
startWrite(os.str());
if(obj)
{
- obj->__marshal(this);
+ obj->__marshal(this, _marshalFacets);
}
endWrite();
}