1 // Created on: 1996-01-29
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
19 #include <Standard_Type.hxx>
20 //#include <Standard_OStream.hxx>
23 static Standard_Boolean TopOpeBRep_traceFITOL = Standard_False;
24 Standard_EXPORT void TopOpeBRep_SettraceFITOL(const Standard_Boolean b)
25 { TopOpeBRep_traceFITOL = b; }
26 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceFITOL()
27 { return TopOpeBRep_traceFITOL; }
29 static Standard_Boolean TopOpeBRep_traceFI = Standard_False;
30 Standard_EXPORT void TopOpeBRep_SettraceFI(const Standard_Boolean b)
31 { TopOpeBRep_traceFI = b; }
32 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceFI()
33 { return TopOpeBRep_traceFI; }
35 static Standard_Boolean TopOpeBRep_traceSAVFF = Standard_False;
36 Standard_EXPORT void TopOpeBRep_SettraceSAVFF(const Standard_Boolean b)
37 { TopOpeBRep_traceSAVFF = b; }
38 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceSAVFF()
39 { return TopOpeBRep_traceSAVFF; }
41 static Standard_Boolean TopOpeBRep_tracePROEDG = Standard_False;
42 Standard_EXPORT void TopOpeBRep_SettracePROEDG(const Standard_Boolean b)
43 { TopOpeBRep_tracePROEDG = b; }
44 Standard_EXPORT Standard_Boolean TopOpeBRep_GettracePROEDG()
45 { return TopOpeBRep_tracePROEDG; }
47 static Standard_Boolean TopOpeBRep_contextNOPROEDG = Standard_False;
48 Standard_EXPORT void TopOpeBRep_SetcontextNOPROEDG(const Standard_Boolean b)
49 { TopOpeBRep_contextNOPROEDG = b; }
50 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOPROEDG()
51 { return TopOpeBRep_contextNOPROEDG; }
53 static Standard_Boolean TopOpeBRep_contextFFOR = Standard_False;
54 Standard_EXPORT void TopOpeBRep_SetcontextFFOR(const Standard_Boolean b)
55 { TopOpeBRep_contextFFOR = b; }
56 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextFFOR()
57 { return TopOpeBRep_contextFFOR; }
59 static Standard_Boolean TopOpeBRep_contextNOPUNK = Standard_False;
60 Standard_EXPORT void TopOpeBRep_SetcontextNOPUNK(const Standard_Boolean b)
61 { TopOpeBRep_contextNOPUNK = b; }
62 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOPUNK()
63 { return TopOpeBRep_contextNOPUNK; }
65 static Standard_Boolean TopOpeBRep_contextNOFEI = Standard_False;
66 Standard_EXPORT void TopOpeBRep_SetcontextNOFEI(const Standard_Boolean b)
67 { TopOpeBRep_contextNOFEI = b; }
68 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOFEI()
69 { return TopOpeBRep_contextNOFEI; }
71 static Standard_Boolean TopOpeBRep_traceSI = Standard_False;
72 Standard_EXPORT void TopOpeBRep_SettraceSI(const Standard_Boolean b) { TopOpeBRep_traceSI = b; }
73 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceSI() { return TopOpeBRep_traceSI; }
75 static Standard_Boolean TopOpeBRep_traceBIPS = Standard_False;
76 Standard_EXPORT void TopOpeBRep_SettraceBIPS(const Standard_Boolean b) { TopOpeBRep_traceBIPS = b; }
77 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceBIPS() { return TopOpeBRep_traceBIPS; }
79 static Standard_Boolean TopOpeBRep_traceCONIC = Standard_False;
80 Standard_EXPORT void TopOpeBRep_SettraceCONIC(const Standard_Boolean b) { TopOpeBRep_traceCONIC = b; }
81 Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceCONIC() { return TopOpeBRep_traceCONIC; }
83 static Standard_Boolean TopOpeBRep_contextREST1 = Standard_False;
84 Standard_EXPORT void TopOpeBRep_SetcontextREST1(const Standard_Boolean b) { TopOpeBRep_contextREST1 = b; }
85 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1(char* str) {
86 if (TopOpeBRep_contextREST1) {
87 std::cout<<"context REST1 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
89 return TopOpeBRep_contextREST1;
91 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1() {
92 if (TopOpeBRep_contextREST1) std::cout<<"context REST1 actif"<<std::endl;
93 return TopOpeBRep_contextREST1;
96 static Standard_Boolean TopOpeBRep_contextREST2 = Standard_False;
97 Standard_EXPORT void TopOpeBRep_SetcontextREST2(const Standard_Boolean b) { TopOpeBRep_contextREST2 = b; }
98 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2(char* str) {
99 if (TopOpeBRep_contextREST2) {
100 std::cout<<"context REST2 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
102 return TopOpeBRep_contextREST2;
104 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2() {
105 if (TopOpeBRep_contextREST2) std::cout<<"context REST2 actif"<<std::endl;
106 return TopOpeBRep_contextREST2;
109 static Standard_Boolean TopOpeBRep_contextINL = Standard_False;
110 Standard_EXPORT void TopOpeBRep_SetcontextINL(const Standard_Boolean b) { TopOpeBRep_contextINL = b; }
111 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL(char* str) {
112 if (TopOpeBRep_contextINL) {
113 std::cout<<"context INL actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
115 return TopOpeBRep_contextINL;
117 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL() {
118 if (TopOpeBRep_contextINL) std::cout<<"context INL actif"<<std::endl;
119 return TopOpeBRep_contextINL;
122 static Standard_Boolean TopOpeBRep_contextNEWKP = Standard_False;
123 Standard_EXPORT void TopOpeBRep_SetcontextNEWKP(const Standard_Boolean b) { TopOpeBRep_contextNEWKP = b; }
124 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP(char* str) {
125 if (TopOpeBRep_contextNEWKP) {
126 std::cout<<"context NEWKP actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
128 return TopOpeBRep_contextNEWKP;
130 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP() {
131 if (TopOpeBRep_contextNEWKP) std::cout<<"context NEWKP actif"<<std::endl;
132 return TopOpeBRep_contextNEWKP;
135 static Standard_Boolean TopOpeBRep_contextTOL0 = Standard_False;
136 Standard_EXPORT void TopOpeBRep_SetcontextTOL0(const Standard_Boolean b) { TopOpeBRep_contextTOL0 = b; }
137 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0(char* /*str*/) {
138 if (TopOpeBRep_contextTOL0) {
140 return TopOpeBRep_contextTOL0;
142 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0() {
143 if (TopOpeBRep_contextTOL0) std::cout<<"context TOL0 actif"<<std::endl;
144 return TopOpeBRep_contextTOL0;
147 static Standard_Boolean TopOpeBRep_contextNONOG = Standard_False;
148 Standard_EXPORT void TopOpeBRep_SetcontextNONOG(const Standard_Boolean b) { TopOpeBRep_contextNONOG = b; }
149 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG(char* str) {
150 if (TopOpeBRep_contextNONOG) {
151 std::cout<<"context NONOG actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
153 return TopOpeBRep_contextNONOG;
155 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG() {
156 if (TopOpeBRep_contextNONOG) std::cout<<"context NONOG actif"<<std::endl;
157 return TopOpeBRep_contextNONOG;