3 //=============================================================================
5 * @file COIOP_Factory.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
12 #ifndef TAO_COIOP_FACTORY_H
13 #define TAO_COIOP_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 defined (TAO_HAS_COIOP) && (TAO_HAS_COIOP != 0)
25 #include "tao/Strategies/strategies_export.h"
26 #include "tao/Protocol_Factory.h"
27 #include "ace/Service_Config.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 class TAO_Strategies_Export TAO_COIOP_Protocol_Factory
35 : public TAO_Protocol_Factory
39 TAO_COIOP_Protocol_Factory ();
42 virtual ~TAO_COIOP_Protocol_Factory () = default;
44 // = Service Configurator hooks.
45 /// Dynamic linking hook
46 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
48 /// Verify prefix is a match
49 virtual int match_prefix (const ACE_CString
&prefix
);
51 /// Returns the prefix used by the protocol.
52 virtual const char *prefix () const;
54 /// Return the character used to mark where an endpoint ends and
55 /// where its options begin.
56 virtual char options_delimiter () const;
59 * @name Protocol factory methods
61 * Check Protocol_Factory.h for a description of these methods.
64 virtual TAO_Acceptor
*make_acceptor ();
65 virtual TAO_Connector
*make_connector ();
66 virtual int requires_explicit_endpoint () const;
71 ACE_STATIC_SVC_DECLARE (TAO_COIOP_Protocol_Factory
)
72 ACE_FACTORY_DECLARE (TAO_Strategies
, TAO_COIOP_Protocol_Factory
)
74 TAO_END_VERSIONED_NAMESPACE_DECL
76 #endif /* TAO_HAS_COIOP && TAO_HAS_COIOP != 0 */
78 #include /**/ "ace/post.h"
80 #endif /* TAO_COIOP_FACTORY_H */