1 //=============================================================================
2 // File : DataFlowBase_DataPort.hxx
4 // Author : Jean Rahuel, CEA
7 //=============================================================================
9 #ifndef _DATAFLOWBASE_DATAPORT_HXX
10 #define _DATAFLOWBASE_DATAPORT_HXX
12 #include "DataFlowBase_Port.hxx"
16 class DataPort : public Port {
18 CORBA::Any const * _InitialValue ;
19 CORBA::Any const * _theValue ;
20 CORBA::Any const * * _Value ;
21 SUPERV::GraphState _State ;
26 DataPort( const char *const * NodeName ,
27 const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) ;
30 void InitialValues(CORBA::Any aValue ) ;
31 void Value (const CORBA::Any & aValue ) ;
32 void Value( const CORBA::Any * aValue ) ;
33 void Value( const CORBA::Any ** aValue ) ;
34 CORBA::Any const * Value() const ;
35 bool BoolValue() const ;
36 const CORBA::Any ** ValuePtr() const ;
38 void State( SUPERV::GraphState aState ) {
40 SUPERV::GraphState State() { return _State ; } ;
42 void Done( bool aDone ) {
43 // cdebug << "ChgDone(.) " << NodeName() << " " << PortName() << " "
44 // << _Done << " -> " << aDone << endl ;
46 const bool Done() const { return ( _Done ) ; } ;
48 void StringValue(ostream & f) const ;