union.idl

来自「支持组件模型CCM的开源中间件-mico」· IDL 代码 · 共 42 行

IDL
42
字号
typedef octet Bytes[64];struct S { long len; };interface foo;// Union with explicit default labelunion U switch (long) {  case 1: long x;  case 2: Bytes y;  case 3: string z;  case 4:  case 5: S w;  case 6: long array[ 10 ][ 20 ];  case 7: sequence<long> seq; default: foo obj;};typedef enum E {  A,  B} E_Alias;// Union with no default labelunion U2 switch(E_Alias) {  case A: long x;  case B: short y;};// Union with implicit default labelunion U3 switch(E_Alias) {  case B: long x;};interface foo {  void bar( in U x, out U y, out U2 z );};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?