Version: 6.3.1
Public Member Functions | Protected Attributes | Private Attributes

data_short_port_provides Class Reference

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

#include <data_short_port_provides.hxx>

Inheritance diagram for data_short_port_provides:
Inheritance graph
Collaboration diagram for data_short_port_provides:
Collaboration graph

Public Member Functions

 data_short_port_provides ()
virtual ~data_short_port_provides ()
virtual void put (CORBA::Short data)
virtual CORBA::Short get ()
virtual Ports::Port_ptr get_port_ref ()
virtual void provides_port_changed (int connection_nbr, const Engines::DSC::Message message)
virtual Ports::PortProperties_ptr get_port_properties ()

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

Constructor & Destructor Documentation

data_short_port_provides::data_short_port_provides ( )
data_short_port_provides::~data_short_port_provides ( ) [virtual]

Member Function Documentation

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.

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::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 
) [inline, virtual, inherited]

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.
Ports::PortProperties_ptr base_port::get_port_properties ( ) [virtual, inherited]

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

Returns:
property's CORBA reference.

References base_port::default_properties.


Field Documentation

CORBA::Short data_short_port_provides::_val [private]
pthread_mutex_t* data_short_port_provides::short_mutex [private]
pthread_cond_t* data_short_port_provides::short_condition [private]
pthread_mutex_t* data_short_port_provides::short_mutex_cp [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS