generic_object.idl
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· IDL 代码 · 共 45 行
IDL
45 行
// generic_object.idl,v 1.5 2002/07/01 14:34:47 parsons Exp
// ============================================================================
//
// = LIBRARY
// TAO/tests/IDL_Test
//
// = FILENAME
// generic_object.idl
//
// = DESCRIPTION
// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
//
// = AUTHORS
// Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
//
// ============================================================================
// The IDL compiler deals with these in a completely different way
// that it deals with a derived object, i.e., an interface.
enum ObjectType
{
OT_THIS,
OT_THAT
};
union Selecter switch (ObjectType)
{
case OT_THIS: Object this_object;
case OT_THAT: Object that_object;
};
// Test stub code for generic object parameters.
interface generic
{
Object op (in Object inarg,
inout Object inoutarg,
out Object outarg);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?