TAO_AV 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TAO_AV_Endpoint_Process_Strategy Class Referenceabstract

Process-based strategy for creating endpoints. Abstract base class. More...

#include <Endpoint_Strategy.h>

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

Public Member Functions

 TAO_AV_Endpoint_Process_Strategy (ACE_Process_Options *process_options)
 
virtual ~TAO_AV_Endpoint_Process_Strategy ()
 Destructor.
 
virtual int activate ()
 
- Public Member Functions inherited from TAO_AV_Endpoint_Strategy
 TAO_AV_Endpoint_Strategy ()
 Constructor.
 
virtual ~TAO_AV_Endpoint_Strategy ()
 Destructor.
 
virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev)
 Called by the MMDevice, when it needs to create an A type endpoint.
 
virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev)
 Called by the MMDevice, when it needs to create an B type endpoint.
 

Protected Member Functions

virtual int bind_to_naming_service ()
 Bind to the naming service.
 
virtual int get_stream_endpoint ()=0
 
virtual int get_vdev ()
 

Protected Attributes

CosNaming::NamingContext_var naming_context_
 Naming context.
 
ACE_Process_Optionsprocess_options_
 Name and arguments for the process to be created.
 
char host_ [MAXHOSTNAMELEN]
 name of this host used for resolving unique names.
 
pid_t pid_
 My child's process id.
 
- Protected Attributes inherited from TAO_AV_Endpoint_Strategy
AVStreams::StreamEndPoint_A_var stream_endpoint_a_
 The "A" stream endpoint.
 
AVStreams::StreamEndPoint_B_var stream_endpoint_b_
 The "B" stream endpoint.
 
AVStreams::VDev_var vdev_
 The vdev.
 

Detailed Description

Process-based strategy for creating endpoints. Abstract base class.

Constructor & Destructor Documentation

◆ TAO_AV_Endpoint_Process_Strategy()

TAO_AV_Endpoint_Process_Strategy::TAO_AV_Endpoint_Process_Strategy ( ACE_Process_Options * process_options)

Constructor. The process_options contain the name and arguments for the process to be created

◆ ~TAO_AV_Endpoint_Process_Strategy()

TAO_AV_Endpoint_Process_Strategy::~TAO_AV_Endpoint_Process_Strategy ( )
virtual

Destructor.

Member Function Documentation

◆ activate()

int TAO_AV_Endpoint_Process_Strategy::activate ( )
virtual

creates a new child process, and waits on a semaphore until the child process has finished creating the endpoints

◆ bind_to_naming_service()

int TAO_AV_Endpoint_Process_Strategy::bind_to_naming_service ( )
protectedvirtual

Bind to the naming service.

◆ get_stream_endpoint()

virtual int TAO_AV_Endpoint_Process_Strategy::get_stream_endpoint ( )
protectedpure virtual

Get the object reference for the newly created stream endpoint (which will be in the child process) Subclasses will define the functionality for this

Implemented in TAO_AV_Endpoint_Process_Strategy_A, and TAO_AV_Endpoint_Process_Strategy_B.

◆ get_vdev()

int TAO_AV_Endpoint_Process_Strategy::get_vdev ( )
protectedvirtual

Get the Vdev object reference for the newly created endpoint

Member Data Documentation

◆ host_

char TAO_AV_Endpoint_Process_Strategy::host_[MAXHOSTNAMELEN]
protected

name of this host used for resolving unique names.

◆ naming_context_

CosNaming::NamingContext_var TAO_AV_Endpoint_Process_Strategy::naming_context_
protected

Naming context.

◆ pid_

pid_t TAO_AV_Endpoint_Process_Strategy::pid_
protected

My child's process id.

◆ process_options_

ACE_Process_Options* TAO_AV_Endpoint_Process_Strategy::process_options_
protected

Name and arguments for the process to be created.


The documentation for this class was generated from the following files: