00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Default_Acceptor_Filter.h 00006 * 00007 * $Id: Default_Acceptor_Filter.h 72358 2006-04-26 13:22:59Z mesnier_p $ 00008 * 00009 * Default strategy for populating mprofile 00010 * 00011 * @author Marina Spivak <marina@cs.wustl.edu> 00012 * @author Carlos O'Ryan <coryan@uci.edu> 00013 */ 00014 //============================================================================= 00015 00016 00017 #ifndef TAO_DEFAULT_ACCEPTOR_FILTER_H 00018 #define TAO_DEFAULT_ACCEPTOR_FILTER_H 00019 00020 #include /**/ "ace/pre.h" 00021 00022 #include "tao/PortableServer/portableserver_export.h" 00023 00024 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 #include "tao/Acceptor_Filter.h" 00029 00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00031 00032 class TAO_Acceptor; 00033 00034 /** 00035 * @class TAO_Default_Acceptor_Filter 00036 * 00037 * @brief Default Acceptor_Filter. 00038 * 00039 * Default strategy for populating mprofile: all available 00040 * endpoints are included. 00041 */ 00042 class TAO_PortableServer_Export TAO_Default_Acceptor_Filter 00043 : public TAO_Acceptor_Filter 00044 { 00045 public: 00046 TAO_Default_Acceptor_Filter (void); 00047 00048 /// Populate @a mprofile with all available endpoints. 00049 virtual int fill_profile (const TAO::ObjectKey &object_key, 00050 TAO_MProfile &mprofile, 00051 TAO_Acceptor **acceptors_begin, 00052 TAO_Acceptor **acceptors_end, 00053 CORBA::Short priority = TAO_INVALID_PRIORITY); 00054 00055 /// Encodes the endpoints in the profiles into the TAO_TAG_ENDPOINTS 00056 /// tag component of profiles. 00057 int encode_endpoints (TAO_MProfile &mprofile); 00058 }; 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #include /**/ "ace/post.h" 00063 00064 #endif /* TAO_DEFAULT_ACCEPTOR_FILTER_H */