0021672: [CEA 565] Dump Study from script

+  //Retuns true if this function is the last one in the study
+  Standard_EXPORT bool IsLastFuntion();
This commit is contained in:
eap 2012-06-20 09:39:40 +00:00
parent 55e32b8599
commit a211d6f8bd
2 changed files with 20 additions and 0 deletions

View File

@ -137,6 +137,23 @@ GEOM_Function::GEOM_Function(const TDF_Label& theEntry, const Standard_GUID& the
aRoot->Append(aNode);
}
//================================================================================
/*!
* \brief Retuns true if this function is the last one in the study
*/
//================================================================================
bool GEOM_Function::IsLastFuntion()
{
bool isLast = false;
Handle(TDataStd_TreeNode) aNode;
if (_label.FindAttribute(GetFunctionTreeID(), aNode))
isLast = !aNode->HasNext();
return isLast;
}
//=============================================================================
/*!
* GetOwner

View File

@ -253,6 +253,9 @@ public:
//Returns true if the last method succided
Standard_EXPORT bool IsDone() { return _isDone; }
//Retuns true if this function is the last one in the study
Standard_EXPORT bool IsLastFuntion();
//Returns a sequence of the external dependencies of this function
Standard_EXPORT void GetDependency(TDF_LabelSequence& theSeq);