Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-13 08:30:38

0001 // Created on: 2001-09-12
0002 // Created by: Alexander GRIGORIEV
0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef LDOM_CharacterData_HeaderFile
0017 #define LDOM_CharacterData_HeaderFile
0018 
0019 #include <LDOM_Node.hxx>
0020 
0021 class LDOM_BasicText;
0022 
0023 //  Class LDOM_CharacterData
0024 //
0025 
0026 class LDOM_CharacterData : public LDOM_Node
0027 {
0028 public:
0029   // ---------- PUBLIC METHODS ----------
0030 
0031   LDOM_CharacterData()
0032       : myLength(-1)
0033   {
0034   }
0035 
0036   // Empty constructor
0037 
0038   LDOM_CharacterData(const LDOM_CharacterData& theOther)
0039       : LDOM_Node(theOther),
0040         myLength(-1)
0041   {
0042   }
0043 
0044   // Copy constructor
0045 
0046   Standard_EXPORT LDOM_CharacterData& operator=(const LDOM_NullPtr* aNull);
0047   // Nullify
0048 
0049   Standard_EXPORT LDOM_CharacterData& operator=(const LDOM_CharacterData& anOther);
0050 
0051   // Assignment
0052 
0053   LDOMString getData() const { return getNodeValue(); }
0054 
0055   // Query data
0056 
0057   Standard_EXPORT void setData(const LDOMString& aValue);
0058   // Assign to data
0059 
0060   Standard_EXPORT Standard_Integer getLength() const;
0061   // Length of the string
0062 
0063 protected:
0064   // ---------- PROTECTED METHODS ----------
0065 
0066   LDOM_CharacterData(const LDOM_BasicText& aText, const Handle(LDOM_MemManager)& aDoc);
0067 
0068 private:
0069   // ------------ PRIVATE FIELDS -----------
0070   Standard_Integer myLength;
0071 };
0072 
0073 #endif