7fd59977 |
1 | -- File: CDF_Session.cdl |
2 | -- Created: Thu Aug 7 17:28:05 1997 |
3 | -- Author: Jean-Louis Frenkel |
4 | -- <rmi@frilox.paris1.matra-dtv.fr> |
5 | ---Copyright: Matra Datavision 1997 |
6 | |
7 | class Session from CDF inherits Transient from Standard |
8 | |
9 | |
10 | uses |
11 | Directory from CDF, |
12 | ExtendedString from TCollection, |
13 | Application from CDF, |
14 | MetaDataDriver from CDF, |
15 | Writer from PCDM |
16 | raises |
17 | |
18 | NoSuchObject from Standard,MultiplyDefined from Standard |
19 | |
20 | is |
21 | Create returns mutable Session from CDF |
22 | raises MultiplyDefined from Standard; |
23 | |
24 | Exists(myclass) |
25 | --- Purpose: returns true if a session has been created. |
26 | returns Boolean from Standard; |
27 | |
28 | CurrentSession(myclass) returns mutable Session from CDF; |
29 | ---Purpose: returns the only one instance of Session |
30 | -- that has been created. |
31 | |
32 | |
33 | Directory(me) returns mutable Directory from CDF; |
34 | ---Purpose: returns the directory of the session; |
35 | ---Level: Public |
36 | |
37 | |
38 | ---Category: current application management |
39 | HasCurrentApplication(me) returns Boolean from Standard; |
40 | |
41 | CurrentApplication(me) returns mutable Application from CDF |
42 | raises NoSuchObject from Standard; |
43 | |
44 | SetCurrentApplication(me: mutable; anApplication: Application from CDF); |
45 | |
46 | UnsetCurrentApplication(me: mutable); |
47 | |
48 | |
49 | ---Category: database related methods |
50 | |
51 | MetaDataDriver(me) returns MetaDataDriver from CDF |
52 | raises NoSuchObject from Standard; |
53 | |
54 | |
55 | LoadDriver(me: mutable); |
56 | |
57 | fields |
58 | |
59 | myDirectory : Directory from CDF; |
60 | myCurrentApplication : Application from CDF; |
61 | myHasCurrentApplication: Boolean from Standard; |
62 | myMetaDataDriver : MetaDataDriver from CDF; |
63 | friends |
64 | class Application from CDF |
65 | end Session from CDF; |