2 #include "tao/Strategies/UIOP_Factory.h"
6 #include "tao/Strategies/UIOP_Acceptor.h"
7 #include "tao/Strategies/UIOP_Connector.h"
8 #include "tao/ORB_Constants.h"
9 #include "ace/OS_NS_strings.h"
11 static const char prefix_
[] = "uiop";
13 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
15 TAO_UIOP_Protocol_Factory::TAO_UIOP_Protocol_Factory ()
16 : TAO_Protocol_Factory (TAO_TAG_UIOP_PROFILE
)
20 TAO_UIOP_Protocol_Factory::~TAO_UIOP_Protocol_Factory ()
25 TAO_UIOP_Protocol_Factory::match_prefix (const ACE_CString
&prefix
)
27 // Check for the proper prefix for this protocol.
28 return (ACE_OS::strcasecmp (prefix
.c_str (), ::prefix_
) == 0);
32 TAO_UIOP_Protocol_Factory::prefix () const
38 TAO_UIOP_Protocol_Factory::options_delimiter () const
44 TAO_UIOP_Protocol_Factory::make_acceptor ()
46 TAO_Acceptor
*acceptor
= 0;
48 ACE_NEW_RETURN (acceptor
,
56 TAO_UIOP_Protocol_Factory::init (int /* argc */, ACE_TCHAR
* /* argv */ [])
62 TAO_UIOP_Protocol_Factory::make_connector ()
64 TAO_Connector
*connector
= 0;
66 ACE_NEW_RETURN (connector
,
74 TAO_UIOP_Protocol_Factory::requires_explicit_endpoint () const
80 ACE_STATIC_SVC_DEFINE (TAO_UIOP_Protocol_Factory
,
81 ACE_TEXT ("UIOP_Factory"),
83 &ACE_SVC_NAME (TAO_UIOP_Protocol_Factory
),
84 ACE_Service_Type::DELETE_THIS
|
85 ACE_Service_Type::DELETE_OBJ
,
88 ACE_FACTORY_DEFINE (TAO_Strategies
, TAO_UIOP_Protocol_Factory
)
90 TAO_END_VERSIONED_NAMESPACE_DECL
93 #endif /* TAO_HAS_UIOP == 1 */