3 //=============================================================================
7 * @author Fred Kuhns <fredk@cs.wustl.edu>Ossama Othman <othman@cs.wustl.edu>
9 //=============================================================================
12 #ifndef TAO_UIOP_FACTORY_H
13 #define TAO_UIOP_FACTORY_H
15 #include /**/ "ace/pre.h"
17 #include "tao/orbconf.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 # if TAO_HAS_UIOP == 1
25 #include "tao/Protocol_Factory.h"
26 #include "tao/Strategies/strategies_export.h"
27 #include "ace/Service_Config.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 class TAO_Strategies_Export TAO_UIOP_Protocol_Factory
: public TAO_Protocol_Factory
38 TAO_UIOP_Protocol_Factory ();
41 virtual ~TAO_UIOP_Protocol_Factory ();
43 // = Service Configurator hooks.
44 /// Dynamic linking hook
45 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
47 /// Verify prefix is a match
48 virtual int match_prefix (const ACE_CString
&prefix
);
50 /// Returns the prefix used by the protocol.
51 virtual const char *prefix () const;
53 /// Return the character used to mark where an endpoint ends and
54 /// where its options begin.
55 virtual char options_delimiter () const;
58 * @name Protocol factory methods
60 * Check Protocol_Factory.h for a description of these methods.
63 virtual TAO_Acceptor
*make_acceptor ();
64 virtual TAO_Connector
*make_connector ();
65 virtual int requires_explicit_endpoint () const;
70 ACE_STATIC_SVC_DECLARE (TAO_UIOP_Protocol_Factory
)
71 ACE_FACTORY_DECLARE (TAO_Strategies
, TAO_UIOP_Protocol_Factory
)
73 TAO_END_VERSIONED_NAMESPACE_DECL
75 # endif /* TAO_HAS_UIOP == 1 */
77 #include /**/ "ace/post.h"
79 #endif /* TAO_UIOP_FACTORY_H */