7fd59977 |
1 | // File: TDataStd.cxx |
2 | // Created: Wed Jul 30 15:57:49 1997 |
3 | // Author: Denis PASCAL |
4 | // <dp@dingox.paris1.matra-dtv.fr> |
5 | |
6 | |
7 | #include <TDataStd.ixx> |
8 | |
9 | #include <TDF_AttributeIterator.hxx> |
10 | #include <TDF_AttributeList.hxx> |
11 | #include <TDF_Tool.hxx> |
12 | #include <TDF_TagSource.hxx> |
13 | #include <TDF_Reference.hxx> |
14 | #include <TDF_ListIteratorOfAttributeList.hxx> |
15 | #include <TDF_ListIteratorOfLabelList.hxx> |
16 | #include <TDF_MapIteratorOfLabelMap.hxx> |
17 | #include <TDF_DataSet.hxx> |
18 | #include <TDF_ChildIterator.hxx> |
19 | #include <TDataStd_Integer.hxx> |
20 | #include <TDataStd_Real.hxx> |
21 | #include <TDataStd_Name.hxx> |
22 | #include <TDataStd_UAttribute.hxx> |
23 | #include <TDataStd_IntegerArray.hxx> |
24 | #include <TDataStd_RealArray.hxx> |
25 | #include <TDataStd_ExtStringArray.hxx> |
26 | |
27 | #include <Standard_GUID.hxx> |
28 | |
29 | |
30 | |
31 | //======================================================================= |
32 | //function : IDList |
33 | //purpose : |
34 | //======================================================================= |
35 | |
36 | void TDataStd::IDList(TDF_IDList& anIDList) |
37 | { |
38 | anIDList.Append(TDF_TagSource::GetID()); |
39 | anIDList.Append(TDF_Reference::GetID()); |
40 | anIDList.Append(TDataStd_Integer::GetID()); |
41 | anIDList.Append(TDataStd_Name::GetID()); |
42 | anIDList.Append(TDataStd_Real::GetID()); |
43 | anIDList.Append(TDataStd_IntegerArray::GetID()); |
44 | anIDList.Append(TDataStd_RealArray::GetID()); |
45 | anIDList.Append(TDataStd_ExtStringArray::GetID()); |
46 | |
47 | } |
48 | |
49 | |
50 | //======================================================================= |
51 | //function : |
52 | //purpose : print the name of the real dimension |
53 | //======================================================================= |
54 | |
55 | Standard_OStream& TDataStd::Print(const TDataStd_RealEnum C, Standard_OStream& s) |
56 | { |
57 | switch (C) { |
58 | case TDataStd_SCALAR : |
59 | { |
60 | s << "SCALAR"; break; |
61 | } |
62 | case TDataStd_LENGTH : |
63 | { |
64 | s << "LENGTH"; break; |
65 | } |
66 | case TDataStd_ANGULAR : |
67 | { |
68 | s << "ANGULAR"; break; |
69 | } |
70 | default : |
71 | { |
72 | s << "UNKNOWN"; break; |
73 | } |
74 | } |
75 | return s; |
76 | } |
77 | |