0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / GeomTools / GeomTools_UndefinedTypeHandler.cxx
1 // Created on: 1999-10-29
2 // Created by: Pavel DURANDIN
3 // Copyright (c) 1999-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <GeomTools_UndefinedTypeHandler.ixx>
18
19 GeomTools_UndefinedTypeHandler::GeomTools_UndefinedTypeHandler()
20 {
21 }
22
23 //=======================================================================
24 //function : PrintCurve
25 //purpose  : 
26 //=======================================================================
27
28 void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/,
29                                                 Standard_OStream& OS,
30                                                 const Standard_Boolean compact) const
31 {
32   if (!compact)
33     OS << "****** UNKNOWN CURVE TYPE ******\n";
34   else 
35     cout << "****** UNKNOWN CURVE TYPE ******" << endl;
36 }
37
38 //=======================================================================
39 //function : ReadCurve
40 //purpose  : 
41 //=======================================================================
42
43 Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve(const Standard_Integer /*ctype*/,
44                                                             Standard_IStream& IS,
45                                                             Handle(Geom_Curve)& /*C*/) const
46 {
47   return IS;
48 }
49
50 //=======================================================================
51 //function : 
52 //purpose  : 
53 //=======================================================================
54
55 void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*C*/,
56                                                   Standard_OStream& OS,
57                                                   const Standard_Boolean compact) const
58 {
59   if (!compact)
60     OS << "****** UNKNOWN CURVE2d TYPE ******\n";
61   else 
62     cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
63 }
64
65 //=======================================================================
66 //function : ReadCurve2d
67 //purpose  : 
68 //=======================================================================
69
70 Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve2d(const Standard_Integer /*ctype*/,
71                                                               Standard_IStream& IS,
72                                                               Handle(Geom2d_Curve)& /*C*/) const
73 {
74   return IS;
75 }
76
77 //=======================================================================
78 //function : PrintSurface
79 //purpose  : 
80 //=======================================================================
81
82 void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*S*/,
83                                                   Standard_OStream& OS,
84                                                   const Standard_Boolean compact) const
85 {
86   if (!compact)
87     OS << "****** UNKNOWN SURFACE TYPE ******\n";
88   else 
89     cout << "****** UNKNOWN SURFACE TYPE ******" << endl;
90 }
91
92 Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
93                                                               Standard_IStream& IS,
94                                                               Handle(Geom_Surface)& /*S*/) const
95 {
96   return IS;
97 }