Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:24

0001 // Created on: 1997-10-22
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1997-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _TopOpeBRep_traceSIFF_HeaderFile
0018 #define _TopOpeBRep_traceSIFF_HeaderFile
0019 
0020 #ifdef OCCT_DEBUG
0021 
0022 #include <TopOpeBRepTool_define.hxx>
0023 #include <Standard_OStream.hxx>
0024 #include <TopoDS_Shape.hxx>
0025 
0026 class TopOpeBRep_traceSIFF {
0027 public:
0028 
0029   TopOpeBRep_traceSIFF();
0030 
0031   void Reset();
0032 
0033   void Set(const Standard_Boolean b,
0034        Standard_Integer n,
0035        char**a);
0036 
0037   void Set(const TCollection_AsciiString& brep1,
0038        const TCollection_AsciiString& brep2,
0039        const TCollection_AsciiString& n);
0040   
0041   TCollection_AsciiString Name1(const Standard_Integer I) const;
0042   TCollection_AsciiString Name2(const Standard_Integer I) const;
0043   
0044   const TCollection_AsciiString& File() const;
0045   
0046   Standard_Boolean Start(const TCollection_AsciiString& s,
0047              Standard_OStream& OS);
0048   void Add(const Standard_Integer I1,
0049        const Standard_Integer I2);
0050   void End(const TCollection_AsciiString& s,
0051        Standard_OStream& OS);
0052 private: 
0053   TCollection_AsciiString mybrep1,mybrep2,myfilename;
0054   std::filebuf myfilebuf;
0055   Standard_Boolean myopen;
0056 };
0057 
0058 // #ifdef OCCT_DEBUG
0059 #endif
0060 // #define _TopOpeBRep_traceSIFF_HeaderFile
0061 #endif