coll_tester.h

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 62 行

H
62
字号
// Coll_Tester.h,v 1.4 2004/01/01 15:42:09 bala Exp

//============================================================================
//
//  =FILENAME
//     Collocation_Test.h
//
//  =DESCRIPTION
//     Server class to perform testing of TAO's collocation mechanism.
//
//  =AUTHOR
//     Nanbor Wang
//
//=============================================================================

#if !defined (TAO_COLLOCATION_TEST_H)
#define TAO_COLLOCATION_TEST_H

#include "Diamond_i.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */


class Collocation_Test
{
public:
  Collocation_Test (void);

  int init (int argc, char *argv[] ACE_ENV_ARG_DECL_NOT_USED);
  // Initializing the Collocation_Test object.

  int parse_args (int argc, char *argv[]);
  // Parse the test specific arguments.

  int test_narrow (ACE_ENV_SINGLE_ARG_DECL_NOT_USED);
  // This test narrow an object reference to its base class and see
  // if it works correctly.

  int run (ACE_ENV_SINGLE_ARG_DECL_NOT_USED);
  // Run the test.

private:
  CORBA::ORB_var orb_;

  PortableServer::POA_var root_poa_;

  PortableServer::POAManager_var poa_manager_;

  CORBA::Object_var diamond_obj_;
  // Our basic test object.

  Top_i top_servant_;
  Left_i left_servant_;
  Right_i right_servant_;
  Buttom_i diamond_servant_;
  // A collection of servant for basic narrowing test.
};

#endif /* TAO_COLLOCATION_TEST_H */

⌨️ 快捷键说明

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