-- Created on: 1997-05-14 -- Created by: Christian CAILLET -- Copyright (c) 1997-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. class Writer from XSControl ---Purpose : This class gives a simple way to create then write a -- Model compliant to a given norm, from a Shape -- The model can then be edited by tools by other appropriate tools uses CString, InterfaceModel from Interface, WorkSession from XSControl, ReturnStatus from IFSelect, Shape from TopoDS is Create returns Writer; ---Purpose : Creates a Writer from scratch Create (norm : CString) returns Writer; ---Purpose : Creates a Writer from scratch, with a norm name which -- identifie a Controller Create (WS : WorkSession from XSControl; scratch : Boolean = Standard_True) returns Writer; ---Purpose : Creates a Writer from an already existing Session -- If is True (D), clears already recorded data SetNorm (me : in out; norm : CString) returns Boolean; ---Purpose : Sets a specific norm to -- Returns True if done, False if is not available SetWS (me : in out; WS : WorkSession from XSControl; scratch : Boolean = Standard_True); ---Purpose : Sets a specific session to WS (me) returns WorkSession from XSControl; ---Purpose : Returns the session used in Model (me : in out; newone : Boolean = Standard_False) returns InterfaceModel; ---Purpose : Returns the produced model. Produces a new one if not yet done -- or if is True -- This method allows for instance to edit product or header -- data before writing TransferShape (me : in out; sh : Shape from TopoDS; mode : Integer = 0) returns ReturnStatus; ---Purpose : Transfers a Shape according to the mode WriteFile (me : in out; filename : CString) returns ReturnStatus; ---Purpose : Writes the produced model PrintStatsTransfer (me; what : Integer; mode : Integer = 0); ---Purpose : Prints Statistics about Transfer fields thesession : WorkSession from XSControl; end Writer;