File indexing completed on 2025-01-18 10:04:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef LDOMString_HeaderFile
0017 #define LDOMString_HeaderFile
0018
0019 #include <LDOMBasicString.hxx>
0020
0021 class LDOM_MemManager;
0022
0023
0024
0025
0026
0027
0028
0029
0030 class LDOMString : public LDOMBasicString
0031 {
0032 public:
0033
0034
0035 LDOMString () : myPtrDoc (NULL) {}
0036
0037
0038 LDOMString (const LDOMString& anOther)
0039 : LDOMBasicString (anOther), myPtrDoc (anOther.myPtrDoc) {}
0040
0041
0042 LDOMString (const Standard_Integer aValue)
0043 : LDOMBasicString (aValue), myPtrDoc (NULL) {}
0044
0045
0046
0047
0048 LDOMString (const char * aValue)
0049 : LDOMBasicString (aValue), myPtrDoc (NULL) {}
0050
0051
0052 const LDOM_MemManager& getOwnerDocument () const
0053 { return * myPtrDoc; }
0054
0055 LDOMString& operator = (const LDOM_NullPtr * aNull)
0056 { LDOMBasicString::operator= (aNull); return *this; }
0057
0058 LDOMString& operator = (const LDOMString& anOther)
0059 {
0060 myPtrDoc = anOther.myPtrDoc;
0061 LDOMBasicString::operator= (anOther);
0062 return * this;
0063 }
0064
0065 private:
0066 friend class LDOM_Document;
0067 friend class LDOM_Node;
0068 friend class LDOM_Element;
0069 friend class LDOM_BasicElement;
0070 friend class LDOM_BasicAttribute;
0071 friend class LDOM_BasicText;
0072
0073 static LDOMString CreateDirectString
0074 (const char * aValue,
0075 const LDOM_MemManager& aDoc);
0076
0077 LDOMString (const LDOMBasicString& anOther,
0078 const LDOM_MemManager& aDoc)
0079 : LDOMBasicString (anOther), myPtrDoc (&aDoc) {}
0080
0081
0082 LDOMString (const LDOMBasicString& anOther,
0083 const Handle(LDOM_MemManager)& aDoc);
0084
0085
0086 private:
0087
0088 const LDOM_MemManager * myPtrDoc;
0089 };
0090
0091 #endif