Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
cite.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 2011 by Dimitri van Heesch
6
* Based on a patch by David Munger
7
*
8
* Permission to use, copy, modify, and distribute this software and its
9
* documentation under the terms of the GNU General Public License is hereby
10
* granted. No representations are made about the suitability of this software
11
* for any purpose. It is provided "as is" without express or implied warranty.
12
* See the GNU General Public License for more details.
13
*
14
* Documents produced by Doxygen are derivative works derived from the
15
* input used in their production; they are not affected by this license.
16
*
17
*/
18
19
#ifndef CITEDB_H
20
#define CITEDB_H
21
22
#include <
qdict.h
>
23
24
class
FTextStream
;
25
26
/// String constants for citations
27
struct
CiteConsts
28
{
29
static
const
QCString
fileName
;
30
static
const
QCString
anchorPrefix
;
31
};
32
33
/// Citation-related data.
34
struct
CiteInfo
35
{
36
CiteInfo
(
const
char
*label_,
const
char
*text_=0,
const
char
*fullText_=0,
37
const
char
*ref_=0) :
38
label
(label_), text(text_), fullText(fullText_), ref(ref_)
39
{ }
40
41
CiteInfo
(
const
CiteInfo
&o)
42
{
label
=o.
label
.
copy
(); text=o.
text
.
copy
(); fullText=o.
fullText
.
copy
(); ref=o.
ref
.
copy
(); }
43
44
QCString
label
;
45
QCString
text
;
46
QCString
fullText
;
47
QCString
ref
;
48
49
};
50
51
/**
52
* @brief Cite database access class.
53
* @details This class provides access do the database of bibliographic
54
* references through the bibtex backend.
55
*/
56
class
CiteDict
57
{
58
public
:
59
/** Create the database, with an expected maximum of \a size entries */
60
CiteDict
(
int
size
);
61
62
// /** Resolve references to citations */
63
// void resolve();
64
65
/** Insert a citation identified by \a label into the database */
66
void
insert(
const
char
*
label
);
67
68
/** Return the citation info for a given \a label */
69
CiteInfo
*find(
const
char
*label)
const
;
70
71
/** Generate the citations page */
72
void
generatePage()
const
;
73
74
/** clears the database */
75
void
clear
();
76
77
/** return TRUE if there are no citations.
78
* Only valid after calling resolve()
79
*/
80
bool
isEmpty()
const
;
81
82
/** writes the latex code for the standard bibliography
83
* section to text stream \a t
84
*/
85
void
writeLatexBibliography(
FTextStream
&
t
);
86
87
private
:
88
// bool writeAux();
89
// bool writeBst();
90
// bool execute();
91
// void parse();
92
// void clean();
93
QDict<CiteInfo>
m_entries
;
94
// QList<QCString> m_ordering;
95
QCString
m_baseFileName
;
96
};
97
98
#endif
CiteInfo::CiteInfo
CiteInfo(const char *label_, const char *text_=0, const char *fullText_=0, const char *ref_=0)
Definition:
cite.h:36
CiteInfo::label
QCString label
Definition:
cite.h:44
CiteDict::m_entries
QDict< CiteInfo > m_entries
Definition:
cite.h:93
test_nxdot.label
label
Definition:
test_nxdot.py:6
FTextStream
Simplified and optimized version of QTextStream.
Definition:
ftextstream.h:11
CiteInfo::CiteInfo
CiteInfo(const CiteInfo &o)
Definition:
cite.h:41
QCString::copy
QCString copy() const
Definition:
qcstring.h:250
CiteDict::m_baseFileName
QCString m_baseFileName
Definition:
cite.h:95
util::size
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition:
StdUtils.h:92
CiteInfo
Citation-related data.
Definition:
cite.h:34
CiteInfo::fullText
QCString fullText
Definition:
cite.h:46
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
CiteConsts
String constants for citations.
Definition:
cite.h:27
CiteInfo::ref
QCString ref
Definition:
cite.h:47
CiteConsts::anchorPrefix
static const QCString anchorPrefix
Definition:
cite.h:30
CiteDict
Cite database access class.
Definition:
cite.h:56
qdict.h
CiteConsts::fileName
static const QCString fileName
Definition:
cite.h:29
CiteInfo::text
QCString text
Definition:
cite.h:45
clear
vector< vector< double > > clear
Definition:
INukeNucleonCorr.cxx:114
QCString
Definition:
qcstring.h:131
Generated by
1.8.11