TAO_DIOP_Protocol_Factory Class Reference

#include <DIOP_Factory.h>

Inheritance diagram for TAO_DIOP_Protocol_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_DIOP_Protocol_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_DIOP_Protocol_Factory (void)
 Constructor.
virtual ~TAO_DIOP_Protocol_Factory (void)
 Destructor.
virtual int init (int argc, ACE_TCHAR *argv[])
 Dynamic linking hook.
virtual int match_prefix (const ACE_CString &prefix)
 Verify prefix is a match.
virtual const char * prefix (void) const
 Returns the prefix used by the protocol.
virtual char options_delimiter (void) const
Protocol factory methods
Check Protocol_Factory.h for a description of these methods.

virtual TAO_Acceptormake_acceptor (void)
virtual TAO_Connectormake_connector (void)
virtual int requires_explicit_endpoint (void) const

Detailed Description

Definition at line 36 of file DIOP_Factory.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_DIOP_Protocol_Factory::TAO_DIOP_Protocol_Factory ( void   ) 

Constructor.

Definition at line 22 of file DIOP_Factory.cpp.

00023   :  TAO_Protocol_Factory (TAO_TAG_DIOP_PROFILE)
00024 {
00025 }

TAO_DIOP_Protocol_Factory::~TAO_DIOP_Protocol_Factory ( void   )  [virtual]

Destructor.

Definition at line 27 of file DIOP_Factory.cpp.

00028 {
00029 }


Member Function Documentation

int TAO_DIOP_Protocol_Factory::init ( int  argc,
ACE_TCHAR argv[] 
) [virtual]

Dynamic linking hook.

Implements TAO_Protocol_Factory.

Definition at line 63 of file DIOP_Factory.cpp.

00064 {
00065   return 0;
00066 }

TAO_Acceptor * TAO_DIOP_Protocol_Factory::make_acceptor ( void   )  [virtual]

Implements TAO_Protocol_Factory.

Definition at line 51 of file DIOP_Factory.cpp.

References ACE_NEW_RETURN.

00052 {
00053   TAO_Acceptor *acceptor = 0;
00054 
00055   ACE_NEW_RETURN (acceptor,
00056                   TAO_DIOP_Acceptor,
00057                   0);
00058 
00059   return acceptor;
00060 }

TAO_Connector * TAO_DIOP_Protocol_Factory::make_connector ( void   )  [virtual]

Implements TAO_Protocol_Factory.

Definition at line 69 of file DIOP_Factory.cpp.

References ACE_NEW_RETURN.

00070 {
00071   TAO_Connector *connector = 0;
00072 
00073   ACE_NEW_RETURN (connector,
00074                   TAO_DIOP_Connector,
00075                   0);
00076   return connector;
00077 }

int TAO_DIOP_Protocol_Factory::match_prefix ( const ACE_CString prefix  )  [virtual]

Verify prefix is a match.

Implements TAO_Protocol_Factory.

Definition at line 32 of file DIOP_Factory.cpp.

References prefix(), ACE_OS::strcasecmp(), and the_prefix.

00033 {
00034   // Check for the proper prefix for this protocol.
00035   return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
00036 }

char TAO_DIOP_Protocol_Factory::options_delimiter ( void   )  const [virtual]

Return the character used to mark where an endpoint ends and where its options begin.

Implements TAO_Protocol_Factory.

Definition at line 45 of file DIOP_Factory.cpp.

00046 {
00047   return '/';
00048 }

const char * TAO_DIOP_Protocol_Factory::prefix ( void   )  const [virtual]

Returns the prefix used by the protocol.

Implements TAO_Protocol_Factory.

Definition at line 39 of file DIOP_Factory.cpp.

References the_prefix.

Referenced by match_prefix().

00040 {
00041   return ::the_prefix;
00042 }

int TAO_DIOP_Protocol_Factory::requires_explicit_endpoint ( void   )  const [virtual]

Implements TAO_Protocol_Factory.

Definition at line 80 of file DIOP_Factory.cpp.

00081 {
00082   // This switch is actually meant to distinguish between pluggable
00083   // protocols which are able to clean up their endpoints and such
00084   // that aren't. E.g. UIOP will leave files, it therefore returns 1,
00085   // IIOP cleans up its endpoint resources, which therefore return 0.
00086   //
00087   // DIOP does clean up endpoint resources, but as DIOP is only
00088   // suitable for special environments, e.g. it supports only one-ways,
00089   // it returns 1 for an other reason than resource clean-up.
00090 
00091   return 1;
00092 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:47:31 2010 for TAO_Strategies by  doxygen 1.4.7