blob: 5d1654102e2f009950b5adc4fbed5ab12ad87bd4 (
plain)
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
|
// File: TDF_DataSet.cxx
// ---------------
// Author: DAUTRY Philippe
// <fid@fox.paris1.matra-dtv.fr>
// Copyright: Matra Datavision 1997
// Version: 0.0
// History: Version Date Purpose
// 0.0 Mar 11 1997 Creation
#include <TDF_DataSet.ixx>
#include <TDF_MapIteratorOfAttributeMap.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>
#include <TDF_MapIteratorOfLabelMap.hxx>
//=======================================================================
//function : TDF_DataSet
//purpose : Creates a DataSet.
//=======================================================================
TDF_DataSet::TDF_DataSet()
{}
//=======================================================================
//function : Clear
//purpose :
//=======================================================================
void TDF_DataSet::Clear()
{
myRootLabels.Clear();
myLabelMap.Clear();
myAttributeMap.Clear();
}
//=======================================================================
//function : Dump
//purpose :
//=======================================================================
Standard_OStream& TDF_DataSet::Dump(Standard_OStream& anOS) const
{
anOS<<"\t\t=====< TDF_DataSet dump >====="<<endl;
anOS<<"Root Labels :"<<endl<<"============="<<endl;
for (TDF_ListIteratorOfLabelList itr1(myRootLabels);
itr1.More(); itr1.Next()) {
itr1.Value().EntryDump(anOS);
anOS<<" | ";
}
anOS<<endl<<"Labels :"<<endl<<"========"<<endl;
for (TDF_MapIteratorOfLabelMap itr2(myLabelMap);
itr2.More(); itr2.Next()) {
itr2.Key().EntryDump(anOS);
anOS<<" | ";
}
anOS<<endl<<"Attributes :"<<endl<<"============"<<endl<<endl;
for (TDF_MapIteratorOfAttributeMap itr3(myAttributeMap);
itr3.More(); itr3.Next()) {
itr3.Key()->Label().EntryDump(anOS);
anOS<<" \t";
itr3.Key()->Dump(anOS);
anOS<<endl;
}
anOS<<endl;
return anOS;
}
|