Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-04 09:15:45

0001 // Created on: 2001-07-30
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 PCDM_DOMHeaderParser_HeaderFile
0017 #define PCDM_DOMHeaderParser_HeaderFile
0018 
0019 #include <LDOMParser.hxx>
0020 
0021 //  Block of comments describing class PCDM_DOMHeaderParser
0022 
0023 class PCDM_DOMHeaderParser : public LDOMParser
0024 {
0025 public:
0026   // ---------- PUBLIC METHODS ----------
0027 
0028   void SetStartElementName(const TCollection_AsciiString& aStartElementName);
0029   //    set the name of the element which would stop parsing when detected
0030 
0031   void SetEndElementName(const TCollection_AsciiString& anEndElementName);
0032   //    set the name of the element which would stop parsing when parsed
0033 
0034   bool startElement() override;
0035   //    redefined method from LDOMParser
0036   //    stops parsing when the attributes of header element have been read
0037 
0038   bool endElement() override;
0039 
0040   //    redefined method from LDOMParser
0041   //    stops parsing when the info element with all sub-elements has been read
0042 
0043   const LDOM_Element& GetElement() const { return myElement; }
0044 
0045   //    returns the LDOM_Element containing data about file format
0046 
0047 private:
0048   // ---------- PRIVATE FIELDS ----------
0049 
0050   LDOM_Element myElement;
0051   LDOMString   myStartElementName;
0052   LDOMString   myEndElementName;
0053 };
0054 
0055 #endif