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

Private Attributes

int major_
int minor_

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.

References TAO_DEF_GIOP_MAJOR, TAO_DEF_GIOP_MINOR, and TAO_TAG_DIOP_PROFILE.

00023   :  TAO_Protocol_Factory (TAO_TAG_DIOP_PROFILE),
00024      major_ (TAO_DEF_GIOP_MAJOR),
00025      minor_ (TAO_DEF_GIOP_MINOR)
00026 {
00027 }

TAO_DIOP_Protocol_Factory::~TAO_DIOP_Protocol_Factory void   )  [virtual]
 

Destructor.

Definition at line 29 of file DIOP_Factory.cpp.

00030 {
00031 }


Member Function Documentation

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

Dynamic linking hook.

Reimplemented from TAO_Protocol_Factory.

Definition at line 65 of file DIOP_Factory.cpp.

00067 {
00068   return 0;
00069 }

TAO_Acceptor * TAO_DIOP_Protocol_Factory::make_acceptor void   )  [virtual]
 

Reimplemented from TAO_Protocol_Factory.

Definition at line 53 of file DIOP_Factory.cpp.

References ACE_NEW_RETURN.

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

TAO_Connector * TAO_DIOP_Protocol_Factory::make_connector void   )  [virtual]
 

Reimplemented from TAO_Protocol_Factory.

Definition at line 72 of file DIOP_Factory.cpp.

References ACE_NEW_RETURN.

00073 {
00074   TAO_Connector *connector = 0;
00075 
00076   ACE_NEW_RETURN (connector,
00077                   TAO_DIOP_Connector,
00078                   0);
00079   return connector;
00080 }

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

Verify prefix is a match.

Reimplemented from TAO_Protocol_Factory.

Definition at line 34 of file DIOP_Factory.cpp.

References ACE_OS::strcasecmp().

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

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.

Reimplemented from TAO_Protocol_Factory.

Definition at line 47 of file DIOP_Factory.cpp.

00048 {
00049   return '/';
00050 }

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

Returns the prefix used by the protocol.

Reimplemented from TAO_Protocol_Factory.

Definition at line 41 of file DIOP_Factory.cpp.

00042 {
00043   return ::the_prefix;
00044 }

int TAO_DIOP_Protocol_Factory::requires_explicit_endpoint void   )  const [virtual]
 

Implements TAO_Protocol_Factory.

Definition at line 83 of file DIOP_Factory.cpp.

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


Member Data Documentation

int TAO_DIOP_Protocol_Factory::major_ [private]
 

Changing the version number can be used to provide backwards compatibility with old clients.

Definition at line 74 of file DIOP_Factory.h.

int TAO_DIOP_Protocol_Factory::minor_ [private]
 

Definition at line 75 of file DIOP_Factory.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:41:12 2006 for TAO_Strategies by doxygen 1.3.6