Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / Strategies / SHMIOP_Factory.h
blobbbcd712bc2ef6c286edfcfabcfbf47c70b06f871
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file SHMIOP_Factory.h
7 * @author Nanbor Wang <nanbor@cs.wustl.edu>
8 */
9 //=============================================================================
11 #ifndef TAO_SHMIOP_FACTORY_H
12 #define TAO_SHMIOP_FACTORY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/orbconf.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
24 #include "tao/Protocol_Factory.h"
25 #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_SHMIOP_Protocol_Factory
35 : public TAO_Protocol_Factory
37 public:
38 /// Constructor.
39 TAO_SHMIOP_Protocol_Factory ();
41 /// Destructor.
42 virtual ~TAO_SHMIOP_Protocol_Factory ();
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;
58 /**
59 * @name Protocol factory methods
61 * Check Protocol_Factory.h for a description of these methods.
63 //@{
64 virtual TAO_Acceptor *make_acceptor ();
65 virtual TAO_Connector *make_connector ();
66 virtual int requires_explicit_endpoint () const;
67 //@}
69 /// Set mmap file prefix
70 void mmap_file_prefix (const ACE_TCHAR *prefix);
72 /// Get mmap file prefix
73 const ACE_TCHAR *mmap_file_prefix ();
75 private:
76 /// Specify the prefix (full path) for mmap files
77 ACE_TCHAR *mmap_prefix_;
79 /// Minimum bytes of the mmap files.
80 ACE_OFF_T min_bytes_;
84 ACE_STATIC_SVC_DECLARE (TAO_SHMIOP_Protocol_Factory)
85 ACE_FACTORY_DECLARE (TAO_Strategies, TAO_SHMIOP_Protocol_Factory)
87 TAO_END_VERSIONED_NAMESPACE_DECL
89 #endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
91 #include /**/ "ace/post.h"
93 #endif /* TAO_SHMIOP_FACTORY_H */