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

📄 coslifecycle.idl

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 IDL
字号:
/* -*- C++ -*- */
// CosLifeCycle.idl,v 1.9 2004/01/07 19:48:04 boris Exp

// ============================================================================
//
// = LIBRARY
//    cos
//
// = FILENAME
//    CosLifeCycle.idl
//
// = DESCRIPTION
//    Described in CORBAservices: Common Object Services Specification,
//    chapter 6.
//    The life cycle service description can be downloaded from:
//      ftp://www.omg.org/pub/docs/formal/97-12-13.pdf
//    The original IDL file can be downloaded from:
//      ftp://www.omg.org/pub/docs/formal/97-11-02.idl
//
// = AUTHOR
//    OMG, Torben Worm <tworm@cs.wustl.edu>, and Michael Kircher <mk1@cec.wustl.edu>
//
// ============================================================================

#ifndef TAO_LIFECYCLE_IDL
#define TAO_LIFECYCLE_IDL

// OMG IDL for CosLifeCycle Module, page 6-10 in 
// Includes the following interfaces:
//   FactoryFinder, LifeCycleObject, GenericFactory

#include "CosNaming.idl"

#pragma prefix "omg.org"

module CosLifeCycle
{
  // = TITLE
  //     CosLifeCycle
  //
  // = DESCRIPTION
  //     This idl file describes the life cycle service.
  //     The purpose of the life cycle service is to 
  
  typedef CosNaming::Name Key; 
  typedef Object _Factory;
  typedef sequence <_Factory> Factories;

  struct NameValuePair
  {
    CosNaming::Istring name; 
    any value; 
  };

  typedef sequence <NameValuePair> Criteria;
  
  exception NoFactory 
  {
    Key search_key;
  };
  exception NotCopyable { string reason; };
  exception NotMovable { string reason; };
  exception NotRemovable { string reason; };
  exception InvalidCriteria
  {
    Criteria invalid_criteria;
  };
  exception CannotMeetCriteria 
  {
    Criteria unmet_criteria;
  };
  
  interface FactoryFinder 
    {
      // = TITLE
      //   @@ Please fill in.
      // = DESCRIPTION
      //   @@ Please fill in.

      Factories find_factories (in Key factory_key)
        raises (NoFactory);
    };
  
  interface LifeCycleObject 
    {
      // = TITLE
      //   @@ Please fill in.
      // = DESCRIPTION
      //   @@ Please fill in.

      LifeCycleObject copy (in FactoryFinder there, 
                            in Criteria the_criteria)
        raises (NoFactory, NotCopyable, InvalidCriteria, CannotMeetCriteria);
      void move (in FactoryFinder there, 
                 in Criteria the_criteria)
        raises (NoFactory, NotMovable, InvalidCriteria,  CannotMeetCriteria);
      void remove ()
        raises (NotRemovable);
    };
  
  interface GenericFactory 
    {
      // = TITLE
      //   @@ Please fill in.
      // = DESCRIPTION
      //   @@ Please fill in.

      boolean _supports (in Key k);
      Object create_object (in Key k, 
                            in Criteria the_criteria)
        raises (NoFactory, InvalidCriteria, CannotMeetCriteria);
    };
};

// Criteria, page 6-17:
/*
typedef struct NVP 
{
  CosNaming::Istring name;	
  any value;
} NameValuePair;

typedef sequence <NameValuePair> Criteria;
*/

#endif /* TAO_LIFECYCLE_IDL */

⌨️ 快捷键说明

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