Salome HOME
Fix for bug PAL78476: when out-port is added to study, it must try to put its value...
[modules/superv.git] / src / GraphBase / DataFlowBase_ServicesParameter.hxx
index f20f4a75de2e35b14059b2e12461c6b56bd9c40d..de653a17049f3153b1840b528b8cfa5157fd8e70 100644 (file)
@@ -33,26 +33,31 @@ namespace GraphBase {
 
   class ServicesParameter : public Base {
 
-    SALOME_ModuleCatalog::ServicesParameter _ServicesParameter ;
+    private:
+
+      SALOME_ModuleCatalog::ServicesParameter _ServicesParameter ;
 
     public:   
 
-    ServicesParameter() {
-         cout << "ServicesParameter()" << endl ;
+      ServicesParameter() {
+         //cout << "ServicesParameter()" << endl ;
          _ServicesParameter.Parametername = (char *) NULL ;
          _ServicesParameter.Parametertype = (char *) NULL ;
     } ;
-    ServicesParameter( const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) {
-          _ServicesParameter = aserviceParameter ; } ;
-    virtual ~ServicesParameter() {
+      ServicesParameter( const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) {
+          _ServicesParameter.Parametertype = CORBA::string_dup( aserviceParameter.Parametertype ) ;
+          _ServicesParameter.Parametername = CORBA::string_dup( aserviceParameter.Parametername ) ; } ;
+      virtual ~ServicesParameter() {
 //            cout << "ServicesParameter::~ServicesParameter()" << endl ;
     } ;
-    const SALOME_ModuleCatalog::ServicesParameter & GetServicesParameter() const {
-           return _ServicesParameter ; } ;
-    const char * ServicesParameterName() const {
-          return _ServicesParameter.Parametername ; } ;
-    const char * ServicesParameterType() const {
-          return _ServicesParameter.Parametertype ; } ;
+      const SALOME_ModuleCatalog::ServicesParameter & GetServicesParameter() const {
+            return _ServicesParameter ; } ;
+      const char * ServicesParameterName() const {
+            return _ServicesParameter.Parametername ; } ;
+      const char * ServicesParameterType() const {
+            return _ServicesParameter.Parametertype ; } ;
+      void ServicesParameterType(char * aParametertype ) { 
+           _ServicesParameter.Parametertype = CORBA::string_dup( aParametertype ) ; } ;
 
   } ;