亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? trader.h

?? 這是廣泛使用的通信開源項目,對于大容量,高并發的通訊要求完全能夠勝任,他廣泛可用于網絡游戲醫學圖像網關的高qos要求.更詳細的內容可閱讀相應的材料
?? H
字號:
/* -*- C++ -*- */

//=============================================================================
/**
 * @file Trader.h
 *
 * Trader.h,v 1.48 2003/07/21 23:51:33 dhinton Exp
 *
 * @author Marina Spivak <marina@cs.wustl.edu>
 * @author Seth Widoff <sbw1@cs.wustl.edu>
 * @author Irfan Pyarali <irfan@cs.wustl.edu>
 */
//=============================================================================


#ifndef TAO_TRADER_BASE_H
#define TAO_TRADER_BASE_H
#include /**/ "ace/pre.h"

#include "Interpreter_Utils.h"

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

#include "ace/Containers.h"

#include "orbsvcs/CosTradingS.h"
#include "orbsvcs/CosTradingReposS.h"
#include "orbsvcs/CosTradingDynamicS.h"
#include "orbsvcs/Trader/trading_export.h"

#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning (disable:4250)
#endif /* _MSC_VER */

// Forward Declaration.
class TAO_Trader_Base;

  // *************************************************************
  // TAO_Trader_Factory
  // *************************************************************

/**
 * @class TAO_Trader_Factory
 *
 * @brief Uses command line arguments to construct a trader instance with
 * the correct interface support, locking, and policy settings.
 */
class TAO_Trading_Export TAO_Trader_Factory
{
public:

  typedef TAO_Trader_Base TAO_TRADER;

  /**
   * Creates an instance of the trader according to parameters whose
   * default values can be overrided with the following command line
   * arguments:
   *
   * -TSthreadsafe, default is not thread-safe
   * -TSconformance {query, simple, stand-alone, linked}, default is linked
   * -TSsupports_dynamic_properties {true, false}, default is true
   * -TSsupports_modifiable_propertise {true, false}, default is true
   * -TSdef_search_card {integer}, default is 20
   * -TSmax_search_card {integer}, default is 50
   * -TSdef_match_card {integer}, default is 20
   * -TSmax_match_card {integer}, default is 50
   * -TSdef_return_card {integer}, default is 20
   * -TSmax_return_card {integer}, default is 50
   * -TSdef_hop_count {integer}, default is 5,
   * -TSmax_hop_count {integer}, default is 10
   * -TSdef_follow_policy {always,if_no_local,local_only}, default is if_no_local,
   * -TSmax_follow_policy {always,if_no_local,local_only}, default is always
   */
  static TAO_TRADER* create_trader (int& argc, ACE_TCHAR** argv);

protected:

  TAO_Trader_Factory (int& argc, ACE_TCHAR** argv);

private:

  enum Conformance { TAO_TRADER_QUERY,
                     TAO_TRADER_SIMPLE,
                     TAO_TRADER_STANDALONE,
                     TAO_TRADER_LINKED };

  TAO_TRADER* manufacture_trader (void);

  void parse_args (int& argc, ACE_TCHAR** argv);

  TAO_Trader_Factory& operator= (const TAO_Trader_Factory&);
  TAO_Trader_Factory (const TAO_Trader_Factory&);

  // = Command line configurable parameters.

  Conformance conformance_;
  CORBA::Boolean threadsafe_;
  CORBA::Boolean supports_dynamic_properties_;
  CORBA::Boolean supports_modifiable_properties_;
  CORBA::ULong def_search_card_;
  CORBA::ULong max_search_card_;
  CORBA::ULong def_match_card_;
  CORBA::ULong max_match_card_;
  CORBA::ULong def_return_card_;
  CORBA::ULong max_return_card_;
  CORBA::ULong def_hop_count_;
  CORBA::ULong max_hop_count_;
  CosTrading::FollowOption def_follow_policy_;
  CosTrading::FollowOption max_follow_policy_;
};

  // *************************************************************
  // Attribute Classes
  // *************************************************************

/**
 * @class TAO_Lockable
 *
 * Class used to remove the circular dependencies between the
 * Attribute classes and the Trader class.
 */
class TAO_Lockable
{
public:

  virtual ACE_Lock& lock (void) = 0;
};


/**
 * @class TAO_Support_Attributes_i
 *
 * @brief This class stores, allows access to and modification of
 * trader's support attributes.
 *
 * Contains a reference to the trader from which it is
 * used so it can use trader's lock.
 */
class TAO_Trading_Export TAO_Support_Attributes_i
{
public:
  // = Initialization and termination methods.
  TAO_Support_Attributes_i (TAO_Lockable &locker);
  ~TAO_Support_Attributes_i ();

  // = Accessor methods.
  CORBA::Boolean supports_modifiable_properties (void) const;
  void supports_modifiable_properties (CORBA::Boolean);

  CORBA::Boolean supports_dynamic_properties (void) const;
  void supports_dynamic_properties (CORBA::Boolean);

  CORBA::Boolean supports_proxy_offers (void) const;
  void supports_proxy_offers (CORBA::Boolean);

  CosTrading::TypeRepository_ptr type_repos (void) const;
  void type_repos (CosTrading::TypeRepository_ptr);

  CosTradingRepos::ServiceTypeRepository_ptr service_type_repos (void) const;

private:

  /// A reference to the trader (needed for obtaining the lock.)
  TAO_Lockable &locker_;

  /// Indicator of whether the trader supports property modification.
  CORBA::Boolean supports_modifiable_properties_;

  /// Indicator of whether the trader supports dynamic properties.
  CORBA::Boolean supports_dynamic_properties_;

  /// Indicator of whether the trader supports proxy offers.
  CORBA::Boolean supports_proxy_offers_;

  /// A reference to the TypeRepostitory used by the trader.
  CORBA::Object_var type_repos_;

  /// Already narrowed reference to the ServiceTypeRepository.
  CosTradingRepos::ServiceTypeRepository_var service_type_repos_;
};

/**
 * @class TAO_Link_Attributes_i
 *
 * @brief This class stores, allows access to and modification of
 * trader's link attributes.
 *
 * Contains a reference to the trader from which it is
 * used so it can use trader's lock.
 */
class TAO_Trading_Export TAO_Link_Attributes_i
{
public:
  // = Initialization and termination methods.

  TAO_Link_Attributes_i (TAO_Lockable &locker);
  ~TAO_Link_Attributes_i ();

  // = Accessor methods.

  CosTrading::FollowOption max_link_follow_policy (void) const;
  void  max_link_follow_policy (CosTrading::FollowOption);

private:

  /// A reference to the trader (needed for obtaining the lock.)
  TAO_Lockable &locker_;

  ///
  CosTrading::FollowOption max_link_follow_policy_;
};

/**
 * @class TAO_Import_Attributes_i
 *
 * @brief This class stores, allows access to and modification of
 * trader's import attributes.
 *
 * Contains a reference to the trader from which it is
 * used so it can use trader's lock.
 */
class TAO_Trading_Export TAO_Import_Attributes_i
{
public:
  // = Initialization and termination methods.

  TAO_Import_Attributes_i (TAO_Lockable &locker);

  ~TAO_Import_Attributes_i (void);

  // = Accessor methods.

  CORBA::ULong def_search_card (void) const;
  void def_search_card (CORBA::ULong);

  CORBA::ULong max_search_card (void) const;
  void max_search_card (CORBA::ULong);

  CORBA::ULong def_match_card (void) const;
  void def_match_card (CORBA::ULong);

  CORBA::ULong max_match_card (void) const;
  void max_match_card (CORBA::ULong);

  CORBA::ULong def_return_card (void) const;
  void def_return_card (CORBA::ULong);

  CORBA::ULong max_return_card (void) const;
  void max_return_card (CORBA::ULong);

  CORBA::ULong max_list (void) const;
  void max_list (CORBA::ULong);

  CORBA::ULong def_hop_count (void) const;
  void def_hop_count (CORBA::ULong);

  CORBA::ULong max_hop_count (void) const;
  void max_hop_count (CORBA::ULong);

  CosTrading::FollowOption def_follow_policy (void) const;
  void def_follow_policy (CosTrading::FollowOption);

  CosTrading::FollowOption max_follow_policy (void) const;
  void max_follow_policy (CosTrading::FollowOption);

private:

  TAO_Lockable &locker_;

  /// Upper bound of offers to be searched if <search_card>
  /// is not specified.
  CORBA::ULong def_search_card_;

  /// Maximum upper bound of offers to be searched.
  CORBA::ULong max_search_card_;

  /// Upper bound of matched offers to be ordered if
  /// <match_card> is not specified).
  CORBA::ULong def_match_card_;

  /// Maximum upper bound of matched offers to be ordered.
  CORBA::ULong max_match_card_;

  /// Upper bound of ordered offers to be returned if
  /// <returned_card> is not specified.
  CORBA::ULong def_return_card_;

  /// Maximum upper bound of ordered offers to be returned.
  CORBA::ULong max_return_card_;

  /// Upper bound of depth
  CORBA::ULong max_list_;

  /// Upper bound of depth of links to be traversed if <hop_count> is
  /// not specified.
  CORBA::ULong def_hop_count_;

  /// Maximum upper bound of depth of links to be traversed.
  CORBA::ULong max_hop_count_;

  /// Default link follow policy for a particular trader.
  CosTrading::FollowOption def_follow_policy_;

  /// Limiting link follow policy for all links of the trader -
  /// overrides both link and importer policies.
  CosTrading::FollowOption max_follow_policy_;
};

/**
 * @class TAO_Trading_Components_i
 *
 * @brief Set/get methods for references to various
 * interfaces of the trader.
 *
 * Note, this class is for use in local address space only and is NOT a
 * direct implementation of IDL methods. (Implementation of
 * IDL methods in CosTrading::Trader_Components would need
 * add a _duplicate call for each get method).
 */
class TAO_Trading_Export TAO_Trading_Components_i
{
public:

  // = Initialization and termination methods.
  TAO_Trading_Components_i (TAO_Lockable &locker);
  ~TAO_Trading_Components_i (void);

  // = CosTrading::TraderComponents methods.

  /// Returns an object reference to the Lookup interface of the trader.
  /// Returns nil if the trader does not support Lookup interface.
  CosTrading::Lookup_ptr lookup_if (void) const;

  /// Set the reference to the Lookup interface.
  void lookup_if (CosTrading::Lookup_ptr);

  /// Returns object reference for the Register interface of the trader.
  /// Returns nil if the trader does not support Register interface.
  CosTrading::Register_ptr register_if (void) const;

  /// Set the reference to the Register interface of the trader.
  void register_if (CosTrading::Register_ptr);

  /// Returns object reference for the Link interface of the trader.
  /// Returns nil if the trader does not support Link interface.
  CosTrading::Link_ptr link_if (void) const;

  /// Set the reference to the Link interface of the trader.
  void link_if (CosTrading::Link_ptr);

  /// Returns object reference to the Proxy interface of the trader.
  /// Returns nil if the trader does not support Proxy interface.
  CosTrading::Proxy_ptr proxy_if (void) const;

  /// Set the reference to the Proxy interface of the trader.
  void proxy_if (CosTrading::Proxy_ptr);

  /// Returns object reference for the Admin interface of the trader.
  /// Returns nil if the trader does not support Admin interface.
  CosTrading::Admin_ptr admin_if (void) const;

  /// Set the reference to the Admin interface of the trader.
  void admin_if (CosTrading::Admin_ptr);

private:

  TAO_Lockable &locker_;

  CosTrading::Lookup_var lookup_;
  CosTrading::Register_var register_;
  CosTrading::Link_var link_;
  CosTrading::Proxy_var proxy_;
  CosTrading::Admin_var admin_;
};

  // *************************************************************
  // TAO_Trader_Base
  // *************************************************************

/**
 * @class TAO_Trader_Base
 *
 * @brief TAO_Trader inherits from this "helper" class.
 * The sole purpose of this class is to factor some of TAO_Trader's
 * data members out, so that they would not have to be templatized
 * and be be aware of the type of lock they use.
 *
 * TAO_Trader is a template class.  And while we want
 * <import_attributes_>, <trader_components_>, and
 * <support_attributes> use a lock contained in TAO_Trader, we do not
 * want all these classes to be templatized.  TAO_Trader_Base class solves
 * this problem.
 */
class TAO_Trading_Export TAO_Trader_Base : public TAO_Lockable
{
public:

  enum Trader_Components
  {
    LOOKUP = 0x001,
    REGISTER = 0x002,
    LINK = 0x004,
    PROXY = 0x008,
    ADMIN = 0x010
  };

  virtual ~TAO_Trader_Base (void);

  // = Accessors for objects that manage trader's configuration.

  TAO_Trading_Components_i &trading_components (void);

  const TAO_Trading_Components_i &trading_components (void) const;

  TAO_Import_Attributes_i &import_attributes (void);

  const TAO_Import_Attributes_i &import_attributes (void) const;

  TAO_Support_Attributes_i &support_attributes (void);

  const TAO_Support_Attributes_i &support_attributes (void) const;

  TAO_Link_Attributes_i &link_attributes (void);

  const TAO_Link_Attributes_i &link_attributes (void) const;

  // = Accessor for trader's lock.

  /**
   * Determine whether the identifier is a valid one (i.e., if the
   * first character is a letter, and the subsequent ones letter,
   * numbers, or underscores.)
   */
  static CORBA::Boolean is_valid_identifier_name (const char* ident);

protected:
  // = Objects determining current configuration of a trader.

  /// Stores and allows lookup of trader's components.
  TAO_Trading_Components_i trading_components_;

  /// Stores and allows access/modification of trader's import attributes.
  TAO_Import_Attributes_i import_attributes_;

  /// Stores and allows access/modification of trader's support attributes.
  TAO_Support_Attributes_i support_attributes_;

  /// Stores and allows access/modification of trader's link attributes.
  TAO_Link_Attributes_i link_attributes_;

 protected:

  /// Implemented.
  TAO_Trader_Base (void);

 private:

  /// Unimplemented.
  TAO_Trader_Base (const TAO_Trader_Base& TAO_Trader_Base);
  TAO_Trader_Base& operator= (const TAO_Trader_Base&);
};


// Helpful typedefs
// Should probably be private to TAO_Offer_Database, but g++ has a
// hard time with it like that when compiling TAO_Service_Offer_Iterator.
typedef ACE_Hash_Map_Manager_Ex<CORBA::ULong, CosTrading::Offer*, ACE_Hash<CORBA::ULong>, ACE_Equal_To<CORBA::ULong>, ACE_Null_Mutex> TAO_Offer_Map;

typedef ACE_Unbounded_Set<TAO_String_Hash_Key> TAO_String_Set;
typedef ACE_Unbounded_Queue<char*> TAO_String_Queue;

// = Helpful operators.

int
operator> (const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &l,
           const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &r);

int
operator< (const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &l,
           const CosTradingRepos::ServiceTypeRepository::IncarnationNumber &r);

int operator== (const CosTrading::Admin::OctetSeq& left,
                const CosTrading::Admin::OctetSeq& right);

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */

#include /**/ "ace/post.h"
#endif /* TAO_TRADER_BASE_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区2区| 欧美日韩第一区日日骚| 欧美日韩国产在线播放网站| 日韩免费性生活视频播放| 亚洲人成影院在线观看| 久草在线在线精品观看| 色av一区二区| 国产拍揄自揄精品视频麻豆| 午夜电影久久久| 97久久久精品综合88久久| 欧美电影免费观看高清完整版在线观看 | 国产酒店精品激情| 欧美日韩高清一区二区不卡 | 在线成人av网站| 国产精品色婷婷久久58| 精品一区二区三区日韩| 欧美无砖专区一中文字| 亚洲丝袜制服诱惑| 成人免费黄色在线| 久久久亚洲午夜电影| 喷水一区二区三区| 欧美狂野另类xxxxoooo| 一区二区高清视频在线观看| 成人精品免费视频| 久久老女人爱爱| 韩国成人精品a∨在线观看| 欧美高清你懂得| 午夜精品久久久久久久| 欧美日韩一区高清| 亚洲伊人伊色伊影伊综合网| 99精品久久只有精品| 国产精品嫩草99a| 成人短视频下载| 国产精品久久久久久久久久免费看 | 国产91富婆露脸刺激对白| 精品久久一区二区三区| 久久av资源站| 久久久久国产一区二区三区四区 | 91精品国产入口在线| 五月激情综合色| 91精品国产欧美一区二区18| 日韩精品电影在线观看| 日韩一级精品视频在线观看| 日本中文字幕一区| 日韩视频免费观看高清完整版在线观看 | 久久精品国产一区二区三| 欧美成人一区二区| 国产一二三精品| 国产精品久久久久久久久免费丝袜| 成人app网站| 综合自拍亚洲综合图不卡区| 色94色欧美sute亚洲线路一久| 亚洲午夜在线电影| 7777精品伊人久久久大香线蕉超级流畅| 日本午夜精品一区二区三区电影| 欧美大度的电影原声| 国产精品一区二区果冻传媒| 国产精品久久久久aaaa| 欧美日韩国产影片| 国产精品一区二区久激情瑜伽| 中文字幕一区二区三区四区不卡| 色狠狠av一区二区三区| 男女男精品网站| 国产欧美1区2区3区| 91老师片黄在线观看| 免费在线看成人av| 中文字幕欧美日韩一区| 欧美性做爰猛烈叫床潮| 精品一区二区三区在线观看国产| 亚洲欧洲成人精品av97| 7777女厕盗摄久久久| 成人av午夜电影| 丝袜美腿亚洲色图| 中文字幕一区二区三区不卡| 欧美一区二区三区免费在线看| 国产精品综合在线视频| 亚洲va韩国va欧美va| 中文字幕免费不卡在线| 91精品国产色综合久久ai换脸| 成人午夜视频网站| 免费高清视频精品| 亚洲一区在线电影| 国产日韩三级在线| 欧美v日韩v国产v| 色成年激情久久综合| 国产传媒欧美日韩成人| 婷婷中文字幕一区三区| 亚洲视频香蕉人妖| 国产午夜精品一区二区三区嫩草| 欧美群妇大交群中文字幕| 99综合电影在线视频| 国模冰冰炮一区二区| 日韩电影在线免费观看| 亚洲欧美一区二区三区孕妇| 久久久久99精品一区| 欧美成人激情免费网| 欧美精品久久一区二区三区| 色欧美88888久久久久久影院| 国产传媒一区在线| 国产精品白丝av| 国产一区美女在线| 日本不卡不码高清免费观看| 亚洲第一会所有码转帖| 亚洲综合清纯丝袜自拍| 综合网在线视频| 综合激情成人伊人| 国产精品久久久久久一区二区三区| 久久久久久电影| 久久久久97国产精华液好用吗| 日韩一区二区高清| 日韩女优电影在线观看| 91精品国产免费久久综合| 69堂国产成人免费视频| 欧美肥胖老妇做爰| 日韩欧美成人一区二区| 精品国免费一区二区三区| 欧美xxxxxxxxx| 久久综合色之久久综合| 久久久精品国产免大香伊| 国产亚洲欧美中文| 欧美激情一区在线| 中文字幕日韩一区| 亚洲欧美色图小说| 一区二区三区四区在线播放| 亚洲综合视频在线| 亚洲成av人片www| 日本视频在线一区| 狠狠色综合日日| 国产91精品欧美| 色94色欧美sute亚洲13| 欧美日韩亚洲综合一区二区三区| 欧美色综合久久| 精品女同一区二区| 欧美激情在线一区二区| 专区另类欧美日韩| 亚洲成人动漫精品| 国内精品国产三级国产a久久| 国产成人日日夜夜| 色婷婷激情一区二区三区| 欧美三级三级三级爽爽爽| 日韩一级二级三级| 中文字幕欧美区| 亚洲国产精品一区二区久久 | 成人综合婷婷国产精品久久| 91视频一区二区三区| 欧美日韩国产综合久久 | 欧美一个色资源| 国产视频亚洲色图| 亚洲精品videosex极品| 免费一区二区视频| av午夜一区麻豆| 欧美一卡二卡三卡| 国产精品麻豆欧美日韩ww| 亚洲va韩国va欧美va精品| 国产一区二区免费视频| 91传媒视频在线播放| 欧美大胆人体bbbb| 一区二区三区电影在线播| 精品一区二区三区免费毛片爱| 色综合久久99| 国产日韩精品久久久| 亚洲国产三级在线| 国产成人午夜片在线观看高清观看| 欧美在线制服丝袜| 国产欧美一区在线| 日本中文字幕一区二区有限公司| 99re视频精品| 国产亚洲欧美日韩日本| 奇米色777欧美一区二区| 91社区在线播放| 国产亚洲精品bt天堂精选| 亚洲第一综合色| 色八戒一区二区三区| 亚洲国产高清不卡| 国产一区二区伦理片| 91精品国产91综合久久蜜臀| 亚洲午夜精品17c| 99re这里都是精品| 国产午夜精品久久久久久久 | 综合在线观看色| 粉嫩av亚洲一区二区图片| 精品久久五月天| 蜜桃精品在线观看| 欧美日本不卡视频| 亚洲在线视频网站| 成人精品国产一区二区4080| 欧美v日韩v国产v| 日韩成人精品在线观看| 一本到不卡免费一区二区| 国产无一区二区| 国产一区福利在线| 精品国产乱码久久久久久牛牛| 无码av中文一区二区三区桃花岛| 一本到三区不卡视频| 中文字幕在线观看一区| 国产麻豆精品在线观看| 欧美r级电影在线观看| 美女www一区二区| 日韩三级免费观看| 久久国产福利国产秒拍|