0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
[occt.git] / src / DDF / DDF_Data.cxx
1 // Created by: VAUTHIER Jean-Claude & DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //              ------------
17 // Version:     0.0
18 //Version       Date            Purpose
19 //              0.0     Feb 10 1997     Creation
20
21 #include <DDF.hxx>
22 #include <DDF_Data.hxx>
23 #include <Draw_Display.hxx>
24 #include <Draw_Drawable3D.hxx>
25 #include <Standard_GUID.hxx>
26 #include <Standard_Type.hxx>
27 #include <TCollection_AsciiString.hxx>
28 #include <TDF_Attribute.hxx>
29 #include <TDF_AttributeIterator.hxx>
30 #include <TDF_ChildIterator.hxx>
31 #include <TDF_Data.hxx>
32 #include <TDF_IDFilter.hxx>
33 #include <TDF_Label.hxx>
34 #include <TDF_Tool.hxx>
35
36 IMPLEMENT_STANDARD_RTTIEXT(DDF_Data,Draw_Drawable3D)
37
38 //=======================================================================
39 //function : DDF_Data
40 //purpose  : 
41 //=======================================================================
42 DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {}
43
44
45
46 //=======================================================================
47 //function : DrawOn
48 //purpose  : 
49 //=======================================================================
50
51 void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
52
53 { std::cout<<"DDF_Data"<<std::endl; }
54
55
56
57 //=======================================================================
58 //function : Copy
59 //purpose  : 
60 //=======================================================================
61
62 Handle(Draw_Drawable3D) DDF_Data::Copy() const { return new DDF_Data (myDF); }
63
64
65
66 //=======================================================================
67 //function : Dump
68 //purpose  : 
69 //=======================================================================
70
71 void DDF_Data::Dump(Standard_OStream& S) const
72
73 {
74   TDF_Tool::DeepDump(S,myDF);
75 }
76
77
78 //=======================================================================
79 //function : DataFramework
80 //purpose  : 
81 //=======================================================================
82
83 Handle(TDF_Data) DDF_Data::DataFramework () const { return myDF; }
84
85
86
87
88 //=======================================================================
89 //function : DataFramework
90 //purpose  : 
91 //=======================================================================
92
93 void DDF_Data::DataFramework (const Handle(TDF_Data)& aDF) 
94
95 { myDF = aDF; }
96
97
98
99
100 //=======================================================================
101 //function : Whatis
102 //purpose  : 
103 //=======================================================================
104
105 void DDF_Data::Whatis (Draw_Interpretor& I) const
106
107 {
108   I << "Data Framework";
109 }