Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:12

0001 // Created on: 2001-06-26
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_Attr_HeaderFile
0017 #define LDOM_Attr_HeaderFile
0018 
0019 #include <LDOM_Node.hxx>
0020 
0021 class LDOM_BasicAttribute;
0022 
0023 //  Class LDOM_Attr
0024 //
0025 
0026 class LDOM_Attr : public LDOM_Node
0027 {
0028  public:
0029   // ---------- PUBLIC METHODS ----------
0030 
0031   LDOM_Attr () {}
0032   //    Empty constructor
0033 
0034   LDOM_Attr (const LDOM_Attr& anOther) : LDOM_Node (anOther) {}
0035   //    Copy constructor
0036 
0037   LDOM_Attr&            operator =      (const LDOM_NullPtr * aNull)
0038                     { return (LDOM_Attr&) LDOM_Node::operator = (aNull); }
0039   //    Nullify
0040 
0041   LDOM_Attr&            operator =      (const LDOM_Attr& anOther)
0042                     { return (LDOM_Attr&) LDOM_Node::operator = (anOther); }
0043   //    Assignment
0044 
0045   LDOMString            getName         () const { return getNodeName (); }
0046 
0047   LDOMString            getValue        () const { return getNodeValue(); }
0048 
0049   Standard_EXPORT void  setValue        (const LDOMString& aValue);
0050 
0051  protected:
0052   friend class LDOM_Element;
0053   // ---------- PROTECTED METHODS ----------
0054 
0055   LDOM_Attr                             (const LDOM_BasicAttribute&     anAttr,
0056                                          const Handle(LDOM_MemManager)& aDoc);
0057 
0058  private:
0059   // ---------- PRIVATE FIELDS ----------
0060 
0061 };
0062 
0063 #endif