// 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_Tool_HeaderFile #define _TDF_Tool_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_TDF_Data_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif class TDF_Label; class TDF_IDFilter; class TDF_AttributeMap; class TCollection_AsciiString; class TColStd_ListOfInteger; class TDF_Data; class TDF_LabelList; class TDF_LabelIntegerMap; //! This class provides general services for a data framework.
class TDF_Tool { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Returns the number of labels of the tree,
//! including . aLabel is also included in this figure.
//! This information is useful in setting the size of an array.
Standard_EXPORT static Standard_Integer NbLabels(const TDF_Label& aLabel) ; //! Returns the total number of attributes attached
//! to the labels dependent on the label aLabel.
//! The attributes of aLabel are also included in this figure.
//! This information is useful in setting the size of an array.
Standard_EXPORT static Standard_Integer NbAttributes(const TDF_Label& aLabel) ; //! Returns the number of attributes of the tree,
//! selected by a, including those of
//! .
Standard_EXPORT static Standard_Integer NbAttributes(const TDF_Label& aLabel,const TDF_IDFilter& aFilter) ; //! Returns true if and its descendants
//! reference only attributes or labels attached to
//! themselves.
Standard_EXPORT static Standard_Boolean IsSelfContained(const TDF_Label& aLabel) ; //! Returns true if and its descendants
//! reference only attributes or labels attached to
//! themselves and kept by .
Standard_EXPORT static Standard_Boolean IsSelfContained(const TDF_Label& aLabel,const TDF_IDFilter& aFilter) ; //! Returns in the attributes having out
//! references.
//!
//! Caution: is not cleared before use!
Standard_EXPORT static void OutReferers(const TDF_Label& theLabel,TDF_AttributeMap& theAtts) ; //! Returns in the attributes having out
//! references and kept by .
//! It considers only the references kept by .
//! Caution: is not cleared before use!
Standard_EXPORT static void OutReferers(const TDF_Label& aLabel,const TDF_IDFilter& aFilterForReferers,const TDF_IDFilter& aFilterForReferences,TDF_AttributeMap& atts) ; //! Returns in the referenced attributes.
//! Caution: is not cleared before use!
Standard_EXPORT static void OutReferences(const TDF_Label& aLabel,TDF_AttributeMap& atts) ; //! Returns in the referenced attributes and kept by .
//! It considers only the referers kept by .
//! Caution: is not cleared before use!
Standard_EXPORT static void OutReferences(const TDF_Label& aLabel,const TDF_IDFilter& aFilterForReferers,const TDF_IDFilter& aFilterForReferences,TDF_AttributeMap& atts) ; //! Returns the label having the same sub-entry as
//! but located as descendant as
//! instead of .
//!
//! Exemple :
//!
//! aLabel = 0:3:24:7:2:7
//! fromRoot = 0:3:24
//! toRoot = 0:5
//! returned label = 0:5:7:2:7
Standard_EXPORT static void RelocateLabel(const TDF_Label& aSourceLabel,const TDF_Label& fromRoot,const TDF_Label& toRoot,TDF_Label& aTargetLabel,const Standard_Boolean create = Standard_False) ; //! Returns the entry for the label aLabel in the form
//! of the ASCII character string anEntry containing
//! the tag list for aLabel.
Standard_EXPORT static void Entry(const TDF_Label& aLabel,TCollection_AsciiString& anEntry) ; //! Returns the entry of as list of integers
//! in .
Standard_EXPORT static void TagList(const TDF_Label& aLabel,TColStd_ListOfInteger& aTagList) ; //! Returns the entry expressed by as list
//! of integers in .
Standard_EXPORT static void TagList(const TCollection_AsciiString& anEntry,TColStd_ListOfInteger& aTagList) ; //! Returns the label expressed by ; creates
//! the label if it does not exist and if is
//! true.
Standard_EXPORT static void Label(const Handle(TDF_Data)& aDF,const TCollection_AsciiString& anEntry,TDF_Label& aLabel,const Standard_Boolean create = Standard_False) ; //! Returns the label expressed by ; creates
//! the label if it does not exist and if is
//! true.
Standard_EXPORT static void Label(const Handle(TDF_Data)& aDF,const Standard_CString anEntry,TDF_Label& aLabel,const Standard_Boolean create = Standard_False) ; //! Returns the label expressed by ; creates
//! the label if it does not exist and if is
//! true.
Standard_EXPORT static void Label(const Handle(TDF_Data)& aDF,const TColStd_ListOfInteger& aTagList,TDF_Label& aLabel,const Standard_Boolean create = Standard_False) ; //! Adds the labels of to if
//! they are unbound, or increases their reference
//! counters. At the end of the process,
//! contains only the ADDED labels.
Standard_EXPORT static void CountLabels(TDF_LabelList& aLabelList,TDF_LabelIntegerMap& aLabelMap) ; //! Decreases the reference counters of the labels of
//! to , and removes labels
//! with null counter. At the end of the process,
//! contains only the SUPPRESSED labels.
Standard_EXPORT static void DeductLabels(TDF_LabelList& aLabelList,TDF_LabelIntegerMap& aLabelMap) ; //! Dumps and its labels and their attributes.
Standard_EXPORT static void DeepDump(Standard_OStream& anOS,const Handle(TDF_Data)& aDF) ; //! Dumps and its labels and their attributes,
//! if their IDs are kept by . Dumps also the
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump(Standard_OStream& anOS,const Handle(TDF_Data)& aDF,const TDF_IDFilter& aFilter) ; //! Dumps , its chilren and their attributes.
Standard_EXPORT static void DeepDump(Standard_OStream& anOS,const TDF_Label& aLabel) ; //! Dumps , its chilren and their attributes,
//! if their IDs are kept by . Dumps also the
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump(Standard_OStream& anOS,const TDF_Label& aLabel,const TDF_IDFilter& aFilter) ; protected: private: }; // other Inline functions and methods (like "C++: function call" methods) #endif