1 // Created on: 1992-09-21
2 // Created by: Christian CAILLET
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IFSelect_HeaderFile
18 #define _IFSelect_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <Standard_CString.hxx>
26 class IFSelect_WorkSession;
29 //! Gives tools to manage Selecting a group of Entities
30 //! processed by an Interface, for instance to divide up an
31 //! original Model (from a File) to several smaller ones
32 //! They use description of an Interface Model as a graph
34 //! Remark that this corresponds to the description of a
35 //! "scenario" of sharing out a File. Parts of this Scenario
36 //! are intended to be permanently stored. IFSelect provides
37 //! the Transient, active counterparts (to run the Scenario).
38 //! But a permanent one (either as Persistent Objects or as
39 //! interpretable Text) must be provided elsewhere.
47 //! Saves the state of a WorkSession from IFSelect, by using a
48 //! SessionFile from IFSelect. Returns True if Done, False in
49 //! case of Error on Writing. <file> gives the name of the File
50 //! to be produced (this avoids to export the class SessionFile).
51 Standard_EXPORT static Standard_Boolean SaveSession (const Handle(IFSelect_WorkSession)& WS, const Standard_CString file);
53 //! Restore the state of a WorkSession from IFSelect, by using a
54 //! SessionFile from IFSelect. Returns True if Done, False in
55 //! case of Error on Writing. <file> gives the name of the File
56 //! to be used (this avoids to export the class SessionFile).
57 Standard_EXPORT static Standard_Boolean RestoreSession (const Handle(IFSelect_WorkSession)& WS, const Standard_CString file);
61 #endif // _IFSelect_HeaderFile