From bd9ab0c29bec550950dfdbd6cf6613c167da312f Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 27 Jun 2013 13:27:28 +0000 Subject: [PATCH] 0021684: EDF 2221 : Display the arguments and the name of the operations Print a warning of not implemented GEOM_BaseDriver::GetCreationInformation() --- src/GEOM_I/GEOM_Object_i.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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(...) { -- 2.39.2