Version: 9.15.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, const Engines::DSC::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()

data_short_port_provides::~data_short_port_provides ( )
virtual

Member Function Documentation

◆ get()

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.

Referenced by SALOME_PyNode.BigObjectOnDiskBase::__float__(), SALOME_PyNode.BigObjectOnDiskListElement::__getitem__(), SALOME_PyNode.BigObjectOnDiskBase::__int__(), SALOME_PyNode.BigObjectOnDiskListElement::__len__(), SALOME_PyNode.BigObjectOnDiskBase::__str__(), KERNEL_PY.salome_notebook.NoteBook::check(), SALOME_ContainerHelper.ScriptInfoDeco::code(), SALOME_ContainerHelper.ScriptExecInfoDeco::CPUMemDuringExec(), SALOME_ContainerHelper.ScriptExecInfoDeco::endExecTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::endInputTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::endOutputTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::execTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::freestyle(), SALOME_ContainerHelper.ScriptExecInfoDeco::fullExecTime(), KERNEL_PY.salome_notebook.NoteBook::get(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputHDDMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSize(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSizeRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSpeed(), SALOME_ContainerHelper.ScriptExecInfoDeco::inputReadHDDSpeedRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::measureTimeResolution(), SALOME_ContainerHelper.ScriptInfoDeco::nodeName(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputHDDMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputMem(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSize(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSizeRepr(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSpeed(), SALOME_ContainerHelper.ScriptExecInfoDeco::outputWriteHDDSpeedRepr(), KERNEL_PY.salome_notebook.NoteBook::setAs(), SALOME_ContainerHelper.ScriptExecInfoDeco::startExecTime(), SALOME_ContainerHelper.ScriptExecInfoDeco::startInputTime(), and SALOME_ContainerHelper.ScriptExecInfoDeco::startOutputTime().

◆ get_port_properties()

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.

◆ get_port_ref()

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.

◆ provides_port_changed()

virtual void provides_port::provides_port_changed ( int  ,
const Engines::DSC::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.

◆ put()

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

◆ _val

CORBA::Short data_short_port_provides::_val
private

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

◆ default_properties

PortProperties_i* base_port::default_properties
protectedinherited

◆ short_condition

pthread_cond_t* data_short_port_provides::short_condition
private

◆ short_condition_cp

pthread_cond_t* data_short_port_provides::short_condition_cp
private

◆ short_mutex

pthread_mutex_t* data_short_port_provides::short_mutex
private

◆ short_mutex_cp

pthread_mutex_t* data_short_port_provides::short_mutex_cp
private

◆ short_termine

bool data_short_port_provides::short_termine
private

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

◆ short_termine_cp

bool data_short_port_provides::short_termine_cp
private

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