summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2012-09-25 22:35:10 +0000
committerBernard Normier <bernard@zeroc.com>2012-09-25 22:35:10 +0000
commit4a55d7d891bad0b123ebdb7e253740f4d1b4b2eb (patch)
treef4a631d7a152edfb86a70a3841e2b136fbaf904f /cpp/src/slice2cpp/Gen.cpp
parentRuby port; Python & C++ fixes (diff)
downloadice-4a55d7d891bad0b123ebdb7e253740f4d1b4b2eb.tar.bz2
ice-4a55d7d891bad0b123ebdb7e253740f4d1b4b2eb.tar.xz
ice-4a55d7d891bad0b123ebdb7e253740f4d1b4b2eb.zip
Renamings (ICE-4868):
- StreamTrait is now StreamableTraits - StreamTraitType is now StreamHelperCategory - OptionalType is now OptionalFormat - Ice/StreamTraits.h is now Ice/StreamHelpers.h Updated C++, Python and Ruby Updated .depend and .depend.mak in C++, Python, Ruby and PHP
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 1edb081c9ad..fd3a269b98b 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -357,7 +357,7 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/ObjectF.h>";
H << "\n#include <Ice/Exception.h>";
H << "\n#include <Ice/LocalObject.h>";
- H << "\n#include <Ice/StreamTraits.h>";
+ H << "\n#include <Ice/StreamHelpers.h>";
if(p->usesProxies())
{
@@ -6089,9 +6089,9 @@ Slice::Gen::StreamVisitor::visitExceptionStart(const ExceptionPtr& p)
{
string scoped = p->scoped();
H << nl << "template<>";
- H << nl << "struct StreamTrait< " << fixKwd(scoped) << ">";
+ H << nl << "struct StreamableTraits< " << fixKwd(scoped) << ">";
H << sb;
- H << nl << "static const ::Ice::StreamTraitType type = ::Ice::StreamTraitTypeUserException;";
+ H << nl << "static const StreamHelperCategory helper = StreamHelperCategoryUserException;";
H << eb << ";" << nl;
}
return false;
@@ -6107,20 +6107,20 @@ Slice::Gen::StreamVisitor::visitStructStart(const StructPtr& p)
H << nl << "template<>";
if(classMetaData)
{
- H << nl << "struct StreamTrait< " << fixKwd(scoped + "Ptr") << ">";
+ H << nl << "struct StreamableTraits< " << fixKwd(scoped + "Ptr") << ">";
}
else
{
- H << nl << "struct StreamTrait< " << fixKwd(scoped) << ">";
+ H << nl << "struct StreamableTraits< " << fixKwd(scoped) << ">";
}
H << sb;
if(classMetaData)
{
- H << nl << "static const StreamTraitType type = StreamTraitTypeStructClass;";
+ H << nl << "static const StreamHelperCategory helper = StreamHelperCategoryStructClass;";
}
else
{
- H << nl << "static const StreamTraitType type = StreamTraitTypeStruct;";
+ H << nl << "static const StreamHelperCategory helper = StreamHelperCategoryStruct;";
}
H << nl << "static const int minWireSize = " << p->minWireSize() << ";";
if(p->isVariableLength())
@@ -6141,9 +6141,9 @@ Slice::Gen::StreamVisitor::visitEnum(const EnumPtr& p)
{
string scoped = fixKwd(p->scoped());
H << nl << "template<>";
- H << nl << "struct StreamTrait< " << scoped << ">";
+ H << nl << "struct StreamableTraits< " << scoped << ">";
H << sb;
- H << nl << "static const StreamTraitType type = StreamTraitTypeEnum;";
+ H << nl << "static const StreamHelperCategory helper = StreamHelperCategoryEnum;";
H << nl << "static const int enumLimit = " << p->getEnumerators().size() << ";";
H << nl << "static const int minWireSize = " << p->minWireSize() << ";";
H << nl << "static const bool fixedLength = false;";