b311480e |
1 | // Created on: 1997-07-30 |
2 | // Created by: Denis PASCAL |
3 | // Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #include <TDataStd.ixx> |
18 | |
19 | #include <TDF_AttributeIterator.hxx> |
20 | #include <TDF_AttributeList.hxx> |
21 | #include <TDF_Tool.hxx> |
22 | #include <TDF_TagSource.hxx> |
23 | #include <TDF_Reference.hxx> |
24 | #include <TDF_ListIteratorOfAttributeList.hxx> |
25 | #include <TDF_ListIteratorOfLabelList.hxx> |
26 | #include <TDF_MapIteratorOfLabelMap.hxx> |
27 | #include <TDF_DataSet.hxx> |
28 | #include <TDF_ChildIterator.hxx> |
29 | #include <TDataStd_Integer.hxx> |
30 | #include <TDataStd_Real.hxx> |
31 | #include <TDataStd_Name.hxx> |
32 | #include <TDataStd_UAttribute.hxx> |
33 | #include <TDataStd_IntegerArray.hxx> |
34 | #include <TDataStd_RealArray.hxx> |
35 | #include <TDataStd_ExtStringArray.hxx> |
36 | |
37 | #include <Standard_GUID.hxx> |
38 | |
39 | |
40 | |
41 | //======================================================================= |
42 | //function : IDList |
43 | //purpose : |
44 | //======================================================================= |
45 | |
46 | void TDataStd::IDList(TDF_IDList& anIDList) |
47 | { |
48 | anIDList.Append(TDF_TagSource::GetID()); |
49 | anIDList.Append(TDF_Reference::GetID()); |
50 | anIDList.Append(TDataStd_Integer::GetID()); |
51 | anIDList.Append(TDataStd_Name::GetID()); |
52 | anIDList.Append(TDataStd_Real::GetID()); |
53 | anIDList.Append(TDataStd_IntegerArray::GetID()); |
54 | anIDList.Append(TDataStd_RealArray::GetID()); |
55 | anIDList.Append(TDataStd_ExtStringArray::GetID()); |
56 | |
57 | } |
58 | |
59 | |
60 | //======================================================================= |
61 | //function : |
62 | //purpose : print the name of the real dimension |
63 | //======================================================================= |
64 | |
65 | Standard_OStream& TDataStd::Print(const TDataStd_RealEnum C, Standard_OStream& s) |
66 | { |
67 | switch (C) { |
68 | case TDataStd_SCALAR : |
69 | { |
70 | s << "SCALAR"; break; |
71 | } |
72 | case TDataStd_LENGTH : |
73 | { |
74 | s << "LENGTH"; break; |
75 | } |
76 | case TDataStd_ANGULAR : |
77 | { |
78 | s << "ANGULAR"; break; |
79 | } |
80 | default : |
81 | { |
82 | s << "UNKNOWN"; break; |
83 | } |
84 | } |
85 | return s; |
86 | } |
87 | |