da_tests.idl
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· IDL 代码 · 共 54 行
IDL
54 行
/* -*- C++ -*- */
//
// da_tests.idl,v 1.13 2003/08/24 12:58:02 jwillemsen Exp
#include <orb.idl>
module DynAnyTests
{
struct enclosed_struct
{
float f;
short s;
};
struct test_struct
{
char c;
long l;
enclosed_struct es;
};
typedef sequence<string<8> > test_seq;
typedef sequence<short> SeqShort;
const unsigned long DIM = 2;
typedef long test_array [DIM];
enum test_enum
{
TE_ZEROTH,
TE_FIRST,
TE_SECOND,
TE_THIRD,
TE_FOURTH
};
union test_union switch (test_enum)
{
case TE_SECOND: CORBA::TypeCode tc;
case TE_FOURTH: test_enum te;
default: short s;
case TE_THIRD: string str;
case TE_ZEROTH: octet o;
};
typedef test_struct test_struct_alias;
typedef test_union test_union_alias;
union test_implicit_def switch (boolean) {
case TRUE :
test_enum tenum;
} ;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?