diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-05 17:24:46 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-05 17:24:46 +0000 |
commit | ca96ced6bb1c3a653e8cfeb4f2c5c3e13fc28a00 (patch) | |
tree | 79780e0ccaa0c3ba07dd977ae028f9765f469f30 /cpp/src/slice2cppe/Gen.cpp | |
parent | Catch ConnectionLostException on Win32 (diff) | |
download | ice-ca96ced6bb1c3a653e8cfeb4f2c5c3e13fc28a00.tar.bz2 ice-ca96ced6bb1c3a653e8cfeb4f2c5c3e13fc28a00.tar.xz ice-ca96ced6bb1c3a653e8cfeb4f2c5c3e13fc28a00.zip |
Added support for "deprecate"
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index d094ef01509..db11e6b61d6 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -1425,7 +1425,17 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) string thisPointer = fixKwd(scope.substr(0, scope.size() - 2)) + "*"; H << sp; - H << nl << retS << ' ' << fixKwd(name) << spar << paramsDecl << epar; + H << nl; + StringList metaData = p->getMetaData(); + for(StringList::const_iterator q = metaData.begin(); q != metaData.end(); ++q) + { + if(q->find("deprecate") == 0) + { + H << "ICE_DEPRECATED_API "; + break; + } + } + H << retS << ' ' << fixKwd(name) << spar << paramsDecl << epar; H << sb; H << nl; if(ret) |