"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2b/arxivXml.h" (12 Feb 2021, 911 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "arxivXml.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef ARXIVXML_H
    8 #define ARXIVXML_H
    9 
   10 #include "bibReference.h"
   11 
   12 #include <QXmlStreamReader>
   13 
   14 
   15 class arxivXml : public QXmlStreamReader
   16 {
   17 
   18 public:
   19     explicit arxivXml(const QString& xml);
   20     inline ~arxivXml() {}
   21 
   22     inline const bibReference& reference() const
   23     {
   24         return _reference;
   25     }
   26 
   27 
   28 private:
   29     void readReference();
   30 
   31     bool reading(const QString& tag);
   32     void appendAuthor(QStringList* authors);
   33     void processDate();
   34     void processId();
   35     void readField(const QString& field);
   36 
   37     bibReference _reference;
   38 };
   39 
   40 #endif