【发布时间】:2018-07-10 16:47:23
【问题描述】:
如何检测 ImplementationDataTypeElement 是否是一个包含数组(甚至通过 typedef)的数组?
我可以通过检测类别是否为“ARRAY”来检测一维数组,但如何获得进一步的“定义”?
【问题讨论】:
-
出于好奇:你认为这个问题得到了回答吗?
-
@Uwe 是的!工作正常,谢谢。
标签: autosar
如何检测 ImplementationDataTypeElement 是否是一个包含数组(甚至通过 typedef)的数组?
我可以通过检测类别是否为“ARRAY”来检测一维数组,但如何获得进一步的“定义”?
【问题讨论】:
标签: autosar
如果ImplementationDataType 或category ARRAY 拥有的ImplementationDataTypeElement 再次属于category ARRAY,那么您可以清楚地指示二维数组。
如果ImplementationDataTypeElement 属于category TYPE_REFERENCE,那么您必须查看通过ImplementationDataTypeElement.swDataDefProps.implementationDataType 引用的ImplementationDataType。
如果引用的ImplementationDataType属于categoryARRAY,那么这也是二维数组定义的指示。
【讨论】: