ifr_service.h

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

H
67
字号
// IFR_Service.h,v 1.14 2002/04/27 01:29:24 jai Exp

// ========================================================================
//
// = LIBRARY
//    orbsvcs/IFR_Service
//
// = FILENAME
//    IFR_Service.h
//
// = AUTHOR
//    Jeff Parsons <parsons@cs.wustl.edu>
//
// =======================================================================

#ifndef IFR_SERVICE_H
#define IFR_SERVICE_H

#include "tao/PortableServer/PortableServerC.h"
#include "orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h"
#include "tao/ORB.h"

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

class IFR_Service
{
  // = TITLE
  //    IFR_Service
  //
  // = DESCRIPTION
  //    A class that initializes, runs and shuts down
  //    the Interface Repository service.
public:

  IFR_Service (void);
  // Default constructor.

  ~IFR_Service (void);
  // Destructor

  int init (int argc,
            char *argv[]
            ACE_ENV_ARG_DECL_WITH_DEFAULTS);
  // Initialize the IFR service.

  int fini (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
  // Shut down the IFR Service.
  
  int run (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
  // Run the IFR service.

protected:
  
  CORBA::ORB_var orb_;
  // Reference to our ORB.

  PortableServer::POA_var root_poa_;
  // Root POA reference.

  TAO_IFR_Server my_ifr_server_;
  // IFR Server instance.
};

#endif /* IFR_SERVICE_H */

⌨️ 快捷键说明

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