diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-10 20:27:53 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-10 20:27:53 +0000 |
commit | ca4177b0f7e3090a783601f284baa8413c457cca (patch) | |
tree | 6cb3435fa8da91f5cf46f14c7eed28387eb0a84a /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | renamed file (diff) | |
download | ice-ca4177b0f7e3090a783601f284baa8413c457cca.tar.bz2 ice-ca4177b0f7e3090a783601f284baa8413c457cca.tar.xz ice-ca4177b0f7e3090a783601f284baa8413c457cca.zip |
more error checks
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index ca036e2cc60..bb337da2ddd 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -255,58 +255,6 @@ Slice::outputTypeToString(const TypePtr& type) return "???"; } -string -Slice::exceptionTypeToString(const TypePtr& type) -{ - static const char* inputBuiltinTable[] = - { - "::Ice::Byte", - "bool", - "::Ice::Short", - "::Ice::Int", - "::Ice::Long", - "::Ice::Float", - "::Ice::Double", - "const ::std::string&", - "const ::std::wstring&", - "const ::Ice::ObjectPtrE&", - "const ::Ice::ObjectPrxE&", - "const ::Ice::LocalObjectPtrE&" - }; - - BuiltinPtr builtin = BuiltinPtr::dynamicCast(type); - if (builtin) - { - return inputBuiltinTable[builtin->kind()]; - } - - ClassDeclPtr cl = ClassDeclPtr::dynamicCast(type); - if (cl) - { - return "const " + cl->scoped() + "PtrE&"; - } - - ProxyPtr proxy = ProxyPtr::dynamicCast(type); - if (proxy) - { - return "const " + proxy->_class()->scoped() + "PrxE&"; - } - - EnumPtr en = EnumPtr::dynamicCast(type); - if (en) - { - return en->scoped(); - } - - ContainedPtr contained = ContainedPtr::dynamicCast(type); - if (contained) - { - return "const " + contained->scoped() + "&"; - } - - return "???"; -} - void Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string& param, bool marshal, const string& str, bool pointer) |