b311480e |
1 | -- Created on: 2001-07-17 |
2 | -- Created by: Julia DOROVSKIKH <jfa@hotdox.nnov.matra-dtv.fr> |
973c2be1 |
3 | -- Copyright (c) 2001-2014 OPEN CASCADE SAS |
b311480e |
4 | -- |
973c2be1 |
5 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
6 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | -- |
973c2be1 |
13 | -- Alternatively, this file may be used under the terms of Open CASCADE |
14 | -- commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | class Persistent from XmlObjMgt |
ff8178ef |
17 | ---Purpose: root for XML-persistence |
7fd59977 |
18 | |
19 | uses |
20 | Element from XmlObjMgt, |
21 | DOMString from XmlObjMgt |
22 | |
23 | is |
24 | Create returns Persistent from XmlObjMgt; |
25 | ---Purpose: empty constructor |
26 | |
27 | Create (theElement : Element from XmlObjMgt) |
28 | returns Persistent from XmlObjMgt; |
29 | ---Purpose: constructor |
30 | |
31 | Create (theElement : Element from XmlObjMgt; |
32 | theRef : DOMString from XmlObjMgt) |
33 | returns Persistent from XmlObjMgt; |
34 | ---Purpose: constructor from sub-element of Element referenced by theRef |
35 | |
36 | CreateElement (me:in out; theParent: out Element from XmlObjMgt; |
37 | theType: DOMString from XmlObjMgt; |
38 | theID: Integer from Standard); |
39 | ---Purpose: myElement := <theType id="theID"/> |
40 | |
41 | SetId (me:in out; theId: Integer from Standard) |
42 | is static; |
43 | ---Level: Internal |
44 | |
45 | Element (me) returns Element from XmlObjMgt; |
46 | ---C++: inline |
47 | ---C++: return const & |
48 | ---C++: alias "inline operator const XmlObjMgt_Element&() const;" |
49 | ---Purpose: return myElement |
50 | |
51 | Element (me:in out) returns Element from XmlObjMgt; |
52 | ---C++: inline |
53 | ---C++: return & |
54 | ---C++: alias "inline operator XmlObjMgt_Element&();" |
55 | ---Purpose: return myElement |
56 | |
57 | Id(me) returns Integer from Standard |
58 | is static; |
59 | ---C++: inline |
60 | ---Level: Internal |
61 | |
62 | fields |
63 | myElement: Element from XmlObjMgt; |
64 | myID : Integer from Standard; |
65 | |
66 | end Persistent; |