Salome HOME
bos #29469: Advanced geometry features: Detect type of shape
[modules/geom.git] / src / GEOM_I / GEOM_BaseObject_i.cc
index 83d45c672f1a523d55dab66fa3595ce07cd09987..0a9bd821734d0303bc77c7ac4de2b7a3ae89c92e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  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
@@ -288,22 +288,22 @@ GEOM::CreationInformationSeq* GEOM_BaseObject_i::GetCreationInformation()
 #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
       }
     }
@@ -312,3 +312,14 @@ GEOM::CreationInformationSeq* GEOM_BaseObject_i::GetCreationInformation()
 
   return info._retn();
 }
+
+//================================================================================
+/*!
+ * \brief Return the engine creating this object
+ */
+//================================================================================
+
+GEOM::GEOM_Gen_ptr GEOM_BaseObject_i::GetGen()
+{
+  return GEOM::GEOM_Gen::_duplicate( _engine );
+}