File indexing completed on 2026-07-04 08:33:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TDF_DataSet_HeaderFile
0017 #define _TDF_DataSet_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <TDF_LabelList.hxx>
0022 #include <TDF_LabelMap.hxx>
0023 #include <TDF_AttributeMap.hxx>
0024 #include <Standard_Transient.hxx>
0025 #include <Standard_Boolean.hxx>
0026 #include <Standard_OStream.hxx>
0027 class TDF_Label;
0028 class TDF_Attribute;
0029
0030 class TDF_DataSet;
0031 DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient)
0032
0033
0034 class TDF_DataSet : public Standard_Transient
0035 {
0036
0037 public:
0038
0039 Standard_EXPORT TDF_DataSet();
0040
0041
0042 Standard_EXPORT void Clear();
0043
0044
0045
0046 Standard_Boolean IsEmpty() const;
0047
0048
0049 void AddLabel(const TDF_Label& aLabel);
0050
0051
0052 Standard_Boolean ContainsLabel(const TDF_Label& aLabel) const;
0053
0054
0055
0056 TDF_LabelMap& Labels();
0057
0058
0059 void AddAttribute(const Handle(TDF_Attribute)& anAttribute);
0060
0061
0062 Standard_Boolean ContainsAttribute(const Handle(TDF_Attribute)& anAttribute) const;
0063
0064
0065
0066 TDF_AttributeMap& Attributes();
0067
0068
0069 void AddRoot(const TDF_Label& aLabel);
0070
0071
0072 TDF_LabelList& Roots();
0073
0074
0075
0076 Standard_EXPORT Standard_OStream& Dump(Standard_OStream& anOS) const;
0077
0078 Standard_OStream& operator<<(Standard_OStream& anOS) const { return Dump(anOS); }
0079
0080 DEFINE_STANDARD_RTTIEXT(TDF_DataSet, Standard_Transient)
0081
0082 protected:
0083 private:
0084 TDF_LabelList myRootLabels;
0085 TDF_LabelMap myLabelMap;
0086 TDF_AttributeMap myAttributeMap;
0087 };
0088
0089 #include <TDF_DataSet.lxx>
0090
0091 #endif