-- Created on: 1994-03-21 -- Created by: Christian CAILLET -- 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. deferred generic class FileModifier from IFSelect (Writer as any) -- according each Interface inherits GeneralModifier ---Purpose : Allows to precise the frame work for File Modifiers able to -- run with an Interface (such as STEP, VDA, IGES ...) -- -- Remember that File Modifiers are activated by a WorkLibrary : -- if they inherit from an instantiation of FileModifier with the -- data from this Interface, this will be easier to do. -- They are activated before sending the file, in the order -- given by the ModielCopier. -- -- For each Interface on which File Modifiers have to be defined, -- The way to follow is firstly to instantiate FileModifier with -- its specific data : -- Model is the InterfaceModel specific to the considered norm -- Writer is the Writer specific to the considered norm -- Then to define the various classes which inherit from it and -- define their method Perform uses ContextWrite is Initialize; ---Purpose : Sets a File Modifier to keep the graph of dependences -- unchanges (because it works on the model already produced) Perform (me; ctx : in out ContextWrite; writer : in out Writer) is deferred; ---Purpose : Perform the action specific to each class of File Modifier -- is the ContextWrite, which brings : the model, the -- protocol, the file name, plus the object AppliedModifiers -- (not used here) and the CheckList -- Remark that the model has to be casted for specific access -- -- is the Writer and is specific to each norm, on which -- to act end FileModifier;