b311480e |
1 | -- Created on: 1997-02-06 |
2 | -- Created by: Kernel |
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 RootData from Storage |
18 | |
19 | inherits TShared from MMgt |
20 | |
21 | uses SequenceOfAsciiString from TColStd, |
22 | AsciiString from TCollection, |
23 | MapOfPers from Storage, |
24 | HSeqOfRoot from Storage, |
25 | Error from Storage, |
26 | Root from Storage |
27 | |
28 | raises NoSuchObject from Standard |
29 | |
30 | is |
31 | |
6e33d3ce |
32 | Create returns RootData from Storage; |
7fd59977 |
33 | |
34 | NumberOfRoots(me) returns Integer from Standard; |
35 | ---Purpose: returns the number of roots. |
36 | |
37 | AddRoot(me : mutable; aRoot : Root from Storage); |
38 | ---Purpose: add a root to <me>. If a root with same name is present, it |
39 | -- will be replaced by <aRoot>. |
40 | |
6e33d3ce |
41 | Roots(me) returns HSeqOfRoot from Storage; |
7fd59977 |
42 | |
6e33d3ce |
43 | Find(me; aName : AsciiString from TCollection) returns Root from Storage; |
7fd59977 |
44 | ---Purpose: find a root with name <aName>. |
45 | |
46 | IsRoot(me; aName : AsciiString from TCollection) returns Boolean from Standard; |
47 | ---Purpose: returns Standard_True if <me> contains a root named <aName> |
48 | |
49 | RemoveRoot(me : mutable; aName : AsciiString from TCollection); |
50 | ---Purpose: remove the root named <aName>. |
51 | |
52 | ErrorStatus(me) returns Error from Storage; |
53 | ErrorStatusExtension(me) returns AsciiString from TCollection; |
54 | |
55 | ClearErrorStatus(me : mutable); |
56 | |
57 | -- PRIVATE |
58 | |
6e33d3ce |
59 | UpdateRoot(me : mutable; aName : AsciiString from TCollection; aPers : Persistent from Standard) |
7fd59977 |
60 | raises NoSuchObject |
61 | is private; |
62 | |
63 | SetErrorStatus(me : mutable; anError : Error from Storage) is private; |
64 | SetErrorStatusExtension(me : mutable; anErrorExt : AsciiString from TCollection) is private; |
65 | |
66 | fields |
67 | |
68 | myObjects : MapOfPers from Storage; |
69 | myErrorStatus : Error from Storage; |
70 | myErrorStatusExt : AsciiString from TCollection; |
71 | |
72 | friends class Schema from Storage |
73 | |
74 | end; |