mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-13 04:27:26 +05:00
0021684: EDF 2221 : Display the arguments and the name of the operations
Print a warning of not implemented GEOM_BaseDriver::GetCreationInformation()
This commit is contained in:
parent
833e0c922f
commit
bd9ab0c29b
@ -45,6 +45,10 @@
|
|||||||
#include <Standard_Failure.hxx>
|
#include <Standard_Failure.hxx>
|
||||||
#include <Standard_ErrorHandler.hxx>
|
#include <Standard_ErrorHandler.hxx>
|
||||||
|
|
||||||
|
#ifdef _DEBUG_
|
||||||
|
#include <typeinfo>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WNT
|
#ifdef WNT
|
||||||
#pragma warning( disable:4786 )
|
#pragma warning( disable:4786 )
|
||||||
#endif
|
#endif
|
||||||
@ -546,6 +550,20 @@ GEOM::CreationInformation* GEOM_Object_i::GetCreationInformation()
|
|||||||
info->params[i].value = params[i].value.c_str();
|
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(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user