X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGraphBase%2FDataFlowBase_DataPort.hxx;h=d15f029a00f70909786984039d793ec712f4bd58;hb=ea7f29f75031ca13b9454f5e9ac73730f1f584eb;hp=08ed859bb759bc4089aa5dddecfdafc15c914445;hpb=c46f174ce52809de76f2a22795db89d229aedc7e;p=modules%2Fsuperv.git diff --git a/src/GraphBase/DataFlowBase_DataPort.hxx b/src/GraphBase/DataFlowBase_DataPort.hxx index 08ed859..d15f029 100644 --- a/src/GraphBase/DataFlowBase_DataPort.hxx +++ b/src/GraphBase/DataFlowBase_DataPort.hxx @@ -35,38 +35,47 @@ namespace GraphBase { class DataPort : public Port { - CORBA::Any const * _InitialValue ; - CORBA::Any const * _theValue ; - CORBA::Any const * * _Value ; - SUPERV::GraphState _State ; - bool _Done ; - pthread_mutex_t _MutexWait ; + private: + + CORBA::Any const * _InitialValue ; + CORBA::Any const * _theValue ; + CORBA::Any const * * _Value ; +//JR 08.03.2005 : the fields (and corresponding methods) _PortState and _Done are redundant +// probably. That should be clarified when I shall have time enough + SUPERV::GraphState _PortState ; + bool _Done ; + pthread_mutex_t _MutexWait ; + + void Value( const CORBA::Any * aValue ) ; public : - DataPort( const char *const * NodeName , - const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) ; - virtual ~DataPort() ; + DataPort() ; + DataPort( const char *const * NodeName , + const SALOME_ModuleCatalog::ServicesParameter aserviceParameter , + const SUPERV::KindOfPort aKind = SUPERV::ServiceParameter , + const SALOME_ModuleCatalog::DataStreamDependency aDependency = SALOME_ModuleCatalog::DATASTREAM_UNDEFINED ) ; + virtual ~DataPort() ; - void InitialValues(CORBA::Any aValue ) ; - void Value (const CORBA::Any & aValue ) ; - void Value( const CORBA::Any * aValue ) ; - void Value( const CORBA::Any ** aValue ) ; - CORBA::Any const * Value() const ; - bool BoolValue() const ; - const CORBA::Any ** ValuePtr() const ; + void InitialValues(CORBA::Any aValue ) ; + void Value (const CORBA::Any & aValue ) ; +// void Value( const CORBA::Any * aValue ) ; +// void Value( const CORBA::Any ** aValue ) ; + CORBA::Any const * Value() const ; + bool BoolValue() const ; +// const CORBA::Any ** ValuePtr() const ; - void State( SUPERV::GraphState aState ) { - _State = aState ; } ; - SUPERV::GraphState State() { return _State ; } ; + void PortState( SUPERV::GraphState aPortState ) { + _PortState = aPortState ; } ; + SUPERV::GraphState PortState() { return _PortState ; } ; - void Done( bool aDone ) { -// cdebug << "ChgDone(.) " << NodeName() << " " << PortName() << " " -// << _Done << " -> " << aDone << endl ; - _Done = aDone ; } ; - const bool Done() const { return ( _Done ) ; } ; + void PortDone( bool aDone ) { +// cdebug << "ChgDone(.) " << NodeName() << " " << PortName() << " " +// << _Done << " -> " << aDone << endl ; + _Done = aDone ; } ; + const bool PortDone() const { return ( _Done ) ; } ; - void StringValue(ostream & f) const ; + void StringValue(ostream & f) const ; } ;