]> SALOME platform Git repositories - modules/superv.git/blob - src/GraphBase/DataFlowBase_DataPort.hxx
Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/superv.git] / src / GraphBase / DataFlowBase_DataPort.hxx
1 //=============================================================================
2 // File      : DataFlowBase_DataPort.hxx
3 // Created   : 2002
4 // Author    : Jean Rahuel, CEA
5 // Project   : SALOME
6 // $Header:
7 //=============================================================================
8
9 #ifndef _DATAFLOWBASE_DATAPORT_HXX
10 #define _DATAFLOWBASE_DATAPORT_HXX
11
12 #include "DataFlowBase_Port.hxx"
13
14 namespace GraphBase {
15
16   class DataPort : public Port {
17
18     CORBA::Any const *    _InitialValue ;
19     CORBA::Any const *    _theValue ;
20     CORBA::Any const * *  _Value ;
21     SUPERV::GraphState    _State ;
22     bool                  _Done ;
23
24     public :
25
26     DataPort( const char *const * NodeName  ,
27               const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) ;
28     virtual ~DataPort() ;
29
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 ;
37
38     void State( SUPERV::GraphState aState ) {
39          _State = aState ; } ;
40     SUPERV::GraphState State() { return _State ; } ;
41
42     void Done( bool aDone ) {
43 //         cdebug << "ChgDone(.) " << NodeName() << " " << PortName() << " "
44 //                << _Done << " -> " << aDone << endl ;
45          _Done = aDone ; } ;
46     const bool Done() const { return ( _Done ) ; } ;
47
48     void StringValue(ostream & f) const ;
49
50   } ;
51
52 } ;
53 #endif