-// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#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;
+ std::cout << std::endl << std::endl << std::endl << "Warning: " << std::endl << "Dear developer!!!" << std::endl
+ << " Consider implementing "
+ << typeid(*(driver.operator->())).name() << "::GetCreationInformation() " << std::endl
+ << " for the case of operation which has created '" << GetName() << "' object" << std::endl
+ << "PLEEEEEEEASE" << std::endl
+ << "\tPLEEEEEEEASE" << std::endl
+ << "\t\tPLEEEEEEEASE" << std::endl
+ << "\t\t\tPLEEEEEEEASE" << std::endl
+ << "\t\t\t\tPLEEEEEEEASE" << std::endl;
}
#endif
}
catch(...)
{
#ifdef _DEBUG_
- cout << "Ecxeption in GEOM_BaseObject_i::GetCreationInformation()" << endl;
+ std::cout << "Ecxeption in GEOM_BaseObject_i::GetCreationInformation()" << std::endl;
#endif
}
}
return info._retn();
}
+
+//================================================================================
+/*!
+ * \brief Return the engine creating this object
+ */
+//================================================================================
+
+GEOM::GEOM_Gen_ptr GEOM_BaseObject_i::GetGen()
+{
+ return GEOM::GEOM_Gen::_duplicate( _engine );
+}