TAO_UIPMC_Protocol_Factory Class Reference

#include <UIPMC_Factory.h>

Inheritance diagram for TAO_UIPMC_Protocol_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_UIPMC_Protocol_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_UIPMC_Protocol_Factory (void)
virtual ~TAO_UIPMC_Protocol_Factory (void)
virtual int init (int argc, char *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
virtual TAO_Acceptormake_acceptor (void)
virtual TAO_Connectormake_connector (void)
virtual int requires_explicit_endpoint (void) const

Private Attributes

int major_
int minor_

Detailed Description

Definition at line 33 of file UIPMC_Factory.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_UIPMC_Protocol_Factory::TAO_UIPMC_Protocol_Factory ( void   ) 

Definition at line 17 of file UIPMC_Factory.cpp.

00018   :  TAO_Protocol_Factory (IOP::TAG_UIPMC),
00019      major_ (TAO_DEF_GIOP_MAJOR),
00020      minor_ (TAO_DEF_GIOP_MINOR)
00021 {
00022 }

TAO_UIPMC_Protocol_Factory::~TAO_UIPMC_Protocol_Factory ( void   )  [virtual]

Definition at line 24 of file UIPMC_Factory.cpp.

00025 {
00026 }


Member Function Documentation

int TAO_UIPMC_Protocol_Factory::init ( int  argc,
char *  argv[] 
) [virtual]

Dynamic linking hook.

Implements TAO_Protocol_Factory.

Definition at line 60 of file UIPMC_Factory.cpp.

00062 {
00063   return 0;
00064 }

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

Implements TAO_Protocol_Factory.

Definition at line 48 of file UIPMC_Factory.cpp.

References ACE_NEW_RETURN.

00049 {
00050   TAO_Acceptor *acceptor = 0;
00051 
00052   ACE_NEW_RETURN (acceptor,
00053                   TAO_UIPMC_Acceptor,
00054                   0);
00055 
00056   return acceptor;
00057 }

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

Implements TAO_Protocol_Factory.

Definition at line 67 of file UIPMC_Factory.cpp.

References ACE_NEW_RETURN.

00068 {
00069   TAO_Connector *connector = 0;
00070 
00071   ACE_NEW_RETURN (connector,
00072                   TAO_UIPMC_Connector,
00073                   0);
00074   return connector;
00075 }

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

Verify prefix is a match.

Implements TAO_Protocol_Factory.

Definition at line 29 of file UIPMC_Factory.cpp.

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

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

char TAO_UIPMC_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 42 of file UIPMC_Factory.cpp.

00043 {
00044   return '/';
00045 }

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

Returns the prefix used by the protocol.

Implements TAO_Protocol_Factory.

Definition at line 36 of file UIPMC_Factory.cpp.

References the_prefix.

Referenced by match_prefix().

00037 {
00038   return ::the_prefix;
00039 }

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

Implements TAO_Protocol_Factory.

Definition at line 78 of file UIPMC_Factory.cpp.

00079 {
00080   // A multicast endpoint can't be picked automatically in the
00081   // pluggable protocol framework.  It must be determined from
00082   // the UIPMC profile that has the group reference.  This information
00083   // is either specified by the user or generated by the
00084   // multicast group manager or other UIPMC profile generation
00085   // interface.
00086   return 1;
00087 }


Member Data Documentation

int TAO_UIPMC_Protocol_Factory::major_ [private]

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

Definition at line 61 of file UIPMC_Factory.h.

int TAO_UIPMC_Protocol_Factory::minor_ [private]

Definition at line 62 of file UIPMC_Factory.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:50:03 2010 for TAO_PortableGroup by  doxygen 1.4.7