mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 17:50:33 +05:00
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:
parent
55e32b8599
commit
a211d6f8bd
@ -137,6 +137,23 @@ GEOM_Function::GEOM_Function(const TDF_Label& theEntry, const Standard_GUID& the
|
|||||||
aRoot->Append(aNode);
|
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
|
* GetOwner
|
||||||
|
@ -253,6 +253,9 @@ public:
|
|||||||
//Returns true if the last method succided
|
//Returns true if the last method succided
|
||||||
Standard_EXPORT bool IsDone() { return _isDone; }
|
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
|
//Returns a sequence of the external dependencies of this function
|
||||||
Standard_EXPORT void GetDependency(TDF_LabelSequence& theSeq);
|
Standard_EXPORT void GetDependency(TDF_LabelSequence& theSeq);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user