#include "GEOM_Function.hxx"
#include "GEOM_Object.hxx"
+#include "GEOM_Engine.hxx"
#include <TColStd_HArray1OfInteger.hxx>
#include <TDataStd_Name.hxx>
+#include <TDocStd_Owner.hxx>
IMPLEMENT_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver);
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;
+}
//================================================================================
/*!