7fd59977 |
1 | // File: GeomTools_UndefinedTypeHandler.cxx |
2 | // Created: Fri Oct 29 11:25:54 1999 |
3 | // Author: Pavel DURANDIN |
4 | // <pdn@friendox> |
5 | |
6 | |
7 | #include <GeomTools_UndefinedTypeHandler.ixx> |
8 | |
9 | GeomTools_UndefinedTypeHandler::GeomTools_UndefinedTypeHandler() |
10 | { |
11 | } |
12 | |
13 | //======================================================================= |
14 | //function : PrintCurve |
15 | //purpose : |
16 | //======================================================================= |
17 | |
18 | void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/, |
19 | Standard_OStream& OS, |
20 | const Standard_Boolean compact) const |
21 | { |
22 | if (!compact) |
23 | OS << "****** UNKNOWN CURVE TYPE ******\n"; |
24 | else |
25 | cout << "****** UNKNOWN CURVE TYPE ******" << endl; |
26 | } |
27 | |
28 | //======================================================================= |
29 | //function : ReadCurve |
30 | //purpose : |
31 | //======================================================================= |
32 | |
33 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve(const Standard_Integer /*ctype*/, |
34 | Standard_IStream& IS, |
35 | Handle(Geom_Curve)& /*C*/) const |
36 | { |
37 | return IS; |
38 | } |
39 | |
40 | //======================================================================= |
41 | //function : |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*C*/, |
46 | Standard_OStream& OS, |
47 | const Standard_Boolean compact) const |
48 | { |
49 | if (!compact) |
50 | OS << "****** UNKNOWN CURVE2d TYPE ******\n"; |
51 | else |
52 | cout << "****** UNKNOWN CURVE2d TYPE ******" << endl; |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : ReadCurve2d |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadCurve2d(const Standard_Integer /*ctype*/, |
61 | Standard_IStream& IS, |
62 | Handle(Geom2d_Curve)& /*C*/) const |
63 | { |
64 | return IS; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : PrintSurface |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*S*/, |
73 | Standard_OStream& OS, |
74 | const Standard_Boolean compact) const |
75 | { |
76 | if (!compact) |
77 | OS << "****** UNKNOWN SURFACE TYPE ******\n"; |
78 | else |
79 | cout << "****** UNKNOWN SURFACE TYPE ******" << endl; |
80 | } |
81 | |
82 | Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/, |
83 | Standard_IStream& IS, |
84 | Handle(Geom_Surface)& /*S*/) const |
85 | { |
86 | return IS; |
87 | } |