3 //=============================================================================
5 * @file SCIOP_Factory.h
7 * @author Jason Cohen, Lockheed Martin ATL <jcohen@atl.lmco.com>
8 * @author Keith O'Hara, Lockheed Martin ATL
10 //=============================================================================
13 #ifndef TAO_SCIOP_FACTORY_H
14 #define TAO_SCIOP_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_SCIOP == 1
25 #include "tao/Strategies/strategies_export.h"
26 #include "ace/Service_Config.h"
27 #include "tao/Protocol_Factory.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 class TAO_Strategies_Export TAO_SCIOP_Protocol_Factory
35 : public TAO_Protocol_Factory
38 TAO_SCIOP_Protocol_Factory ();
39 virtual ~TAO_SCIOP_Protocol_Factory () = default;
41 // = Service Configurator hooks.
42 /// Dynamic linking hook
43 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
45 /// Verify prefix is a match
46 virtual int match_prefix (const ACE_CString
&prefix
);
48 /// Returns the prefix used by the protocol.
49 virtual const char *prefix () const;
51 /// Return the character used to mark where an endpoint ends and
52 /// where its options begin.
53 virtual char options_delimiter () const;
55 // = Check Protocol_Factory.h for a description of these methods.
56 virtual TAO_Acceptor
*make_acceptor ();
57 virtual TAO_Connector
*make_connector ();
58 virtual int requires_explicit_endpoint () const;
62 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Strategies
, TAO_SCIOP_Protocol_Factory
)
63 ACE_FACTORY_DECLARE (TAO_Strategies
, TAO_SCIOP_Protocol_Factory
)
65 TAO_END_VERSIONED_NAMESPACE_DECL
67 #endif /* TAO_HAS_SCIOP == 1 */
69 #include /**/ "ace/post.h"
70 #endif /* TAO_SCIOP_FACTORY_H */