Skip to content

Commit 1a61712

Browse files
x0rxor2003
authored andcommitted
Implemented solution for indirected sequence type. Trying to check with CI tests
Add array type indirection support
1 parent bcaa114 commit 1a61712

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,7 @@ namespace
13921392
// Only struct, union, event and valuetype TypeCodes may be
13931393
// recursive. However non-recursive ALIAS may be indirected.
13941394
|| !(kind == CORBA::tk_struct
1395+
|| kind == CORBA::tk_sequence
13951396
|| kind == CORBA::tk_union
13961397
|| kind == CORBA::tk_value
13971398
|| kind == CORBA::tk_event
@@ -1400,6 +1401,15 @@ namespace
14001401
return false;
14011402
}
14021403

1404+
if (CORBA::tk_sequence == kind || CORBA::tk_array == kind) // @todo 1. check if recursion is properly handled 2. check need for other complex types
1405+
{
1406+
return TAO::TypeCodeFactory::tc_sequence_factory (static_cast<CORBA::TCKind> (kind),
1407+
indir_stream,
1408+
tc,
1409+
indirect_infos,
1410+
direct_infos);
1411+
}
1412+
14031413
// Currently all recursive TypeCodes have complex parameter
14041414
// lists, meaning they are encoded as CDR encapsulations.
14051415
TAO_InputCDRByteOrderGuard boguard (indir_stream);

0 commit comments

Comments
 (0)