Public Member Functions | Protected Attributes

TAO_Base_StreamEndPoint Class Reference

#include <AVStreams_i.h>

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

List of all members.

Public Member Functions

 TAO_Base_StreamEndPoint (void)
virtual ~TAO_Base_StreamEndPoint (void)
virtual int handle_open (void)
 called when streamendpoint is instantiated
virtual int handle_close (void)
 called when streamendpoint is being destructed
virtual int handle_stop (const AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual int handle_start (const AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual int handle_destroy (const AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual CORBA::Boolean handle_preconnect (AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual CORBA::Boolean handle_postconnect (AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec)
 Application needs to define this.
virtual int get_callback (const char *flowname, TAO_AV_Callback *&callback)
virtual int get_control_callback (const char *flowname, TAO_AV_Callback *&callback)
virtual int set_protocol_object (const char *flowname, TAO_AV_Protocol_Object *object)
virtual void set_flow_handler (const char *flowname, TAO_AV_Flow_Handler *handler)
virtual void set_control_flow_handler (const char *flowname, TAO_AV_Flow_Handler *handler)
TAO_AV_QoSqos (void)
void protocol_object_set (void)
int is_protocol_object_set (void)

Protected Attributes

TAO_AV_QoS qos_
Flow_Handler_Map flow_handler_map_
Flow_Handler_Map control_flow_handler_map_
int protocol_object_set_

Detailed Description

Base class for the A/V StreamEndPoint class. this class is used to control the stream. It should be subclassed by applications that want to provide more control features.

Definition at line 384 of file AVStreams_i.h.


Constructor & Destructor Documentation

TAO_Base_StreamEndPoint::TAO_Base_StreamEndPoint ( void   ) 

Definition at line 1429 of file AVStreams_i.cpp.

TAO_Base_StreamEndPoint::~TAO_Base_StreamEndPoint ( void   )  [virtual]

Definition at line 1434 of file AVStreams_i.cpp.

{
}


Member Function Documentation

int TAO_Base_StreamEndPoint::get_callback ( const char *  flowname,
TAO_AV_Callback *&  callback 
) [virtual]

Definition at line 1515 of file AVStreams_i.cpp.

{
  return -1;
}

int TAO_Base_StreamEndPoint::get_control_callback ( const char *  flowname,
TAO_AV_Callback *&  callback 
) [virtual]

Definition at line 1522 of file AVStreams_i.cpp.

{
  return -1;
}

int TAO_Base_StreamEndPoint::handle_close ( void   )  [virtual]

called when streamendpoint is being destructed

Definition at line 1439 of file AVStreams_i.cpp.

{
  // This method should not be defined, but EGCS complains endlessly
  // about it.
  return -1;
}

CORBA::Boolean TAO_Base_StreamEndPoint::handle_connection_requested ( AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1489 of file AVStreams_i.cpp.

{
  return 1;
}

int TAO_Base_StreamEndPoint::handle_destroy ( const AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1465 of file AVStreams_i.cpp.

{
  return 0;
}

int TAO_Base_StreamEndPoint::handle_open ( void   )  [virtual]

called when streamendpoint is instantiated

Definition at line 1447 of file AVStreams_i.cpp.

{
  return 0;
}

CORBA::Boolean TAO_Base_StreamEndPoint::handle_postconnect ( AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1479 of file AVStreams_i.cpp.

{

  while (!this->is_protocol_object_set ())
    TAO_AV_CORE::instance ()->orb ()->perform_work ();
  return 1;
}

CORBA::Boolean TAO_Base_StreamEndPoint::handle_preconnect ( AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1472 of file AVStreams_i.cpp.

{
  return 1;
}

int TAO_Base_StreamEndPoint::handle_start ( const AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1459 of file AVStreams_i.cpp.

{
  return 0;
}

int TAO_Base_StreamEndPoint::handle_stop ( const AVStreams::flowSpec the_spec  )  [virtual]

Application needs to define this.

Definition at line 1453 of file AVStreams_i.cpp.

{
  return 0;
}

int TAO_Base_StreamEndPoint::is_protocol_object_set ( void   ) 

Definition at line 1509 of file AVStreams_i.cpp.

{
  return this->protocol_object_set_;
}

void TAO_Base_StreamEndPoint::protocol_object_set ( void   ) 

Definition at line 1502 of file AVStreams_i.cpp.

{
  this->protocol_object_set_ = 1;
}

TAO_AV_QoS & TAO_Base_StreamEndPoint::qos ( void   ) 

Definition at line 9 of file AVStreams_i.inl.

{
  return this->qos_;
}

void TAO_Base_StreamEndPoint::set_control_flow_handler ( const char *  flowname,
TAO_AV_Flow_Handler handler 
) [virtual]

Definition at line 1543 of file AVStreams_i.cpp.

{
  ACE_CString flow_name_key (flowname);
  if (this->control_flow_handler_map_.bind (flow_name_key, handler) != 0)
    ACE_ERROR ((LM_ERROR,
                "Error in storing control flow handler\n"));
}

void TAO_Base_StreamEndPoint::set_flow_handler ( const char *  flowname,
TAO_AV_Flow_Handler handler 
) [virtual]

Reimplemented in TAO_FlowEndPoint.

Definition at line 1529 of file AVStreams_i.cpp.

{
  if(TAO_debug_level > 1)
  {
     ACE_DEBUG ((LM_DEBUG, "(%N,%l) TAO_Base_StreamEndPoint::set_flow_handler(), flowname: %s\n", flowname));
  }
  ACE_CString flow_name_key (flowname);
  if (this->flow_handler_map_.bind (flow_name_key, handler) != 0)
    ACE_ERROR ((LM_ERROR,
                "Error in storing flow handler\n"));
}

int TAO_Base_StreamEndPoint::set_protocol_object ( const char *  flowname,
TAO_AV_Protocol_Object object 
) [virtual]

Reimplemented in TAO_FlowEndPoint.

Definition at line 1495 of file AVStreams_i.cpp.

{
  return -1;
}


Member Data Documentation

Definition at line 441 of file AVStreams_i.h.

Definition at line 440 of file AVStreams_i.h.

Definition at line 442 of file AVStreams_i.h.

Definition at line 439 of file AVStreams_i.h.


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