⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 supports_test.idl

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 IDL
字号:
// Supports_Test.idl,v 1.3 2003/09/14 22:09:10 edwardgt Exp

///////////////////////////////////////////////////////////////////////////////
/**
 * \file Supports_Test.idl
 *
 * \author George Edwards <g.edwards@vanderbilt.edu>
 *
 * This file contain definitions of the valuetypes and interfaces of
 * Supports_Test, a test of TAO's OBV capabilities. Specifically, Supports_Test
 * checks proper operation of the following features:
 *
 * -Valuetypes that support concrete interfaces:
 *    Using the same valuetype implementation, Supports_Test creates both
 *    valuetypes and object references, passes them as parameters, and
 *    invokes both local and remote calls.
 * -ORB::register_value_factory () return values:
 *    Supports_Test checks the return values of register_value_factory () to
 *    ensure compliance with the spec.
 */
///////////////////////////////////////////////////////////////////////////////

module Supports_Test
{

	valuetype Node;

	typedef sequence<Node> Node_List;

  /**
   *
   * This valuetype is the basic building block of the vt_graph valuetype,
   * defined below. Some of these operations and state members are not
   * currently used in the test.
   */
	valuetype Node
	{

    void print ();

		public string name_;
		private long weight_;
		private short degree_;
		private Node_List neighbors_;

		void change_weight (in long new_weight);
		void add_edge (in Node neighbor);
		void remove_edge (in Node neighbor);

		factory create ();

	};

  /**
   * \interface graph
   *
   * This interface contains the operations we will invoke on vt_graph
   * valuetypes as well as graph object references. The implementations of
   * these operations will be defined in vt_graph. All graph object refs will
   * be vt_graphs under the hood.
   */
	interface graph
	{

		long size ();
		void add_node (in string name);
    void print ();
		
	};

	valuetype vt_graph supports graph
	{

		private Node_List nodes_;
		factory create ();

	};

  /**
   * \interface test
   *
   * This interface contains the operations that will perform the tests.
   */
	interface test
	{

		void pass_vt_graph_in (in vt_graph vt_graph_param);
		void pass_obj_graph_in (in graph graph_param);
    void pass_vt_graph_out (out vt_graph vt_graph_param);
		void pass_obj_graph_out (out graph graph_param);
		void pass_vt_graph_inout (inout vt_graph vt_graph_param);
		void pass_obj_graph_inout (inout graph graph_param);
    void start ();
    oneway void finish ();

	};

};

⌨️ 快捷键说明

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