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 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 #ifdef OCCT_DEBUG 18 19 #include <Standard_Type.hxx> 20 //#include <Standard_OStream.hxx> 21 //#include <stdio.h> 22 23 static Standard_Boolean TopOpeBRep_traceFITOL = Standard_False; TopOpeBRep_SettraceFITOL(const Standard_Boolean b)24Standard_EXPORT void TopOpeBRep_SettraceFITOL(const Standard_Boolean b) 25 { TopOpeBRep_traceFITOL = b; } TopOpeBRep_GettraceFITOL()26Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceFITOL() 27 { return TopOpeBRep_traceFITOL; } 28 29 static Standard_Boolean TopOpeBRep_traceFI = Standard_False; TopOpeBRep_SettraceFI(const Standard_Boolean b)30Standard_EXPORT void TopOpeBRep_SettraceFI(const Standard_Boolean b) 31 { TopOpeBRep_traceFI = b; } TopOpeBRep_GettraceFI()32Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceFI() 33 { return TopOpeBRep_traceFI; } 34 35 static Standard_Boolean TopOpeBRep_traceSAVFF = Standard_False; TopOpeBRep_SettraceSAVFF(const Standard_Boolean b)36Standard_EXPORT void TopOpeBRep_SettraceSAVFF(const Standard_Boolean b) 37 { TopOpeBRep_traceSAVFF = b; } TopOpeBRep_GettraceSAVFF()38Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceSAVFF() 39 { return TopOpeBRep_traceSAVFF; } 40 41 static Standard_Boolean TopOpeBRep_tracePROEDG = Standard_False; TopOpeBRep_SettracePROEDG(const Standard_Boolean b)42Standard_EXPORT void TopOpeBRep_SettracePROEDG(const Standard_Boolean b) 43 { TopOpeBRep_tracePROEDG = b; } TopOpeBRep_GettracePROEDG()44Standard_EXPORT Standard_Boolean TopOpeBRep_GettracePROEDG() 45 { return TopOpeBRep_tracePROEDG; } 46 47 static Standard_Boolean TopOpeBRep_contextNOPROEDG = Standard_False; TopOpeBRep_SetcontextNOPROEDG(const Standard_Boolean b)48Standard_EXPORT void TopOpeBRep_SetcontextNOPROEDG(const Standard_Boolean b) 49 { TopOpeBRep_contextNOPROEDG = b; } TopOpeBRep_GetcontextNOPROEDG()50Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOPROEDG() 51 { return TopOpeBRep_contextNOPROEDG; } 52 53 static Standard_Boolean TopOpeBRep_contextFFOR = Standard_False; TopOpeBRep_SetcontextFFOR(const Standard_Boolean b)54Standard_EXPORT void TopOpeBRep_SetcontextFFOR(const Standard_Boolean b) 55 { TopOpeBRep_contextFFOR = b; } TopOpeBRep_GetcontextFFOR()56Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextFFOR() 57 { return TopOpeBRep_contextFFOR; } 58 59 static Standard_Boolean TopOpeBRep_contextNOPUNK = Standard_False; TopOpeBRep_SetcontextNOPUNK(const Standard_Boolean b)60Standard_EXPORT void TopOpeBRep_SetcontextNOPUNK(const Standard_Boolean b) 61 { TopOpeBRep_contextNOPUNK = b; } TopOpeBRep_GetcontextNOPUNK()62Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOPUNK() 63 { return TopOpeBRep_contextNOPUNK; } 64 65 static Standard_Boolean TopOpeBRep_contextNOFEI = Standard_False; TopOpeBRep_SetcontextNOFEI(const Standard_Boolean b)66Standard_EXPORT void TopOpeBRep_SetcontextNOFEI(const Standard_Boolean b) 67 { TopOpeBRep_contextNOFEI = b; } TopOpeBRep_GetcontextNOFEI()68Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNOFEI() 69 { return TopOpeBRep_contextNOFEI; } 70 71 static Standard_Boolean TopOpeBRep_traceSI = Standard_False; TopOpeBRep_SettraceSI(const Standard_Boolean b)72Standard_EXPORT void TopOpeBRep_SettraceSI(const Standard_Boolean b) { TopOpeBRep_traceSI = b; } TopOpeBRep_GettraceSI()73Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceSI() { return TopOpeBRep_traceSI; } 74 75 static Standard_Boolean TopOpeBRep_traceBIPS = Standard_False; TopOpeBRep_SettraceBIPS(const Standard_Boolean b)76Standard_EXPORT void TopOpeBRep_SettraceBIPS(const Standard_Boolean b) { TopOpeBRep_traceBIPS = b; } TopOpeBRep_GettraceBIPS()77Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceBIPS() { return TopOpeBRep_traceBIPS; } 78 79 static Standard_Boolean TopOpeBRep_traceCONIC = Standard_False; TopOpeBRep_SettraceCONIC(const Standard_Boolean b)80Standard_EXPORT void TopOpeBRep_SettraceCONIC(const Standard_Boolean b) { TopOpeBRep_traceCONIC = b; } TopOpeBRep_GettraceCONIC()81Standard_EXPORT Standard_Boolean TopOpeBRep_GettraceCONIC() { return TopOpeBRep_traceCONIC; } 82 83 static Standard_Boolean TopOpeBRep_contextREST1 = Standard_False; TopOpeBRep_SetcontextREST1(const Standard_Boolean b)84Standard_EXPORT void TopOpeBRep_SetcontextREST1(const Standard_Boolean b) { TopOpeBRep_contextREST1 = b; } TopOpeBRep_GetcontextREST1(char * str)85Standard_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; 88 } 89 return TopOpeBRep_contextREST1; 90 } TopOpeBRep_GetcontextREST1()91Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1() { 92 if (TopOpeBRep_contextREST1) std::cout<<"context REST1 actif"<<std::endl; 93 return TopOpeBRep_contextREST1; 94 } 95 96 static Standard_Boolean TopOpeBRep_contextREST2 = Standard_False; TopOpeBRep_SetcontextREST2(const Standard_Boolean b)97Standard_EXPORT void TopOpeBRep_SetcontextREST2(const Standard_Boolean b) { TopOpeBRep_contextREST2 = b; } TopOpeBRep_GetcontextREST2(char * str)98Standard_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; 101 } 102 return TopOpeBRep_contextREST2; 103 } TopOpeBRep_GetcontextREST2()104Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2() { 105 if (TopOpeBRep_contextREST2) std::cout<<"context REST2 actif"<<std::endl; 106 return TopOpeBRep_contextREST2; 107 } 108 109 static Standard_Boolean TopOpeBRep_contextINL = Standard_False; TopOpeBRep_SetcontextINL(const Standard_Boolean b)110Standard_EXPORT void TopOpeBRep_SetcontextINL(const Standard_Boolean b) { TopOpeBRep_contextINL = b; } TopOpeBRep_GetcontextINL(char * str)111Standard_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; 114 } 115 return TopOpeBRep_contextINL; 116 } TopOpeBRep_GetcontextINL()117Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL() { 118 if (TopOpeBRep_contextINL) std::cout<<"context INL actif"<<std::endl; 119 return TopOpeBRep_contextINL; 120 } 121 122 static Standard_Boolean TopOpeBRep_contextNEWKP = Standard_False; TopOpeBRep_SetcontextNEWKP(const Standard_Boolean b)123Standard_EXPORT void TopOpeBRep_SetcontextNEWKP(const Standard_Boolean b) { TopOpeBRep_contextNEWKP = b; } TopOpeBRep_GetcontextNEWKP(char * str)124Standard_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; 127 } 128 return TopOpeBRep_contextNEWKP; 129 } TopOpeBRep_GetcontextNEWKP()130Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP() { 131 if (TopOpeBRep_contextNEWKP) std::cout<<"context NEWKP actif"<<std::endl; 132 return TopOpeBRep_contextNEWKP; 133 } 134 135 static Standard_Boolean TopOpeBRep_contextTOL0 = Standard_False; TopOpeBRep_SetcontextTOL0(const Standard_Boolean b)136Standard_EXPORT void TopOpeBRep_SetcontextTOL0(const Standard_Boolean b) { TopOpeBRep_contextTOL0 = b; } TopOpeBRep_GetcontextTOL0(char *)137Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0(char* /*str*/) { 138 if (TopOpeBRep_contextTOL0) { 139 } 140 return TopOpeBRep_contextTOL0; 141 } TopOpeBRep_GetcontextTOL0()142Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0() { 143 if (TopOpeBRep_contextTOL0) std::cout<<"context TOL0 actif"<<std::endl; 144 return TopOpeBRep_contextTOL0; 145 } 146 147 static Standard_Boolean TopOpeBRep_contextNONOG = Standard_False; TopOpeBRep_SetcontextNONOG(const Standard_Boolean b)148Standard_EXPORT void TopOpeBRep_SetcontextNONOG(const Standard_Boolean b) { TopOpeBRep_contextNONOG = b; } TopOpeBRep_GetcontextNONOG(char * str)149Standard_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; 152 } 153 return TopOpeBRep_contextNONOG; 154 } TopOpeBRep_GetcontextNONOG()155Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG() { 156 if (TopOpeBRep_contextNONOG) std::cout<<"context NONOG actif"<<std::endl; 157 return TopOpeBRep_contextNONOG; 158 } 159 160 // #ifdef OCCT_DEBUG 161 #endif 162