]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021684: EDF 2221 : Display the arguments and the name of the operations
authoreap <eap@opencascade.com>
Thu, 27 Jun 2013 13:27:28 +0000 (13:27 +0000)
committereap <eap@opencascade.com>
Thu, 27 Jun 2013 13:27:28 +0000 (13:27 +0000)
Print a warning of not implemented GEOM_BaseDriver::GetCreationInformation()

src/GEOM_I/GEOM_Object_i.cc

index 6b243bd592e589e16a84f652a2f1427da43a50fe..2df3c45c6ec37699f31a6c6f26cfe801a1075591 100644 (file)
 #include <Standard_Failure.hxx>
 #include <Standard_ErrorHandler.hxx>
 
+#ifdef _DEBUG_
+#include <typeinfo>
+#endif
+
 #ifdef WNT
 #pragma warning( disable:4786 )
 #endif
@@ -546,6 +550,20 @@ GEOM::CreationInformation* GEOM_Object_i::GetCreationInformation()
           info->params[i].value = params[i].value.c_str();
         }
       }
+#ifdef _DEBUG_
+      if ( operationName.empty() )
+      {
+        cout << endl << endl << endl << "Warning: " << endl << "Dear developer!!!" << endl
+             << "  Consider implementing "
+             <<    typeid(*(driver.operator->())).name() << "::GetCreationInformation() " << endl
+             << "  for the case of operation which has created '" << GetName() << "' object" << endl
+             << "PLEEEEEEEASE" << endl
+             << "\tPLEEEEEEEASE" << endl
+             << "\t\tPLEEEEEEEASE" << endl
+             << "\t\t\tPLEEEEEEEASE" << endl
+             << "\t\t\t\tPLEEEEEEEASE" << endl;
+      }
+#endif
     }
     catch(...)
     {