-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <TDataStd_Name.hxx>
#include <TDocStd_Owner.hxx>
-OCCT_IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver);
-
-//================================================================================
-/*!
- * Returns document id
- */
-//================================================================================
-int GEOM_BaseDriver::GetDocID() const
-{
- int docId = 0;
- if (!Label().IsNull()) {
- Handle(TDocStd_Document) aDoc = TDocStd_Owner::GetDocument(Label().Data());
- docId = GEOM_Engine::GetEngine()->GetDocID(aDoc);
- }
- return docId;
-}
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
//================================================================================
/*!
{
if ( funs->Length() > 1 )
(*this) << funs->Length() << " objects: ";
- for ( int i = 1; i <= funs->Length(); ++i )
+ int nb = Min( 100, funs->Length() ); // don't show huge lists
+ for ( int i = 1; i <= nb; ++i )
(*this) << funs->Value( i ) << " ";
}
return *this;