0023024: Update headers of OCCT files
[occt.git] / src / GeomTools / GeomTools_UndefinedTypeHandler.cxx
CommitLineData
b311480e 1// Created on: 1999-10-29
2// Created by: Pavel DURANDIN
3// Copyright (c) 1999-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23#include <GeomTools_UndefinedTypeHandler.ixx>
24
25GeomTools_UndefinedTypeHandler::GeomTools_UndefinedTypeHandler()
26{
27}
28
29//=======================================================================
30//function : PrintCurve
31//purpose :
32//=======================================================================
33
34void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/,
35 Standard_OStream& OS,
36 const Standard_Boolean compact) const
37{
38 if (!compact)
39 OS << "****** UNKNOWN CURVE TYPE ******\n";
40 else
41 cout << "****** UNKNOWN CURVE TYPE ******" << endl;
42}
43
44//=======================================================================
45//function : ReadCurve
46//purpose :
47//=======================================================================
48
49Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve(const Standard_Integer /*ctype*/,
50 Standard_IStream& IS,
51 Handle(Geom_Curve)& /*C*/) const
52{
53 return IS;
54}
55
56//=======================================================================
57//function :
58//purpose :
59//=======================================================================
60
61void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*C*/,
62 Standard_OStream& OS,
63 const Standard_Boolean compact) const
64{
65 if (!compact)
66 OS << "****** UNKNOWN CURVE2d TYPE ******\n";
67 else
68 cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
69}
70
71//=======================================================================
72//function : ReadCurve2d
73//purpose :
74//=======================================================================
75
76Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve2d(const Standard_Integer /*ctype*/,
77 Standard_IStream& IS,
78 Handle(Geom2d_Curve)& /*C*/) const
79{
80 return IS;
81}
82
83//=======================================================================
84//function : PrintSurface
85//purpose :
86//=======================================================================
87
88void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*S*/,
89 Standard_OStream& OS,
90 const Standard_Boolean compact) const
91{
92 if (!compact)
93 OS << "****** UNKNOWN SURFACE TYPE ******\n";
94 else
95 cout << "****** UNKNOWN SURFACE TYPE ******" << endl;
96}
97
98Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
99 Standard_IStream& IS,
100 Handle(Geom_Surface)& /*S*/) const
101{
102 return IS;
103}