b311480e |
1 | -- Created on: 1997-08-07 |
2 | -- Created by: Jean-Louis Frenkel |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class Session from CDF inherits Transient from Standard |
18 | |
19 | |
20 | uses |
21 | Directory from CDF, |
22 | ExtendedString from TCollection, |
23 | Application from CDF, |
24 | MetaDataDriver from CDF, |
25 | Writer from PCDM |
26 | raises |
27 | |
28 | NoSuchObject from Standard,MultiplyDefined from Standard |
29 | |
30 | is |
6e33d3ce |
31 | Create returns Session from CDF |
7fd59977 |
32 | raises MultiplyDefined from Standard; |
33 | |
34 | Exists(myclass) |
35 | --- Purpose: returns true if a session has been created. |
36 | returns Boolean from Standard; |
37 | |
6e33d3ce |
38 | CurrentSession(myclass) returns Session from CDF; |
7fd59977 |
39 | ---Purpose: returns the only one instance of Session |
40 | -- that has been created. |
41 | |
42 | |
6e33d3ce |
43 | Directory(me) returns Directory from CDF; |
7fd59977 |
44 | ---Purpose: returns the directory of the session; |
45 | ---Level: Public |
46 | |
47 | |
48 | ---Category: current application management |
49 | HasCurrentApplication(me) returns Boolean from Standard; |
50 | |
6e33d3ce |
51 | CurrentApplication(me) returns Application from CDF |
7fd59977 |
52 | raises NoSuchObject from Standard; |
53 | |
54 | SetCurrentApplication(me: mutable; anApplication: Application from CDF); |
55 | |
56 | UnsetCurrentApplication(me: mutable); |
57 | |
58 | |
59 | ---Category: database related methods |
60 | |
61 | MetaDataDriver(me) returns MetaDataDriver from CDF |
62 | raises NoSuchObject from Standard; |
63 | |
64 | |
65 | LoadDriver(me: mutable); |
66 | |
67 | fields |
68 | |
69 | myDirectory : Directory from CDF; |
70 | myCurrentApplication : Application from CDF; |
71 | myHasCurrentApplication: Boolean from Standard; |
72 | myMetaDataDriver : MetaDataDriver from CDF; |
73 | friends |
74 | class Application from CDF |
75 | end Session from CDF; |