Node representing a citation of some bibliographic reference.
Definition at line 243 of file docnode.h.
Definition at line 900 of file docnode.cpp.
901{
903
907 const CiteInfo *cite = ct.
find(target);
908
909 if (numBibFiles>0 && cite && !cite->
text().
isEmpty())
910 {
915
916
917 return;
918 }
920 if (numBibFiles==0)
921 {
922 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command found but no bib files specified via CITE_BIB_FILES!");
923 }
924 else if (cite==nullptr)
925 {
926 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '{}' for \\cite command",
927 target);
928 }
929 else
930 {
931 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command to '{}' does not have an associated number",
932 target);
933 }
934}
QCString anchorPrefix() const
const CiteInfo * find(const QCString &label) const
Return the citation info for a given label.
static CitationManager & instance()
QCString fileName() const
DocNode(DocParser *parser, DocNodeVariant *parent)
DocNodeVariant * parent()
bool isEmpty() const
Returns TRUE iff the string is empty.
#define Config_getList(name)
#define warn_doc_error(file, line, fmt,...)
virtual QCString text() const =0
virtual QCString label() const =0
QCString convertNameToFile(const QCString &name, bool allowDots, bool allowUnderscore)
References CitationManager::anchorPrefix(), ASSERT, Config_getList, convertNameToFile(), DocNode::DocNode(), FALSE, CitationManager::fileName(), CitationManager::find(), CitationManager::instance(), QCString::isEmpty(), CiteInfo::label(), m_anchor, m_file, m_ref, m_relPath, m_text, DocNode::parent(), DocNode::parser(), CiteInfo::text(), TRUE, and warn_doc_error.