File indexing completed on 2026-09-17 09:22:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XmlObjMgt_Persistent_HeaderFile
0017 #define _XmlObjMgt_Persistent_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021
0022 #include <XmlObjMgt_Element.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <XmlObjMgt_DOMString.hxx>
0025
0026
0027 class XmlObjMgt_Persistent
0028 {
0029 public:
0030 DEFINE_STANDARD_ALLOC
0031
0032
0033 Standard_EXPORT XmlObjMgt_Persistent();
0034
0035
0036 Standard_EXPORT XmlObjMgt_Persistent(const XmlObjMgt_Element& theElement);
0037
0038
0039 Standard_EXPORT XmlObjMgt_Persistent(const XmlObjMgt_Element& theElement,
0040 const XmlObjMgt_DOMString& theRef);
0041
0042
0043 Standard_EXPORT void CreateElement(XmlObjMgt_Element& theParent,
0044 const XmlObjMgt_DOMString& theType,
0045 const int theID);
0046
0047 Standard_EXPORT void SetId(const int theId);
0048
0049
0050 const XmlObjMgt_Element& Element() const;
0051 inline operator const XmlObjMgt_Element&() const;
0052
0053
0054 XmlObjMgt_Element& Element();
0055 inline operator XmlObjMgt_Element&();
0056
0057 int Id() const;
0058
0059 private:
0060 XmlObjMgt_Element myElement;
0061 int myID;
0062 };
0063
0064 #include <XmlObjMgt_Persistent.lxx>
0065
0066 #endif