From: eap Date: Thu, 27 Jun 2013 13:27:28 +0000 (+0000) Subject: 0021684: EDF 2221 : Display the arguments and the name of the operations X-Git-Tag: BR_hydro_v_0_3_1~169 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd9ab0c29bec550950dfdbd6cf6613c167da312f;p=modules%2Fgeom.git 0021684: EDF 2221 : Display the arguments and the name of the operations Print a warning of not implemented GEOM_BaseDriver::GetCreationInformation() --- diff --git a/src/GEOM_I/GEOM_Object_i.cc b/src/GEOM_I/GEOM_Object_i.cc index 6b243bd59..2df3c45c6 100644 --- a/src/GEOM_I/GEOM_Object_i.cc +++ b/src/GEOM_I/GEOM_Object_i.cc @@ -45,6 +45,10 @@ #include #include +#ifdef _DEBUG_ +#include +#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(...) {