diff options
author | Bernard Normier <bernard@zeroc.com> | 2012-09-25 22:35:10 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2012-09-25 22:35:10 +0000 |
commit | 4a55d7d891bad0b123ebdb7e253740f4d1b4b2eb (patch) | |
tree | f4a631d7a152edfb86a70a3841e2b136fbaf904f /cpp/src/slice2cpp/Gen.cpp | |
parent | Ruby port; Python & C++ fixes (diff) | |
download | ice-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.cpp | 18 |
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;"; |