cb2bib  2.0.1
About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.
  Fossies Dox: cb2bib-2.0.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

journalDB.h
Go to the documentation of this file.
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 JOURNALDB_H
8 #define JOURNALDB_H
9 
10 #include <QString>
11 #include <QStringList>
12 #include <QVarLengthArray>
13 
14 
15 /**
16  Database of Journal Names
17 
18  @author Pere Constans
19 */
20 class journalDB
21 {
22 
23 public:
24  explicit journalDB(const QString& dbfile);
25  inline ~journalDB() {}
26 
27  QString retrieve(const QString& JQuery) const;
28  QString retrieveAlternate(const QString& JQuery) const;
29  QString retrieveAlternateFull(const QString& JQuery) const;
30  QString retrieveFull(const QString& JQuery) const;
31 
32  inline int count() const
33  {
34  return _nitems;
35  }
36  inline const QString& retrieve(const int index) const
37  {
38  return JAbbrev.at(index);
39  }
40  inline const QString& retrieveFull(const int index) const
41  {
42  return JExtended.at(index);
43  }
44  inline const QString& fullsimplified(const int index) const
45  {
46  return JAbbrev_simp.at(index);
47  }
48  inline const QString& fullsimplifiedFull(const int index) const
49  {
50  return JExtended_simp.at(index);
51  }
52  inline const QStringList& abbreviatedList() const
53  {
54  return JAbbrev;
55  }
56 
57 
58 private:
59  QStringList JAbbrev;
60  QStringList JCode;
61  QStringList JExtended;
62  QVarLengthArray<QString> JAbbrev_simp;
63  QVarLengthArray<QString> JExtended_simp;
64  int _nitems;
65 };
66 
67 #endif
QString retrieveAlternate(const QString &JQuery) const
Definition: journalDB.cpp:212
QStringList JExtended
Definition: journalDB.h:61
const QString & retrieveFull(const int index) const
Definition: journalDB.h:40
const QStringList & abbreviatedList() const
Definition: journalDB.h:52
QStringList JAbbrev
Definition: journalDB.h:59
QVarLengthArray< QString > JExtended_simp
Definition: journalDB.h:63
const QString & retrieve(const int index) const
Definition: journalDB.h:36
QString retrieveFull(const QString &JQuery) const
Definition: journalDB.cpp:179
QString retrieveAlternateFull(const QString &JQuery) const
Definition: journalDB.cpp:248
const QString & fullsimplifiedFull(const int index) const
Definition: journalDB.h:48
int count() const
Definition: journalDB.h:32
QVarLengthArray< QString > JAbbrev_simp
Definition: journalDB.h:62
QString retrieve(const QString &JQuery) const
Definition: journalDB.cpp:148
QStringList JCode
Definition: journalDB.h:60
const QString & fullsimplified(const int index) const
Definition: journalDB.h:44
journalDB(const QString &dbfile)
Definition: journalDB.cpp:16
int _nitems
Definition: journalDB.h:64
~journalDB()
Definition: journalDB.h:25