1 -- Created on: 2009-04-29
2 -- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
3 -- Copyright (c) 2009-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class BoxDriver from DNaming inherits Driver from TFunction
20 Logbook from TFunction,
21 Function from TFunction,
22 ExtendedString from TCollection,
23 MakeBox from BRepPrimAPI
25 Create returns BoxDriver from DNaming;
26 ---Purpose: Constructor
28 ---Purpose: validation
31 Validate(me; theLog : in out Logbook from TFunction)
33 ---Purpose: Validates labels of a function in <log>.
34 -- In regeneration mode this method must be called (by the
35 -- solver) even if the function is not executed, to build
36 -- the valid label scope.
38 ---Purpose: execution of function
39 -- ======================
41 MustExecute (me; theLog : Logbook from TFunction)
42 ---Purpose: Analyse in <log> if the loaded function must be executed
43 -- (i.e.arguments are modified) or not.
44 -- If the Function label itself is modified, the function must
46 returns Boolean from Standard
49 Execute (me; theLog : in out Logbook from TFunction)
50 ---Purpose: Execute the function and push in <log> the impacted
51 -- labels (see method SetImpacted).
52 returns Integer from Standard
55 LoadNamingDS(me; theResultLabel : Label from TDF; mkBox : in out MakeBox from BRepPrimAPI)