/usr/include/oce/TDF_ComparisonTool.hxx is in liboce-ocaf-lite-dev 0.17.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _TDF_ComparisonTool_HeaderFile
#define _TDF_ComparisonTool_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Handle_TDF_DataSet.hxx>
#include <Handle_TDF_RelocationTable.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TDF_DataSet;
class TDF_IDFilter;
class TDF_RelocationTable;
class TDF_Label;
//! This class provides services to compare sets of
//! information. The use of this tool can works after
//! a copy, acted by a CopyTool.
//!
//! * Compare(...) compares two DataSet and returns
//! the result.
//!
//! * SourceUnbound(...) builds the difference between
//! a relocation dictionnary and a source set of
//! information.
//!
//! * TargetUnbound(...) does the same between a
//! relocation dictionnary and a target set of
//! information.
//!
//! * Cut(aDataSet, anLabel) removes a set of
//! attributes.
//!
//! * IsSelfContained(...) returns true if all the
//! labels of the attributes of the given DataSet are
//! descendant of the given label.
class TDF_ComparisonTool
{
public:
DEFINE_STANDARD_ALLOC
//! Compares <aSourceDataSet> with <aTargetDataSet>,
//! updating <aRelocationTable> with labels and
//! attributes found in both sets.
Standard_EXPORT static void Compare (const Handle(TDF_DataSet)& aSourceDataSet, const Handle(TDF_DataSet)& aTargetDataSet, const TDF_IDFilter& aFilter, const Handle(TDF_RelocationTable)& aRelocationTable) ;
//! Finds from <aRefDataSet> all the keys not bound
//! into <aRelocationTable> and put them into
//! <aDiffDataSet>. Returns True if the difference
//! contains at least one key. (A key is a source
//! object).
//!
//! <anOption> may take the following values:
//! 1 : labels treatment only;
//! 2 : attributes treatment only (default value);
//! 3 : both labels & attributes treatment.
Standard_EXPORT static Standard_Boolean SourceUnbound (const Handle(TDF_DataSet)& aRefDataSet, const Handle(TDF_RelocationTable)& aRelocationTable, const TDF_IDFilter& aFilter, const Handle(TDF_DataSet)& aDiffDataSet, const Standard_Integer anOption = 2) ;
//! Substracts from <aRefDataSet> all the items bound
//! into <aRelocationTable>. The result is put into
//! <aDiffDataSet>. Returns True if the difference
//! contains at least one item. (An item is a target
//! object).
//!
//! <anOption> may take the following values:
//! 1 : labels treatment only;
//! 2 : attributes treatment only(default value);
//! 3 : both labels & attributes treatment.
Standard_EXPORT static Standard_Boolean TargetUnbound (const Handle(TDF_DataSet)& aRefDataSet, const Handle(TDF_RelocationTable)& aRelocationTable, const TDF_IDFilter& aFilter, const Handle(TDF_DataSet)& aDiffDataSet, const Standard_Integer anOption = 2) ;
//! Removes attributes from <aDataSet>.
Standard_EXPORT static void Cut (const Handle(TDF_DataSet)& aDataSet) ;
//! Returns true if all the labels of <aDataSet> are
//! descendant of <aLabel>.
Standard_EXPORT static Standard_Boolean IsSelfContained (const TDF_Label& aLabel, const Handle(TDF_DataSet)& aDataSet) ;
protected:
private:
//! Internal comparison method used by Compare(...).
Standard_EXPORT static void Compare (const TDF_Label& aSrcLabel, const TDF_Label& aTrgLabel, const Handle(TDF_DataSet)& aSourceDataSet, const Handle(TDF_DataSet)& aTargetDataSet, const TDF_IDFilter& aFilter, const Handle(TDF_RelocationTable)& aRelocationTable) ;
//! Internal function used by SourceUnbound() and
//! TargetUnbound().
Standard_EXPORT static Standard_Boolean Unbound (const Handle(TDF_DataSet)& aRefDataSet, const Handle(TDF_RelocationTable)& aRelocationTable, const TDF_IDFilter& aFilter, const Handle(TDF_DataSet)& aDiffDataSet, const Standard_Integer anOption, const Standard_Boolean theSource) ;
};
#endif // _TDF_ComparisonTool_HeaderFile
|