Public Member Functions

TAO_AV_SFP_Factory Class Reference

#include <sfp.h>

Inheritance diagram for TAO_AV_SFP_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO_AV_SFP_Factory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_AV_SFP_Factory (void)
virtual ~TAO_AV_SFP_Factory (void)
virtual int init (int argc, ACE_TCHAR *argv[])
virtual int match_protocol (const char *flow_string)
virtual TAO_AV_Protocol_Objectmake_protocol_object (TAO_FlowSpec_Entry *entry, TAO_Base_StreamEndPoint *endpoint, TAO_AV_Flow_Handler *handler, TAO_AV_Transport *transport)

Detailed Description

Definition at line 286 of file sfp.h.


Constructor & Destructor Documentation

TAO_AV_SFP_Factory::TAO_AV_SFP_Factory ( void   ) 

Definition at line 1225 of file sfp.cpp.

{
}

TAO_AV_SFP_Factory::~TAO_AV_SFP_Factory ( void   )  [virtual]

Definition at line 1229 of file sfp.cpp.

{
}


Member Function Documentation

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

Reimplemented from TAO_AV_Flow_Protocol_Factory.

TAO_AV_Protocol_Object * TAO_AV_SFP_Factory::make_protocol_object ( TAO_FlowSpec_Entry entry,
TAO_Base_StreamEndPoint endpoint,
TAO_AV_Flow_Handler handler,
TAO_AV_Transport transport 
) [virtual]

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 1249 of file sfp.cpp.

{
  TAO_AV_Protocol_Object *object = 0;
  TAO_AV_Callback *callback = 0;
  endpoint->get_callback (entry->flowname (),
                       callback);
  ACE_CString flow_string( entry->flow_protocol_str () );
  switch (entry->role ())
    {
    case TAO_FlowSpec_Entry::TAO_AV_PRODUCER:
      {
        ACE_NEW_RETURN (object,
                        TAO_SFP_Producer_Object (callback,
                                                 transport,
                                                 flow_string.c_str() ),
                        0);
      }
      break;
    case TAO_FlowSpec_Entry::TAO_AV_CONSUMER:
      {

        ACE_NEW_RETURN (object,
                        TAO_SFP_Consumer_Object (callback,
                                                 transport,
                                                 flow_string),
                        0);
        entry->flow_protocol_str( flow_string.c_str() );
      }
      break;
    case TAO_FlowSpec_Entry::TAO_AV_INVALID_ROLE:
      return 0;
    }
  callback->open (object,
                  handler);
  endpoint->set_protocol_object (entry->flowname (),
                                 object);
  return object;
}

int TAO_AV_SFP_Factory::match_protocol ( const char *  flow_string  )  [virtual]

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 1241 of file sfp.cpp.

{
  if (ACE_OS::strncasecmp (flow_string,"sfp",3) == 0)
    return 1;
  return 0;
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines