UIOP_Factory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // UIOP_Factory.h,v 1.7 2006/03/10 07:19:19 jtc Exp
00004 // ============================================================================
00005 //
00006 // = LIBRARY
00007 //   TAO
00008 //
00009 // = FILENAME
00010 //   UIOP_Factory.h
00011 //
00012 // = AUTHOR
00013 //   Fred Kuhns <fredk@cs.wustl.edu>
00014 //   Ossama Othman <othman@cs.wustl.edu>
00015 //
00016 // ============================================================================
00017 
00018 #ifndef TAO_UIOP_FACTORY_H
00019 #define TAO_UIOP_FACTORY_H
00020 
00021 #include /**/ "ace/pre.h"
00022 
00023 #include "tao/orbconf.h"
00024 
00025 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00026 # pragma once
00027 #endif /* ACE_LACKS_PRAGMA_ONCE */
00028 
00029 # if TAO_HAS_UIOP == 1
00030 
00031 #include "tao/Protocol_Factory.h"
00032 #include "tao/Strategies/strategies_export.h"
00033 #include "ace/Service_Config.h"
00034 
00035 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00036 
00037 class TAO_Acceptor;
00038 class TAO_Connector;
00039 
00040 class TAO_Strategies_Export TAO_UIOP_Protocol_Factory : public TAO_Protocol_Factory
00041 {
00042 public:
00043   /// Constructor.
00044   TAO_UIOP_Protocol_Factory (void);
00045 
00046   /// Destructor.
00047   virtual ~TAO_UIOP_Protocol_Factory (void);
00048 
00049   // = Service Configurator hooks.
00050   /// Dynamic linking hook
00051   virtual int init (int argc, ACE_TCHAR* argv[]);
00052 
00053   /// Verify prefix is a match
00054   virtual int match_prefix (const ACE_CString &prefix);
00055 
00056   /// Returns the prefix used by the protocol.
00057   virtual const char *prefix (void) const;
00058 
00059   /// Return the character used to mark where an endpoint ends and
00060   /// where its options begin.
00061   virtual char options_delimiter (void) const;
00062 
00063   /**
00064    * @name Protocol factory methods
00065    *
00066    * Check Protocol_Factory.h for a description of these methods.
00067    */
00068   //@{
00069   virtual TAO_Acceptor  *make_acceptor (void);
00070   virtual TAO_Connector *make_connector  (void);
00071   virtual int requires_explicit_endpoint (void) const;
00072   //@}
00073 
00074 private:
00075   int major_;
00076   int minor_;
00077   // Changing the version number can be used to provide backwards
00078   // compatibility with old clients.
00079 };
00080 
00081 TAO_END_VERSIONED_NAMESPACE_DECL
00082 
00083 ACE_STATIC_SVC_DECLARE (TAO_UIOP_Protocol_Factory)
00084 ACE_FACTORY_DECLARE (TAO_Strategies, TAO_UIOP_Protocol_Factory)
00085 
00086 # endif  /* TAO_HAS_UIOP == 1 */
00087 
00088 #include /**/ "ace/post.h"
00089 
00090 #endif /* TAO_UIOP_FACTORY_H */

Generated on Thu Nov 9 13:39:31 2006 for TAO_Strategies by doxygen 1.3.6