// Created on: 1994-03-18 // Created by: Jean Yves LEBEY // Copyright (c) 1994-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #include #include #include #include //======================================================================= //function : Print the name of a State //======================================================================= TCollection_AsciiString TopOpeBRepDS::SPrint(const TopAbs_State S) { TCollection_AsciiString s; switch (S) { case TopAbs_IN : s = s + "IN"; break; case TopAbs_OUT : s = s + "OU"; break; case TopAbs_ON : s = s + "ON"; break; case TopAbs_UNKNOWN : s = s + "UN"; break; } return s; } Standard_OStream& TopOpeBRepDS::Print(const TopAbs_State S,Standard_OStream& OS) { OS<= 0 && i <= 9) si = " "; TCollection_AsciiString s = S1 + "(" + TopOpeBRepDS::SPrint(k) + "," + si + TCollection_AsciiString(i) + ")" + S2; return s; } Standard_OStream& TopOpeBRepDS::Print(const TopOpeBRepDS_Kind k,Standard_OStream& OS) { OS<