summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/OutputStream.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-02-09 15:19:03 -0800
committerMark Spruiell <mes@zeroc.com>2016-02-09 15:19:03 -0800
commit2fa55f190efe5a0409be24c5107ddac79b2a3a6b (patch)
treed931db935809d9614b970e68b1574bb55fa9918d /cpp/include/Ice/OutputStream.h
parentUpdated Objective-C mapping to use new stream classes (diff)
downloadice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.tar.bz2
ice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.tar.xz
ice-2fa55f190efe5a0409be24c5107ddac79b2a3a6b.zip
minor fixes to stream classes; restoring test/Ice/stream
Diffstat (limited to 'cpp/include/Ice/OutputStream.h')
-rw-r--r--cpp/include/Ice/OutputStream.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/include/Ice/OutputStream.h b/cpp/include/Ice/OutputStream.h
index 0f0138e78f2..c9c28155a5c 100644
--- a/cpp/include/Ice/OutputStream.h
+++ b/cpp/include/Ice/OutputStream.h
@@ -258,7 +258,7 @@ public:
return; // Optional not set
}
- if(writeOpt(tag, StreamOptionalHelper<T,
+ if(writeOptional(tag, StreamOptionalHelper<T,
StreamableTraits<T>::helper,
StreamableTraits<T>::fixedLength>::optionalFormat))
{
@@ -292,12 +292,12 @@ public:
}
// Write type and tag for optionals
- bool writeOpt(Int tag, OptionalFormat format)
+ bool writeOptional(Int tag, OptionalFormat format)
{
assert(_currentEncaps);
if(_currentEncaps->encoder)
{
- return _currentEncaps->encoder->writeOpt(tag, format);
+ return _currentEncaps->encoder->writeOptional(tag, format);
}
else
{
@@ -462,9 +462,6 @@ public:
// Exception
void writeException(const UserException&);
- // Optionals
- bool writeOptImpl(Int, OptionalFormat);
-
size_type pos()
{
return b.size();
@@ -482,6 +479,9 @@ public:
void finished(std::vector<Byte>&);
virtual std::pair<const Byte*, const Byte*> finished();
+ // Optionals
+ bool writeOptImpl(Int, OptionalFormat);
+
private:
//
@@ -527,7 +527,7 @@ private:
virtual void startSlice(const std::string&, int, bool) = 0;
virtual void endSlice() = 0;
- virtual bool writeOpt(Int, OptionalFormat)
+ virtual bool writeOptional(Int, OptionalFormat)
{
return false;
}
@@ -611,7 +611,7 @@ private:
virtual void startSlice(const std::string&, int, bool);
virtual void endSlice();
- virtual bool writeOpt(Int, OptionalFormat);
+ virtual bool writeOptional(Int, OptionalFormat);
private: