b311480e |
1 | // Created on: 2001-08-01 |
2 | // Created by: Alexander GRIGORIEV |
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 | //======================================================================= |
17 | //function : Element |
18 | //purpose : |
19 | //======================================================================= |
20 | inline const XmlObjMgt_Element& XmlObjMgt_Persistent::Element() const |
21 | { |
22 | return myElement; |
23 | } |
24 | |
25 | //======================================================================= |
26 | //function : Element |
27 | //purpose : |
28 | //======================================================================= |
29 | inline XmlObjMgt_Element& XmlObjMgt_Persistent::Element() |
30 | { |
31 | return myElement; |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : operator XmlObjMgt_Element |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | inline XmlObjMgt_Persistent::operator const XmlObjMgt_Element&() const |
40 | { |
41 | return myElement; |
42 | } |
43 | |
44 | //======================================================================= |
45 | //function : operator XmlObjMgt_Element |
46 | //purpose : |
47 | //======================================================================= |
48 | |
49 | inline XmlObjMgt_Persistent::operator XmlObjMgt_Element&() |
50 | { |
51 | return myElement; |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : Id |
56 | //purpose : |
57 | //======================================================================= |
58 | inline Standard_Integer XmlObjMgt_Persistent::Id() const |
59 | { |
60 | return myID; |
61 | } |