0022627: Change OCCT memory management defaults
[occt.git] / src / LDOM / LDOM_CharacterData.hxx
CommitLineData
7fd59977 1// File: LDOM_CharacterData.hxx
2// Created: 12.09.01 14:53:13
3// Author: Alexander GRIGORIEV
4// Copyright: Open Cascade 2001
5
6
7#ifndef LDOM_CharacterData_HeaderFile
8#define LDOM_CharacterData_HeaderFile
9
10#include <LDOM_Node.hxx>
11
12class LDOM_BasicText;
13
14// Class LDOM_CharacterData
15//
16
17class LDOM_CharacterData : public LDOM_Node
18{
19 public:
20 // ---------- PUBLIC METHODS ----------
21
22 LDOM_CharacterData () : myLength (-1) {}
23 // Empty constructor
24
25 LDOM_CharacterData (const LDOM_CharacterData& theOther)
26 : LDOM_Node (theOther), myLength (-1) {}
27 // Copy constructor
28
29 Standard_EXPORT LDOM_CharacterData&
30 operator = (const LDOM_NullPtr * aNull);
31 // Nullify
32
33 Standard_EXPORT LDOM_CharacterData&
34 operator = (const LDOM_CharacterData& anOther);
35 // Assignment
36
37 LDOMString getData () const { return getNodeValue(); }
38 // Query data
39
40 Standard_EXPORT void setData (const LDOMString& aValue);
41 // Assign to data
42
43 Standard_EXPORT Standard_Integer
44 getLength () const;
45 // Length of the string
46
47 protected:
48 // ---------- PROTECTED METHODS ----------
49
50 LDOM_CharacterData (const LDOM_BasicText& aText,
51 const Handle(LDOM_MemManager)& aDoc);
52 private:
53 // ------------ PRIVATE FIELDS -----------
54 Standard_Integer myLength;
55
56};
57
58#endif