corba tao_idl中如何声明数组?

2024-12-21 13:31:47
推荐回答(1个)
回答1:

代码示例:

const long MY_BINARY_ARRAY_LENGTH = 64;
typedef octet MyBinaryArray[MY_BINARY_ARRAY_LENGTH];

参考资料:

《IDL To C++11™ Language Mapping, Version 1.2 》(http://www.omg.org/cgi-bin/doc?formal/2015-08-01.pdf)

  • 6.6 Mapping for Basic Data Types

  • 6.13 Mapping for Array Types