]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Use MESSAGE instead of cout
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 5 Jun 2024 12:02:19 +0000 (14:02 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 5 Jun 2024 12:02:19 +0000 (14:02 +0200)
src/HYBRIDPlugin/HYBRIDPlugin_Hypothesis.cxx
src/HYBRIDPlugin/MG_HYBRID_API.cxx

index 5deb73accb4b964147e46e36b1c3ecb1c3c75ec5..98009ed853d38cbcb2d273797757cb57ef94eb71 100644 (file)
@@ -2267,7 +2267,7 @@ std::string HYBRIDPlugin_Hypothesis::GetOptionValue(const std::string& optionNam
     if (op_val == _customOption2value.end())
     {
       std::string msg = "Unknown MG-Hybrid option: <" + optionName + ">";
-      std::cout << msg << std::endl;
+      MESSAGE(msg);
       throw std::invalid_argument(msg);
     }
   }
@@ -2280,7 +2280,7 @@ std::string HYBRIDPlugin_Hypothesis::GetOptionValue(const std::string& optionNam
     if (op_val != _defaultOptionValues.end())
       val = op_val->second;
   }
-  std::cout << "GetOptionValue " << optionName << " = " << val << std::endl;
+  MESSAGE("GetOptionValue " << optionName << " = " << val);
   return val;
 }
 
index 38c778a011aebd3f956d91c1c12ff5f83f8f33ca..41124a877a2c3707b2b0bd187893dcf5af612f9a 100644 (file)
@@ -126,7 +126,7 @@ struct MG_HYBRID_API::LibData
   bool SetParam( const std::string& param, const std::string& value )
   {
     status_t ret = hybrid_set_param( _session, param.c_str(), value.c_str() );
-    std::cout << param << " = " << value << std::endl;
+    MESSAGE(param << " = " << value);
     return ( ret == STATUS_OK );
   }
 
@@ -153,21 +153,21 @@ struct MG_HYBRID_API::LibData
       if ( param=="boundary_layer_imprinting_tags" )
       {
         ret = hybrid_set_boundary_layer_imprinting_tag(_session, tag);
-        std::cout << "imprinting_tag " << tag << std::endl;
+        MESSAGE("imprinting " << tag);
       }
       else if ( param=="boundary_layer_snapping_tags" )
       {
         ret = hybrid_set_boundary_layer_snapping_tag(_session, tag);
-        std::cout << "snapping_tag " << tag << std::endl;
+        MESSAGE("snapping " << tag);
       }
       else if ( param=="boundary_layer_surface_tags" )
       {
         ret = hybrid_set_initial_height_on_surface_tag(_session, tag, stod(size));
-        std::cout << "surface_tag: " << tag << " , hegith: " << stod(size) << std::endl;
+        MESSAGE("height " << tag << " = " << stod(size));
       }
       if ( ret != STATUS_OK )
       {
-        std::cout << "PBBBBBBBBBBBBBBBBBBBBBB STATUS not OK ";
+        MESSAGE("PBBBBBBBBBBBBBBBBBBBBBB STATUS not OK ");
         return false;
       }
     }