Back to home page

EIC code displayed by LXR

 
 

    


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

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   Standard_Boolean startElement ();
0035   //    redefined method from LDOMParser
0036   //    stops parsing when the attributes of header element have been read
0037 
0038   Standard_Boolean endElement ();
0039   //    redefined method from LDOMParser
0040   //    stops parsing when the info element with all sub-elements has been read
0041 
0042   const LDOM_Element& GetElement () const { return myElement; }
0043   //    returns the LDOM_Element containing data about file format
0044 
0045  private:
0046   // ---------- PRIVATE FIELDS ----------
0047 
0048   LDOM_Element          myElement;
0049   LDOMString            myStartElementName;
0050   LDOMString            myEndElementName;
0051 };
0052 
0053 #endif