00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PG_conf.h 00006 * 00007 * PG_conf.h,v 1.9 2005/11/14 22:03:50 ossama Exp 00008 * 00009 * @author Ossama Othman <ossama@uci.edu> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_PG_CONF_H 00015 #define TAO_PG_CONF_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "ace/config-all.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 #pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "orbsvcs/PortableGroupC.h" 00026 00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00028 00029 #ifndef TAO_PG_MAX_OBJECT_GROUPS // @@ why create arbitrary limits? 00030 /// The maximum number of object groups to be managed by the 00031 /// ObjectGroupManager. This number is also equal to the number of 00032 /// factory sets managed by the GenericFactory. 00033 const size_t TAO_PG_MAX_OBJECT_GROUPS = 1024; 00034 #endif /* TAO_PG_MAX_NUMBER_OF_OBJECT_GROUPS */ 00035 00036 #ifndef TAO_PG_MAX_LOCATIONS // @@ why create arbitrary limits? 00037 /// The maximum number of locations to be managed by the 00038 /// ObjectGroupManager. 00039 const size_t TAO_PG_MAX_LOCATIONS = 1024; 00040 #endif /* TAO_PG_MAX_LOCATIONS */ 00041 00042 #ifndef TAO_PG_MEMBERSHIP_STYLE 00043 /// The default object group membership style. 00044 const PortableGroup::MembershipStyleValue TAO_PG_MEMBERSHIP_STYLE = 00045 PortableGroup::MEMB_INF_CTRL; 00046 #endif /* TAO_PG_INITIAL_NUMBER_MEMBERS */ 00047 00048 #ifndef TAO_PG_INITIAL_NUMBER_MEMBERS 00049 /// The default initial number of object group members. 00050 const PortableGroup::InitialNumberMembersValue TAO_PG_INITIAL_NUMBER_MEMBERS = 00051 2; 00052 #endif /* TAO_PG_INITIAL_NUMBER_MEMBERS */ 00053 00054 #ifndef TAO_PG_MINIMUM_NUMBER_MEMBERS 00055 /// The default minimum number of object group members. 00056 const PortableGroup::MinimumNumberMembersValue TAO_PG_MINIMUM_NUMBER_MEMBERS = 00057 TAO_PG_INITIAL_NUMBER_MEMBERS; 00058 #endif /* TAO_PG_MINIMUM_NUMBER_MEMBERS */ 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #include /**/ "ace/post.h" 00063 00064 #endif /* TAO_PG_CONF_H */