//
#include <Model_Objects.h>
+
+#include <Basics_OCCTVersion.hxx>
+
#include <Model_Data.h>
#include <Model_Document.h>
#include <Model_Events.h>
#include <TDataStd_HLabelArray1.hxx>
#include <TDF_Reference.hxx>
#include <TDF_ChildIDIterator.hxx>
-#include <TDF_LabelMapHasher.hxx>
#include <TDF_LabelMap.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>
+#if OCC_VERSION_LARGE < 0x07080000
+
+#include <TDF_LabelMapHasher.hxx>
// for TDF_Label map usage
static Standard_Integer HashCode(const TDF_Label& theLab, const Standard_Integer theUpper);
static Standard_Boolean IsEqual(const TDF_Label& theLab1, const TDF_Label& theLab2);
+#endif
+
int kUNDEFINED_FEATURE_INDEX = -1;
static const std::string& groupNameFoldering(const std::string& theGroupID,
int aRefIndex = aRefs->Lower();
for(; aRefIndex <= aRefs->Upper(); ++aRefIndex) { // iterate all existing features
TDF_Label aCurLabel = aRefs->Value(aRefIndex);
- if (IsEqual(aCurLabel, aFirstFeatureLabel))
+ if (aCurLabel.IsEqual(aFirstFeatureLabel))
break; // no need to continue searching
// searching the folder below, just continue to search last feature from the list
// because the folder may end by the feature which is
// neither a sub-feature nor a feature in history.
if (!aLastFeatureInFolder.IsNull()) {
- if (IsEqual(aCurLabel, aLastFeatureInFolder))
+ if (aCurLabel.IsEqual(aLastFeatureInFolder))
aLastFeatureInFolder.Nullify(); // the last feature in the folder is achieved
continue;
}
return FeaturePtr(); // invalid
}
+#if OCC_VERSION_LARGE < 0x07080000
Standard_Integer HashCode(const TDF_Label& theLab, const Standard_Integer theUpper)
{
return TDF_LabelMapHasher::HashCode(theLab, theUpper);
{
return TDF_LabelMapHasher::IsEqual(theLab1, theLab2);
}
+#endif