Version: 8.3.0
data_short_port_provides Class Reference

This class a port that sends a CORBA short with the basic port policy. More...

#include <data_short_port_provides.hxx>

Inheritance diagram for data_short_port_provides:

Public Member Functions

 data_short_port_provides ()
 
virtual ~data_short_port_provides ()
 
virtual void put (CORBA::Short data)
 This method implements the CORBA method of the interface. More...
 
virtual CORBA::Short get ()
 This method is used by the component to get the last value received. More...
 
virtual Ports::Port_ptr get_port_ref ()
 This method gives the port CORBA reference. More...
 
virtual void provides_port_changed (int connection_nbr, const Engines::DSC::Message message)
 This method is the callback called by the component to inform the provides port of a new or a removed connection. More...
 
virtual Ports::PortProperties_ptr get_port_properties ()
 This is used to get the property object of the port. More...
 

Protected Attributes

PortProperties_idefault_properties
 

Private Attributes

CORBA::Short _val
 
pthread_mutex_t * short_mutex
 
pthread_cond_t * short_condition
 
bool short_termine
 
pthread_mutex_t * short_mutex_cp
 
pthread_cond_t * short_condition_cp
 
bool short_termine_cp
 

Detailed Description

This class a port that sends a CORBA short with the basic port policy.

Constructor & Destructor Documentation

data_short_port_provides::data_short_port_provides ( )
data_short_port_provides::~data_short_port_provides ( )
virtual

Member Function Documentation

CORBA::Short data_short_port_provides::get ( )
virtual

This method is used by the component to get the last value received.

Returns
the last value received (default 0).

References _val, short_condition, short_condition_cp, short_mutex, short_mutex_cp, short_termine, and short_termine_cp.

Ports::PortProperties_ptr base_port::get_port_properties ( )
virtualinherited

This is used to get the property object of the port.

Returns
property's CORBA reference.

References base_port::default_properties.

Ports::Port_ptr data_short_port_provides::get_port_ref ( )
virtual

This method gives the port CORBA reference.

Returns
port's CORBA reference.

Implements provides_port.

virtual void provides_port::provides_port_changed ( int  connection_nbr,
const Engines::DSC::Message  message 
)
virtualinherited

This method is the callback called by the component to inform the provides port of a new or a removed connection.

Parameters
connection_nbrcurrent connection number.
messagemessage associated with this connection.
void data_short_port_provides::put ( CORBA::Short  data)
virtual

This method implements the CORBA method of the interface.

See Also
Ports::Data_Short_Port::put

References _val, short_condition, short_condition_cp, short_mutex, short_mutex_cp, short_termine, and short_termine_cp.

Field Documentation

CORBA::Short data_short_port_provides::_val
private

Referenced by data_short_port_provides(), get(), and put().

PortProperties_i* base_port::default_properties
protectedinherited
pthread_cond_t* data_short_port_provides::short_condition
private
pthread_cond_t* data_short_port_provides::short_condition_cp
private
pthread_mutex_t* data_short_port_provides::short_mutex
private
pthread_mutex_t* data_short_port_provides::short_mutex_cp
private
bool data_short_port_provides::short_termine
private

Referenced by data_short_port_provides(), get(), and put().

bool data_short_port_provides::short_termine_cp
private

Referenced by data_short_port_provides(), get(), and put().