Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tao / Strategies / UIOP_Factory.h
blob3d0535e5f6ba34641354891a2ad1d5b9b2440d96
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file UIOP_Factory.h
7 * @author Fred Kuhns <fredk@cs.wustl.edu>Ossama Othman <othman@cs.wustl.edu>
8 */
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)
20 # 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
31 class TAO_Acceptor;
32 class TAO_Connector;
34 class TAO_Strategies_Export TAO_UIOP_Protocol_Factory : public TAO_Protocol_Factory
36 public:
37 /// Constructor.
38 TAO_UIOP_Protocol_Factory ();
40 /// Destructor.
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;
57 /**
58 * @name Protocol factory methods
60 * Check Protocol_Factory.h for a description of these methods.
62 //@{
63 virtual TAO_Acceptor *make_acceptor ();
64 virtual TAO_Connector *make_connector ();
65 virtual int requires_explicit_endpoint () const;
66 //@}
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 */