File indexing completed on 2025-01-18 10:05:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XmlObjMgt_HeaderFile
0017 #define _XmlObjMgt_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <XmlObjMgt_DOMString.hxx>
0024 #include <Standard_Boolean.hxx>
0025 #include <XmlObjMgt_Element.hxx>
0026 #include <Standard_CString.hxx>
0027 #include <Standard_Real.hxx>
0028 class TCollection_ExtendedString;
0029 class TCollection_AsciiString;
0030
0031
0032
0033
0034
0035 class XmlObjMgt
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043 Standard_EXPORT static const XmlObjMgt_DOMString& IdString();
0044
0045
0046 Standard_EXPORT static Standard_Boolean SetExtendedString (XmlObjMgt_Element& theElement, const TCollection_ExtendedString& theString);
0047
0048
0049 Standard_EXPORT static Standard_Boolean GetExtendedString (const XmlObjMgt_Element& theElement, TCollection_ExtendedString& theString);
0050
0051
0052 Standard_EXPORT static XmlObjMgt_DOMString GetStringValue (const XmlObjMgt_Element& theElement);
0053
0054
0055
0056
0057
0058 Standard_EXPORT static void SetStringValue (XmlObjMgt_Element& theElement, const XmlObjMgt_DOMString& theData, const Standard_Boolean isClearText = Standard_False);
0059
0060
0061
0062 Standard_EXPORT static Standard_Boolean GetTagEntryString (const XmlObjMgt_DOMString& theTarget, TCollection_AsciiString& theTagEntry);
0063
0064
0065
0066 Standard_EXPORT static void SetTagEntryString (XmlObjMgt_DOMString& theSource, const TCollection_AsciiString& theTagEntry);
0067
0068 Standard_EXPORT static XmlObjMgt_Element FindChildElement (const XmlObjMgt_Element& theSource, const Standard_Integer theObjId);
0069
0070 Standard_EXPORT static XmlObjMgt_Element FindChildByRef (const XmlObjMgt_Element& theSource, const XmlObjMgt_DOMString& theRefName);
0071
0072 Standard_EXPORT static XmlObjMgt_Element FindChildByName (const XmlObjMgt_Element& theSource, const XmlObjMgt_DOMString& theName);
0073
0074 Standard_EXPORT static Standard_Boolean GetInteger (Standard_CString& theString, Standard_Integer& theValue);
0075
0076 Standard_EXPORT static Standard_Boolean GetReal (Standard_CString& theString, Standard_Real& theValue);
0077
0078 Standard_EXPORT static Standard_Boolean GetReal (const XmlObjMgt_DOMString& theString, Standard_Real& theValue);
0079
0080 };
0081
0082 #endif