Salome HOME
Memory Leaks
[modules/superv.git] / src / GraphBase / DataFlowBase_DataPort.hxx
index 08ed859bb759bc4089aa5dddecfdafc15c914445..d15f029a00f70909786984039d793ec712f4bd58 100644 (file)
@@ -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 ;
 
   } ;