Node representing a citation of some bibliographic reference.
Definition at line 243 of file docnode.h.
Definition at line 887 of file docnode.cpp.
888{
890
894 const CiteInfo *cite = ct.
find(target);
895
896 if (numBibFiles>0 && cite && !cite->
text().
isEmpty())
897 {
902
903
904 return;
905 }
907 if (numBibFiles==0)
908 {
909 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command found but no bib files specified via CITE_BIB_FILES!");
910 }
911 else if (cite==nullptr)
912 {
913 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '%s' for \\cite command",
915 }
916 else
917 {
918 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command to '%s' does not have an associated number",
920 }
921}
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,...)
const char * qPrint(const char *s)
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(), qPrint(), CiteInfo::text(), TRUE, and warn_doc_error.