From b494fd0916481569662b766f8ab9f91c48d580b8 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 2 Feb 2006 16:10:39 +0000 Subject: Added support for ["cpp:range"] --- cpp/src/slice2cppe/Gen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/slice2cppe/Gen.cpp') diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 43e4ba1fdf8..91743d8c89f 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -773,7 +773,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) string s = typeToString(type); StringList metaData = p->getMetaData(); string seqType = findMetaData(metaData); - if(!seqType.empty() && seqType != "array") + if(!seqType.empty() && seqType != "array" && seqType.find("range") != 0) { H << sp << nl << "typedef " << seqType << ' ' << name << ';'; } @@ -790,7 +790,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) H << sp << nl << "class __U__" << name << " { };"; - if(!seqType.empty() && seqType != "array") + if(!seqType.empty() && seqType != "array" && seqType.find("range") != 0) { H << nl << _dllExport << "void __write(::IceInternal::BasicStream*, const " << name << "&, __U__" << name << ");"; @@ -2998,7 +2998,7 @@ Slice::Gen::MetaDataVisitor::visitOperation(const OperationPtr& p) { for(StringList::const_iterator q = metaData.begin(); q != metaData.end(); ++q) { - if(q->find("cpp:type:", 0) == 0 || q->find("cpp:array", 0)) + if(q->find("cpp:type:", 0) == 0 || q->find("cpp:array", 0) || q->find("cpp:range", 0)) { cout << p->definitionContext()->filename() << ":" << p->line() << ": warning: invalid metadata for operation" << endl; -- cgit v1.2.3