diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-07-06 13:17:38 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-07-06 13:17:38 +0000 |
commit | 65652d89ffed7636b7bfc9b8c40619891502dc24 (patch) | |
tree | f5be02783596632efcf464b9e28c45583ce0bfa8 /cpp/src/slice2cppe/Gen.cpp | |
parent | Renamed namespace back to Ice (diff) | |
download | ice-65652d89ffed7636b7bfc9b8c40619891502dc24.tar.bz2 ice-65652d89ffed7636b7bfc9b8c40619891502dc24.tar.xz ice-65652d89ffed7636b7bfc9b8c40619891502dc24.zip |
Renamded icee namespace back to Ice
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 328 |
1 files changed, 164 insertions, 164 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 000a8c4e0ee..f966431c41c 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -35,7 +35,7 @@ getIds(const ClassDefPtr& p, StringList& ids) #endif StringList other; other.push_back(p->scoped()); - other.push_back("::IceE::Object"); + other.push_back("::Ice::Object"); other.sort(); ids.merge(other); ids.unique(); @@ -353,7 +353,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) for(q = allDataMembers.begin(); q != allDataMembers.end(); ++q) { string paramName = fixKwd((*q)->name()); - string typeName = inputTypeToString((*q)->type(), true); + string typeName = inputTypeToString((*q)->type()); allTypes.push_back(typeName); allParamDecls.push_back(typeName + " __" + paramName); } @@ -372,7 +372,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) H << "public "; if(!base) { - H << (p->isLocal() ? "::IceE::LocalException" : "::IceE::UserException"); + H << (p->isLocal() ? "::Ice::LocalException" : "::Ice::UserException"); } else { @@ -491,8 +491,8 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) H << nl << "virtual ::std::string toString() const;"; } - H << nl << "virtual ::IceE::Exception* ice_clone() const;"; - C << sp << nl << "::IceE::Exception*" << nl << scoped.substr(2) << "::ice_clone() const"; + H << nl << "virtual ::Ice::Exception* ice_clone() const;"; + C << sp << nl << "::Ice::Exception*" << nl << scoped.substr(2) << "::ice_clone() const"; C << sb; C << nl << "return new " << name << "(*this);"; C << eb; @@ -505,7 +505,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) if(!p->isLocal()) { - H << sp << nl << "static const ::IceEInternal::UserExceptionFactoryPtr& ice_factory();"; + H << sp << nl << "static const ::IceInternal::UserExceptionFactoryPtr& ice_factory();"; } if(!dataMembers.empty()) { @@ -529,15 +529,15 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) { ExceptionPtr base = p->base(); - H << sp << nl << "virtual void __write(::IceEInternal::BasicStream*) const;"; - H << nl << "virtual void __read(::IceEInternal::BasicStream*, bool);"; + H << sp << nl << "virtual void __write(::IceInternal::BasicStream*) const;"; + H << nl << "virtual void __read(::IceInternal::BasicStream*, bool);"; TypeStringList memberList; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) { memberList.push_back(make_pair((*q)->type(), (*q)->name())); } - C << sp << nl << "void" << nl << scoped.substr(2) << "::__write(::IceEInternal::BasicStream* __os) const"; + C << sp << nl << "void" << nl << scoped.substr(2) << "::__write(::IceInternal::BasicStream* __os) const"; C << sb; C << nl << "__os->write(::std::string(\"" << p->scoped() << "\"));"; C << nl << "__os->startWriteSlice();"; @@ -549,7 +549,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) } C << eb; - C << sp << nl << "void" << nl << scoped.substr(2) << "::__read(::IceEInternal::BasicStream* __is, bool __rid)"; + C << sp << nl << "void" << nl << scoped.substr(2) << "::__read(::IceInternal::BasicStream* __is, bool __rid)"; C << sb; C << nl << "if(__rid)"; C << sb; @@ -567,7 +567,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) factoryName = "__F" + p->flattenedScope() + p->name(); - C << sp << nl << "struct " << factoryName << " : public ::IceEInternal::UserExceptionFactory"; + C << sp << nl << "struct " << factoryName << " : public ::IceInternal::UserExceptionFactory"; C << sb; C << sp << nl << "virtual void"; C << nl << "createAndThrow()"; @@ -576,10 +576,10 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) C << eb; C << eb << ';'; - C << sp << nl << "static ::IceEInternal::UserExceptionFactoryPtr " << factoryName + C << sp << nl << "static ::IceInternal::UserExceptionFactoryPtr " << factoryName << "__Ptr = new " << factoryName << ';'; - C << sp << nl << "const ::IceEInternal::UserExceptionFactoryPtr&"; + C << sp << nl << "const ::IceInternal::UserExceptionFactoryPtr&"; C << nl << scoped.substr(2) << "::ice_factory()"; C << sb; C << nl << "return " << factoryName << "__Ptr;"; @@ -592,12 +592,12 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) C.inc(); C << sp << nl << factoryName << "__Init()"; C << sb; - C << nl << "::IceE::factoryTable->addExceptionFactory(\"" << p->scoped() << "\", " << scoped + C << nl << "::Ice::factoryTable->addExceptionFactory(\"" << p->scoped() << "\", " << scoped << "::ice_factory());"; C << eb; C << sp << nl << "~" << factoryName << "__Init()"; C << sb; - C << nl << "::IceE::factoryTable->removeExceptionFactory(\"" << p->scoped() << "\");"; + C << nl << "::Ice::factoryTable->removeExceptionFactory(\"" << p->scoped() << "\");"; C << eb; C << eb << ';'; C << sp << nl << "static " << factoryName << "__Init "<< factoryName << "__i;"; @@ -693,20 +693,20 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) // // None of these member functions is virtual! // - H << sp << nl << _dllExport << "void __write(::IceEInternal::BasicStream*) const;"; - H << nl << _dllExport << "void __read(::IceEInternal::BasicStream*);"; + H << sp << nl << _dllExport << "void __write(::IceInternal::BasicStream*) const;"; + H << nl << _dllExport << "void __read(::IceInternal::BasicStream*);"; TypeStringList memberList; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) { memberList.push_back(make_pair((*q)->type(), (*q)->name())); } - C << sp << nl << "void" << nl << scoped.substr(2) << "::__write(::IceEInternal::BasicStream* __os) const"; + C << sp << nl << "void" << nl << scoped.substr(2) << "::__write(::IceInternal::BasicStream* __os) const"; C << sb; writeMarshalCode(C, memberList, 0); C << eb; - C << sp << nl << "void" << nl << scoped.substr(2) << "::__read(::IceEInternal::BasicStream* __is)"; + C << sp << nl << "void" << nl << scoped.substr(2) << "::__read(::IceInternal::BasicStream* __is)"; C << sb; writeUnmarshalCode(C, memberList, 0); C << eb; @@ -719,7 +719,7 @@ void Slice::Gen::TypesVisitor::visitDataMember(const DataMemberPtr& p) { string name = fixKwd(p->name()); - string s = typeToString(p->type(), true); + string s = typeToString(p->type()); H << nl << s << ' ' << name << ';'; } @@ -728,7 +728,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) { string name = fixKwd(p->name()); TypePtr type = p->type(); - string s = typeToString(type, true); + string s = typeToString(type); if(s[0] == ':') { s.insert(0, " "); @@ -743,14 +743,14 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) string scope = fixKwd(p->scope()); H << sp << nl << "class __U__" << name << " { };"; - H << nl << _dllExport << "void __write(::IceEInternal::BasicStream*, const " << name << "&, __U__" << name + H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "&, __U__" << name << ");"; - H << nl << _dllExport << "void __read(::IceEInternal::BasicStream*, " << name << "&, __U__" << name << ");"; + H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "&, __U__" << name << ");"; - C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceEInternal::BasicStream* __os, const " + C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceInternal::BasicStream* __os, const " << scoped << "& v, " << scope << "__U__" << name << ")"; C << sb; - C << nl << "__os->writeSize(::IceE::Int(v.size()));"; + C << nl << "__os->writeSize(::Ice::Int(v.size()));"; C << nl << scoped << "::const_iterator p;"; C << nl << "for(p = v.begin(); p != v.end(); ++p)"; C << sb; @@ -758,10 +758,10 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) C << eb; C << eb; - C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceEInternal::BasicStream* __is, " << scoped + C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceInternal::BasicStream* __is, " << scoped << "& v, " << scope << "__U__" << name << ')'; C << sb; - C << nl << "::IceE::Int sz;"; + C << nl << "::Ice::Int sz;"; C << nl << "__is->readSize(sz);"; if(type->isVariableLength()) { @@ -812,12 +812,12 @@ Slice::Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p) string name = fixKwd(p->name()); TypePtr keyType = p->keyType(); TypePtr valueType = p->valueType(); - string ks = typeToString(keyType, true); + string ks = typeToString(keyType); if(ks[0] == ':') { ks.insert(0, " "); } - string vs = typeToString(valueType, true); + string vs = typeToString(valueType); H << sp << nl << "typedef ::std::map<" << ks << ", " << vs << "> " << name << ';'; if(!p->isLocal()) @@ -826,15 +826,15 @@ Slice::Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p) string scope = fixKwd(p->scope()); H << sp << nl << "class __U__" << name << " { };"; - H << nl << _dllExport << "void __write(::IceEInternal::BasicStream*, const " << name + H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "&, __U__" << name << ");"; - H << nl << _dllExport << "void __read(::IceEInternal::BasicStream*, " << name + H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "&, __U__" << name << ");"; - C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceEInternal::BasicStream* __os, const " + C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceInternal::BasicStream* __os, const " << scoped << "& v, " << scope << "__U__" << name << ")"; C << sb; - C << nl << "__os->writeSize(::IceE::Int(v.size()));"; + C << nl << "__os->writeSize(::Ice::Int(v.size()));"; C << nl << scoped << "::const_iterator p;"; C << nl << "for(p = v.begin(); p != v.end(); ++p)"; C << sb; @@ -843,10 +843,10 @@ Slice::Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p) C << eb; C << eb; - C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceEInternal::BasicStream* __is, " << scoped + C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceInternal::BasicStream* __is, " << scoped << "& v, " << scope << "__U__" << name << ')'; C << sb; - C << nl << "::IceE::Int sz;"; + C << nl << "::Ice::Int sz;"; C << nl << "__is->readSize(sz);"; C << nl << "while(sz--)"; C << sb; @@ -886,44 +886,44 @@ Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p) size_t sz = enumerators.size(); assert(sz <= 0x7fffffff); // 64-bit enums are not supported - H << sp << nl << _dllExport << "void __write(::IceEInternal::BasicStream*, " << name << ");"; - H << nl << _dllExport << "void __read(::IceEInternal::BasicStream*, " << name << "&);"; + H << sp << nl << _dllExport << "void __write(::IceInternal::BasicStream*, " << name << ");"; + H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "&);"; - C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceEInternal::BasicStream* __os, " << scoped + C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceInternal::BasicStream* __os, " << scoped << " v)"; C << sb; if(sz <= 0x7f) { - C << nl << "__os->write(static_cast< ::IceE::Byte>(v));"; + C << nl << "__os->write(static_cast< ::Ice::Byte>(v));"; } else if(sz <= 0x7fff) { - C << nl << "__os->write(static_cast< ::IceE::Short>(v));"; + C << nl << "__os->write(static_cast< ::Ice::Short>(v));"; } else { - C << nl << "__os->write(static_cast< ::IceE::Int>(v));"; + C << nl << "__os->write(static_cast< ::Ice::Int>(v));"; } C << eb; - C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceEInternal::BasicStream* __is, " << scoped + C << sp << nl << "void" << nl << scope.substr(2) << "__read(::IceInternal::BasicStream* __is, " << scoped << "& v)"; C << sb; if(sz <= 0x7f) { - C << nl << "::IceE::Byte val;"; + C << nl << "::Ice::Byte val;"; C << nl << "__is->read(val);"; C << nl << "v = static_cast< " << scoped << ">(val);"; } else if(sz <= 0x7fff) { - C << nl << "::IceE::Short val;"; + C << nl << "::Ice::Short val;"; C << nl << "__is->read(val);"; C << nl << "v = static_cast< " << scoped << ">(val);"; } else { - C << nl << "::IceE::Int val;"; + C << nl << "::Ice::Int val;"; C << nl << "__is->read(val);"; C << nl << "v = static_cast< " << scoped << ">(val);"; } @@ -935,7 +935,7 @@ void Slice::Gen::TypesVisitor::visitConst(const ConstPtr& p) { H << sp; - H << nl << "const " << typeToString(p->type(), true) << " " << fixKwd(p->name()) << " = "; + H << nl << "const " << typeToString(p->type()) << " " << fixKwd(p->name()) << " = "; BuiltinPtr bp = BuiltinPtr::dynamicCast(p->type()); if(bp && bp->kind() == Builtin::KindString) @@ -1004,7 +1004,7 @@ Slice::Gen::TypesVisitor::emitUpcall(const ExceptionPtr& base, const string& cal C.zeroIndent(); C << nl << "#else"; C.restoreIndent(); - C << nl << (base ? fixKwd(base->scoped()) : (isLocal ? "::IceE::LocalException" : "::IceE::UserException")) << call; + C << nl << (base ? fixKwd(base->scoped()) : (isLocal ? "::Ice::LocalException" : "::Ice::UserException")) << call; C.zeroIndent(); C << nl << "#endif"; C.restoreIndent(); @@ -1023,7 +1023,7 @@ Slice::Gen::ProxyDeclVisitor::visitUnitStart(const UnitPtr& p) return false; } - H << sp << nl << "namespace IceEProxy" << nl << '{'; + H << sp << nl << "namespace IceProxy" << nl << '{'; return true; } @@ -1084,7 +1084,7 @@ Slice::Gen::ProxyVisitor::visitUnitStart(const UnitPtr& p) return false; } - H << sp << nl << "namespace IceEProxy" << nl << '{'; + H << sp << nl << "namespace IceProxy" << nl << '{'; return true; } @@ -1131,7 +1131,7 @@ Slice::Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) H << sp << nl << "class " << _dllExport << name << " : "; if(bases.empty()) { - H << "virtual public ::IceEProxy::IceE::Object"; + H << "virtual public ::IceProxy::Ice::Object"; } else { @@ -1139,7 +1139,7 @@ Slice::Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) ClassList::const_iterator q = bases.begin(); while(q != bases.end()) { - H << "virtual public ::IceEProxy" << fixKwd((*q)->scoped()); + H << "virtual public ::IceProxy" << fixKwd((*q)->scoped()); if(++q != bases.end()) { H << ',' << nl; @@ -1167,7 +1167,7 @@ Slice::Gen::ProxyVisitor::visitClassDefEnd(const ClassDefPtr& p) H.dec(); H << sp << nl << "private: "; H.inc(); - H << sp << nl << "virtual ::IceEInternal::Handle< ::IceEDelegate::IceE::Object> __createDelegate();"; + H << sp << nl << "virtual ::IceInternal::Handle< ::IceDelegate::Ice::Object> __createDelegate();"; H << eb << ';'; string flatName = p->flattenedScope() + p->name() + "_ids"; @@ -1181,37 +1181,37 @@ Slice::Gen::ProxyVisitor::visitClassDefEnd(const ClassDefPtr& p) StringList::difference_type scopedPos = ice_distance(firstIter, scopedIter); C << sp; - C << nl << "const ::std::string&" << nl << "IceEProxy" << scoped << "::ice_staticId()"; + C << nl << "const ::std::string&" << nl << "IceProxy" << scoped << "::ice_staticId()"; C << sb; C << nl << "return " << flatName << '[' << scopedPos << "];"; C << eb; - C << sp << nl << "::IceEInternal::Handle< ::IceEDelegate::IceE::Object>"; - C << nl << "IceEProxy" << scoped << "::__createDelegate()"; + C << sp << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object>"; + C << nl << "IceProxy" << scoped << "::__createDelegate()"; C << sb; - C << nl << "return ::IceEInternal::Handle< ::IceEDelegate::IceE::Object>(new ::IceEDelegate" << scoped << ");"; + C << nl << "return ::IceInternal::Handle< ::IceDelegate::Ice::Object>(new ::IceDelegate" << scoped << ");"; C << eb; C << sp; - C << nl << "bool" << nl << "IceEProxy" << scope << "operator==(const ::IceEProxy" << scoped - << "& l, const ::IceEProxy" << scoped << "& r)"; + C << nl << "bool" << nl << "IceProxy" << scope << "operator==(const ::IceProxy" << scoped + << "& l, const ::IceProxy" << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceEProxy::IceE::Object&>(l) == " - << "static_cast<const ::IceEProxy::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::IceProxy::Ice::Object&>(l) == " + << "static_cast<const ::IceProxy::Ice::Object&>(r);"; C << eb; C << sp; - C << nl << "bool" << nl << "IceEProxy" << scope << "operator!=(const ::IceEProxy" << scoped - << "& l, const ::IceEProxy" << scoped << "& r)"; + C << nl << "bool" << nl << "IceProxy" << scope << "operator!=(const ::IceProxy" << scoped + << "& l, const ::IceProxy" << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceEProxy::IceE::Object&>(l) != " - << "static_cast<const ::IceEProxy::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::IceProxy::Ice::Object&>(l) != " + << "static_cast<const ::IceProxy::Ice::Object&>(r);"; C << eb; C << sp; - C << nl << "bool" << nl << "IceEProxy" << scope << "operator<(const ::IceEProxy" << scoped - << "& l, const ::IceEProxy" << scoped << "& r)"; + C << nl << "bool" << nl << "IceProxy" << scope << "operator<(const ::IceProxy" << scoped + << "& l, const ::IceProxy" << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceEProxy::IceE::Object&>(l) < " - << "static_cast<const ::IceEProxy::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::IceProxy::Ice::Object&>(l) < " + << "static_cast<const ::IceProxy::Ice::Object&>(r);"; C << eb; } @@ -1223,7 +1223,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) string scope = fixKwd(p->scope()); TypePtr ret = p->returnType(); - string retS = returnTypeToString(ret, true); + string retS = returnTypeToString(ret); vector<string> params; vector<string> paramsDecl; @@ -1241,15 +1241,15 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) string typeString; if((*q)->isOutParam()) { - typeString = outputTypeToString((*q)->type(), true); + typeString = outputTypeToString((*q)->type()); } else { - typeString = inputTypeToString((*q)->type(), true); + typeString = inputTypeToString((*q)->type()); } #else string typeString = (*q)->isOutParam() ? - outputTypeToString((*q)->type(), true) : inputTypeToString((*q)->type(), true); + outputTypeToString((*q)->type()) : inputTypeToString((*q)->type()); #endif params.push_back(typeString); @@ -1261,9 +1261,9 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) H << sp; H << nl << retS << ' ' << fixKwd(name) << spar << params << epar << ';'; - H << nl << retS << ' ' << fixKwd(name) << spar << params << "const ::IceE::Context&" << epar << ';'; + H << nl << retS << ' ' << fixKwd(name) << spar << params << "const ::Ice::Context&" << epar << ';'; - C << sp << nl << retS << nl << "IceEProxy" << scoped << spar << paramsDecl << epar; + C << sp << nl << retS << nl << "IceProxy" << scoped << spar << paramsDecl << epar; C << sb; C << nl; if(ret) @@ -1273,7 +1273,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << fixKwd(name) << spar << args << "__defaultContext()" << epar << ';'; C << eb; - C << sp << nl << retS << nl << "IceEProxy" << scoped << spar << paramsDecl << "const ::IceE::Context& __ctx" << epar; + C << sp << nl << retS << nl << "IceProxy" << scoped << spar << paramsDecl << "const ::Ice::Context& __ctx" << epar; C << sb; C << nl << "int __cnt = 0;"; C << nl << "while(true)"; @@ -1284,8 +1284,8 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) { C << nl << "__checkTwowayOnly(\"" << name << "\");"; } - C << nl << "::IceEInternal::Handle< ::IceEDelegate::IceE::Object> __delBase = __getDelegate();"; - C << nl << "::IceEDelegate" << thisPointer << " __del = dynamic_cast< ::IceEDelegate" + C << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase = __getDelegate();"; + C << nl << "::IceDelegate" << thisPointer << " __del = dynamic_cast< ::IceDelegate" << thisPointer << ">(__delBase.get());"; C << nl; if(ret) @@ -1298,7 +1298,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << nl << "return;"; } C << eb; - C << nl << "catch(const ::IceEInternal::NonRepeatable& __ex)"; + C << nl << "catch(const ::IceInternal::NonRepeatable& __ex)"; C << sb; if(p->mode() == Operation::Idempotent || p->mode() == Operation::Nonmutating) { @@ -1309,7 +1309,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << nl << "__rethrowException(*__ex.get());"; } C << eb; - C << nl << "catch(const ::IceE::LocalException& __ex)"; + C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; C << nl << "__handleException(__ex, __cnt);"; C << eb; @@ -1330,7 +1330,7 @@ Slice::Gen::DelegateVisitor::visitUnitStart(const UnitPtr& p) return false; } - H << sp << nl << "namespace IceEDelegate" << nl << '{'; + H << sp << nl << "namespace IceDelegate" << nl << '{'; return true; } @@ -1376,7 +1376,7 @@ Slice::Gen::DelegateVisitor::visitClassDefStart(const ClassDefPtr& p) H << sp << nl << "class " << _dllExport << name << " : "; if(bases.empty()) { - H << "virtual public ::IceEDelegate::IceE::Object"; + H << "virtual public ::IceDelegate::Ice::Object"; } else { @@ -1384,7 +1384,7 @@ Slice::Gen::DelegateVisitor::visitClassDefStart(const ClassDefPtr& p) ClassList::const_iterator q = bases.begin(); while(q != bases.end()) { - H << "virtual public ::IceEDelegate" << fixKwd((*q)->scoped()); + H << "virtual public ::IceDelegate" << fixKwd((*q)->scoped()); if(++q != bases.end()) { H << ',' << nl; @@ -1413,7 +1413,7 @@ Slice::Gen::DelegateVisitor::visitOperation(const OperationPtr& p) string scoped = fixKwd(p->scoped()); TypePtr ret = p->returnType(); - string retS = returnTypeToString(ret, true); + string retS = returnTypeToString(ret); vector<string> params; vector<string> paramsDecl; @@ -1430,35 +1430,35 @@ Slice::Gen::DelegateVisitor::visitOperation(const OperationPtr& p) if(isOutParam) { outParams.push_back(make_pair(type, paramName)); - typeString = outputTypeToString(type, true); + typeString = outputTypeToString(type); } else { inParams.push_back(make_pair(type, paramName)); - typeString = inputTypeToString(type, true); + typeString = inputTypeToString(type); } params.push_back(typeString); paramsDecl.push_back(typeString + ' ' + paramName); } - params.push_back("const ::IceE::Context&"); - paramsDecl.push_back("const ::IceE::Context& __context"); + params.push_back("const ::Ice::Context&"); + paramsDecl.push_back("const ::Ice::Context& __context"); H << sp << nl << "virtual " << retS << ' ' << name << spar << params << epar << ';'; - C << sp << nl << retS << nl << "IceEDelegate" << scoped << spar << paramsDecl << epar; + C << sp << nl << retS << nl << "IceDelegate" << scoped << spar << paramsDecl << epar; C << sb; C << nl << "static const ::std::string __operation(\"" << p->name() << "\");"; - C << nl << "::IceEInternal::Outgoing __out(__connection.get(), __reference.get(), __operation, " - << "static_cast< ::IceE::OperationMode>(" << p->mode() << "), __context);"; + C << nl << "::IceInternal::Outgoing __out(__connection.get(), __reference.get(), __operation, " + << "static_cast< ::Ice::OperationMode>(" << p->mode() << "), __context);"; if(!inParams.empty()) { C << nl << "try"; C << sb; - C << nl << "::IceEInternal::BasicStream* __os = __out.os();"; + C << nl << "::IceInternal::BasicStream* __os = __out.os();"; writeMarshalCode(C, inParams, 0); C << eb; - C << nl << "catch(const ::IceE::LocalException& __ex)"; + C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; C << nl << "__out.abort(__ex);"; C << eb; @@ -1466,12 +1466,12 @@ Slice::Gen::DelegateVisitor::visitOperation(const OperationPtr& p) C << nl << "bool __ok = __out.invoke();"; C << nl << "try"; C << sb; - C << nl << "::IceEInternal::BasicStream* __is = __out.is();"; + C << nl << "::IceInternal::BasicStream* __is = __out.is();"; C << nl << "if(!__ok)"; C << sb; C << nl << "__is->throwException();"; C << eb; - writeAllocateCode(C, TypeStringList(), ret, true); + writeAllocateCode(C, TypeStringList(), ret); writeUnmarshalCode(C, outParams, ret); if(ret) { @@ -1518,13 +1518,13 @@ Slice::Gen::DelegateVisitor::visitOperation(const OperationPtr& p) C << nl << "throw;"; C << eb; } - C << nl << "catch(const ::IceE::UserException&)"; + C << nl << "catch(const ::Ice::UserException&)"; C << sb; - C << nl << "throw ::IceE::UnknownUserException(__FILE__, __LINE__);"; + C << nl << "throw ::Ice::UnknownUserException(__FILE__, __LINE__);"; C << eb; - C << nl << "catch(const ::IceE::LocalException& __ex)"; + C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; - C << nl << "throw ::IceEInternal::NonRepeatable(__ex);"; + C << nl << "throw ::IceInternal::NonRepeatable(__ex);"; C << eb; C << eb; } @@ -1629,11 +1629,11 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) { if(p->isLocal()) { - H << "virtual public ::IceE::LocalObject"; + H << "virtual public ::Ice::LocalObject"; } else { - H << "virtual public ::IceE::Object"; + H << "virtual public ::Ice::Object"; } } else @@ -1667,7 +1667,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) for(q = allDataMembers.begin(); q != allDataMembers.end(); ++q) { string paramName = fixKwd((*q)->name()); - string typeName = inputTypeToString((*q)->type(), true); + string typeName = inputTypeToString((*q)->type()); allTypes.push_back(typeName); allParamDecls.push_back(typeName + " __" + paramName); } @@ -1804,7 +1804,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) // For built-in types (except string), enums, proxies, structs, and classes, // do the swap via a temporary variable. // - string typeName = typeToString(type, true); + string typeName = typeToString(type); pos = tmpMap.find(typeName); if(pos == tmpMap.end()) { @@ -1857,10 +1857,10 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) H << sp; H << nl << "virtual bool ice_isA" - << "(const ::std::string&, const ::IceE::Current& = ::IceE::Current()) const;"; + << "(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;"; H << nl << "virtual ::std::vector< ::std::string> ice_ids" - << "(const ::IceE::Current& = ::IceE::Current()) const;"; - H << nl << "virtual const ::std::string& ice_id(const ::IceE::Current& = ::IceE::Current()) const;"; + << "(const ::Ice::Current& = ::Ice::Current()) const;"; + H << nl << "virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;"; H << nl << "static const ::std::string& ice_staticId();"; if(!dataMembers.empty()) { @@ -1887,14 +1887,14 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) C << sp; C << nl << "bool" << nl << fixKwd(p->scoped()).substr(2) - << "::ice_isA(const ::std::string& _s, const ::IceE::Current&) const"; + << "::ice_isA(const ::std::string& _s, const ::Ice::Current&) const"; C << sb; C << nl << "return ::std::binary_search(" << flatName << ", " << flatName << " + " << ids.size() << ", _s);"; C << eb; C << sp; C << nl << "::std::vector< ::std::string>" << nl << fixKwd(p->scoped()).substr(2) - << "::ice_ids(const ::IceE::Current&) const"; + << "::ice_ids(const ::Ice::Current&) const"; C << sb; C << nl << "return ::std::vector< ::std::string>(&" << flatName << "[0], &" << flatName << '[' << ids.size() << "]);"; @@ -1902,7 +1902,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) C << sp; C << nl << "const ::std::string&" << nl << fixKwd(p->scoped()).substr(2) - << "::ice_id(const ::IceE::Current&) const"; + << "::ice_id(const ::Ice::Current&) const"; C << sb; C << nl << "return " << flatName << '[' << scopedPos << "];"; C << eb; @@ -1957,7 +1957,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) H << sp; H << nl - << "virtual ::IceEInternal::DispatchStatus __dispatch(::IceEInternal::Incoming&, const ::IceE::Current&);"; + << "virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);"; string flatName = p->flattenedScope() + p->name() + "_all"; C << sp; @@ -1974,8 +1974,8 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) } C << eb << ';'; C << sp; - C << nl << "::IceEInternal::DispatchStatus" << nl << scoped.substr(2) - << "::__dispatch(::IceEInternal::Incoming& in, const ::IceE::Current& current)"; + C << nl << "::IceInternal::DispatchStatus" << nl << scoped.substr(2) + << "::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)"; C << sb; C << nl << "::std::pair< ::std::string*, ::std::string*> r = " @@ -1983,7 +1983,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) << ", current.operation);"; C << nl << "if(r.first == r.second)"; C << sb; - C << nl << "return ::IceEInternal::DispatchOperationNotExist;"; + C << nl << "return ::IceInternal::DispatchOperationNotExist;"; C << eb; C << sp; C << nl << "switch(r.first - " << flatName << ')'; @@ -1999,7 +1999,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << eb; C << sp; C << nl << "assert(false);"; - C << nl << "return ::IceEInternal::DispatchOperationNotExist;"; + C << nl << "return ::IceInternal::DispatchOperationNotExist;"; C << eb; } @@ -2018,19 +2018,19 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << nl << "bool" << nl << scope.substr(2) << "operator==(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::LocalObject&>(l) == static_cast<const ::IceE::LocalObject&>(r);"; + C << nl << "return static_cast<const ::Ice::LocalObject&>(l) == static_cast<const ::Ice::LocalObject&>(r);"; C << eb; C << sp; C << nl << "bool" << nl << scope.substr(2) << "operator!=(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::LocalObject&>(l) != static_cast<const ::IceE::LocalObject&>(r);"; + C << nl << "return static_cast<const ::Ice::LocalObject&>(l) != static_cast<const ::Ice::LocalObject&>(r);"; C << eb; C << sp; C << nl << "bool" << nl << scope.substr(2) << "operator<(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::LocalObject&>(l) < static_cast<const ::IceE::LocalObject&>(r);"; + C << nl << "return static_cast<const ::Ice::LocalObject&>(l) < static_cast<const ::Ice::LocalObject&>(r);"; C << eb; } else @@ -2041,19 +2041,19 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << nl << "bool" << nl << scope.substr(2) << "operator==(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::Object&>(l) == static_cast<const ::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::Ice::Object&>(l) == static_cast<const ::Ice::Object&>(r);"; C << eb; C << sp; C << nl << "bool" << nl << scope.substr(2) << "operator!=(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::Object&>(l) != static_cast<const ::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::Ice::Object&>(l) != static_cast<const ::Ice::Object&>(r);"; C << eb; C << sp; C << nl << "bool" << nl << scope.substr(2) << "operator<(const " << scoped << "& l, const " << scoped << "& r)"; C << sb; - C << nl << "return static_cast<const ::IceE::Object&>(l) < static_cast<const ::IceE::Object&>(r);"; + C << nl << "return static_cast<const ::Ice::Object&>(l) < static_cast<const ::Ice::Object&>(r);"; C << eb; C << sp << nl << "#endif // ICEE_PURE_CLIENT"; @@ -2080,7 +2080,7 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) string scope = fixKwd(p->scope()); TypePtr ret = p->returnType(); - string retS = returnTypeToString(ret, true); + string retS = returnTypeToString(ret); string params = "("; string paramsDecl = "("; @@ -2108,12 +2108,12 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) if(isOutParam) { outParams.push_back(make_pair(type, paramName)); - typeString = outputTypeToString(type, true); + typeString = outputTypeToString(type); } else { inParams.push_back(make_pair(type, paramName)); - typeString = inputTypeToString((*q)->type(), true); + typeString = inputTypeToString((*q)->type()); } if(q != paramList.begin()) @@ -2151,8 +2151,8 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) args += ", "; } - params += "const ::IceE::Current& = ::IceE::Current())"; - paramsDecl += "const ::IceE::Current& __current)"; + params += "const ::Ice::Current& = ::Ice::Current())"; + paramsDecl += "const ::Ice::Current& __current)"; args += "__current)"; } else @@ -2162,8 +2162,8 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) args += ')'; } - paramsAMD += "const ::IceE::Current& = ::IceE::Current())"; - paramsDeclAMD += "const ::IceE::Current& __current)"; + paramsAMD += "const ::Ice::Current& = ::Ice::Current())"; + paramsDeclAMD += "const ::Ice::Current& __current)"; argsAMD += "__current)"; bool nonmutating = p->mode() == Operation::Nonmutating; @@ -2173,12 +2173,12 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) if(!cl->isLocal()) { - H << nl << "::IceEInternal::DispatchStatus ___" << name - << "(::IceEInternal::Incoming&, const ::IceE::Current&)" << (nonmutating ? " const" : "") << ';'; + H << nl << "::IceInternal::DispatchStatus ___" << name + << "(::IceInternal::Incoming&, const ::Ice::Current&)" << (nonmutating ? " const" : "") << ';'; C << sp; - C << nl << "::IceEInternal::DispatchStatus" << nl << scope.substr(2) << "___" << name - << "(::IceEInternal::Incoming& __in, const ::IceE::Current& __current)" << (nonmutating ? " const" : ""); + C << nl << "::IceInternal::DispatchStatus" << nl << scope.substr(2) << "___" << name + << "(::IceInternal::Incoming& __in, const ::Ice::Current& __current)" << (nonmutating ? " const" : ""); C << sb; ExceptionList throws = p->throws(); @@ -2200,15 +2200,15 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) if(!inParams.empty()) { - C << nl << "::IceEInternal::BasicStream* __is = __in.is();"; + C << nl << "::IceInternal::BasicStream* __is = __in.is();"; } if(ret || !outParams.empty() || !throws.empty()) { - C << nl << "::IceEInternal::BasicStream* __os = __in.os();"; + C << nl << "::IceInternal::BasicStream* __os = __in.os();"; } - writeAllocateCode(C, inParams, 0, true); + writeAllocateCode(C, inParams, 0); writeUnmarshalCode(C, inParams, 0); - writeAllocateCode(C, outParams, 0, true); + writeAllocateCode(C, outParams, 0); if(!throws.empty()) { C << nl << "try"; @@ -2230,11 +2230,11 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) C << nl << "catch(const " << fixKwd((*r)->scoped()) << "& __ex)"; C << sb; C << nl << "__os->write(__ex);"; - C << nl << "return ::IceEInternal::DispatchUserException;"; + C << nl << "return ::IceInternal::DispatchUserException;"; C << eb; } } - C << nl << "return ::IceEInternal::DispatchOK;"; + C << nl << "return ::IceInternal::DispatchOK;"; C << eb; } } @@ -2243,7 +2243,7 @@ void Slice::Gen::ObjectVisitor::visitDataMember(const DataMemberPtr& p) { string name = fixKwd(p->name()); - string s = typeToString(p->type(), true); + string s = typeToString(p->type()); H << nl << s << ' ' << name << ';'; } @@ -2257,7 +2257,7 @@ Slice::Gen::ObjectVisitor::emitUpcall(const ClassDefPtr& base, const string& cal C.zeroIndent(); C << nl << "#else"; C.restoreIndent(); - C << nl << (base ? fixKwd(base->scoped()) : "::IceE::Object") << call; + C << nl << (base ? fixKwd(base->scoped()) : "::Ice::Object") << call; C.zeroIndent(); C << nl << "#endif"; C.restoreIndent(); @@ -2277,7 +2277,7 @@ Slice::Gen::IceInternalVisitor::visitUnitStart(const UnitPtr& p) } H << sp; - H << nl << "namespace IceEInternal" << nl << '{'; + H << nl << "namespace IceInternal" << nl << '{'; return true; } @@ -2309,8 +2309,8 @@ Slice::Gen::IceInternalVisitor::visitClassDecl(const ClassDeclPtr& p) H << sp << nl << "#endif // ICEE_PURE_CLIENT"; H << sp; - H << nl << _dllExport << "void incRef(::IceEProxy" << scoped << "*);"; - H << nl << _dllExport << "void decRef(::IceEProxy" << scoped << "*);"; + H << nl << _dllExport << "void incRef(::IceProxy" << scoped << "*);"; + H << nl << _dllExport << "void decRef(::IceProxy" << scoped << "*);"; } } @@ -2325,13 +2325,13 @@ Slice::Gen::IceInternalVisitor::visitClassDefStart(const ClassDefPtr& p) } C << sp; - C << nl << "void" << nl << "IceEInternal::incRef(" << scoped << "* p)"; + C << nl << "void" << nl << "IceInternal::incRef(" << scoped << "* p)"; C << sb; C << nl << "p->__incRef();"; C << eb; C << sp; - C << nl << "void" << nl << "IceEInternal::decRef(" << scoped << "* p)"; + C << nl << "void" << nl << "IceInternal::decRef(" << scoped << "* p)"; C << sb; C << nl << "p->__decRef();"; C << eb; @@ -2341,13 +2341,13 @@ Slice::Gen::IceInternalVisitor::visitClassDefStart(const ClassDefPtr& p) C << sp << nl << "#endif // ICEE_PURE_CLIENT"; C << sp; - C << nl << "void" << nl << "IceEInternal::incRef(::IceEProxy" << scoped << "* p)"; + C << nl << "void" << nl << "IceInternal::incRef(::IceProxy" << scoped << "* p)"; C << sb; C << nl << "p->__incRef();"; C << eb; C << sp; - C << nl << "void" << nl << "IceEInternal::decRef(::IceEProxy" << scoped << "* p)"; + C << nl << "void" << nl << "IceInternal::decRef(::IceProxy" << scoped << "* p)"; C << sb; C << nl << "p->__decRef();"; C << eb; @@ -2396,17 +2396,17 @@ Slice::Gen::HandleVisitor::visitClassDecl(const ClassDeclPtr& p) } H << sp; - H << nl << "typedef ::IceEInternal::Handle< " << scoped << "> " << name << "Ptr;"; + H << nl << "typedef ::IceInternal::Handle< " << scoped << "> " << name << "Ptr;"; if(!p->isLocal()) { H << sp << nl << "#endif // ICEE_PURE_CLIENT" << sp; - H << nl << "typedef ::IceEInternal::ProxyHandle< ::IceEProxy" << scoped << "> " << name << "Prx;"; + H << nl << "typedef ::IceInternal::ProxyHandle< ::IceProxy" << scoped << "> " << name << "Prx;"; H << sp; - H << nl << _dllExport << "void __write(::IceEInternal::BasicStream*, const " << name << "Prx&);"; - H << nl << _dllExport << "void __read(::IceEInternal::BasicStream*, " << name << "Prx&);"; + H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "Prx&);"; + H << nl << _dllExport << "void __read(::IceInternal::BasicStream*, " << name << "Prx&);"; } } @@ -2433,17 +2433,17 @@ Slice::Gen::HandleVisitor::visitClassDefStart(const ClassDefPtr& p) } C << sp; - C << nl << "void" << nl << scope.substr(2) << "__write(::IceEInternal::BasicStream* __os, const " + C << nl << "void" << nl << scope.substr(2) << "__write(::IceInternal::BasicStream* __os, const " << scope << name << "Prx& v)"; C << sb; - C << nl << "__os->write(::IceE::ObjectPrx(v));"; + C << nl << "__os->write(::Ice::ObjectPrx(v));"; C << eb; C << sp; - C << nl << "void" << nl << scope.substr(2) << "__read(::IceEInternal::BasicStream* __is, " + C << nl << "void" << nl << scope.substr(2) << "__read(::IceInternal::BasicStream* __is, " << scope << name << "Prx& v)"; C << sb; - C << nl << "::IceE::ObjectPrx proxy;"; + C << nl << "::Ice::ObjectPrx proxy;"; C << nl << "__is->read(proxy);"; C << nl << "if(!proxy)"; C << sb; @@ -2451,7 +2451,7 @@ Slice::Gen::HandleVisitor::visitClassDefStart(const ClassDefPtr& p) C << eb; C << nl << "else"; C << sb; - C << nl << "v = new ::IceEProxy" << scoped << ';'; + C << nl << "v = new ::IceProxy" << scoped << ';'; C << nl << "v->__copyFrom(proxy);"; C << eb; C << eb; @@ -2469,7 +2469,7 @@ Slice::Gen::ImplVisitor::ImplVisitor(Output& h, Output& c, void Slice::Gen::ImplVisitor::writeDecl(Output& out, const string& name, const TypePtr& type) { - out << nl << typeToString(type, true) << ' ' << name; + out << nl << typeToString(type) << ' ' << name; BuiltinPtr builtin = BuiltinPtr::dynamicCast(type); if(builtin) @@ -2679,7 +2679,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) string opName = op->name(); TypePtr ret = op->returnType(); - string retS = returnTypeToString(ret, true); + string retS = returnTypeToString(ret); H << sp << nl << "virtual " << retS << ' ' << fixKwd(opName) << '('; H.useCurrentPosAsIndent(); @@ -2698,15 +2698,15 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) string typeString; if((*q)->isOutParam()) { - typeString = outputTypeToString((*q)->type(), true); + typeString = outputTypeToString((*q)->type()); } else { - typeString = inputTypeToString((*q)->type(), true); + typeString = inputTypeToString((*q)->type()); } #else string typeString = (*q)->isOutParam() ? - outputTypeToString((*q)->type(), true) : inputTypeToString((*q)->type(), true); + outputTypeToString((*q)->type()) : inputTypeToString((*q)->type()); #endif H << typeString; } @@ -2716,7 +2716,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) { H << ',' << nl; } - H << "const IceE::Current&"; + H << "const Ice::Current&"; } H.restoreIndent(); @@ -2740,15 +2740,15 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) string typeString; if((*q)->isOutParam()) { - typeString = outputTypeToString((*q)->type(), true); + typeString = outputTypeToString((*q)->type()); } else { - typeString = inputTypeToString((*q)->type(), true); + typeString = inputTypeToString((*q)->type()); } #else string typeString = (*q)->isOutParam() ? - outputTypeToString((*q)->type(), true) : inputTypeToString((*q)->type(), true); + outputTypeToString((*q)->type()) : inputTypeToString((*q)->type()); #endif C << typeString << ' ' << fixKwd((*q)->name()); } @@ -2758,7 +2758,7 @@ Slice::Gen::ImplVisitor::visitClassDefStart(const ClassDefPtr& p) { C << ',' << nl; } - C << "const IceE::Current& current"; + C << "const Ice::Current& current"; } C.restoreIndent(); C << ')'; |