Node representing a citation of some bibliographic reference.
Definition at line 243 of file docnode.h.
Definition at line 894 of file docnode.cpp.
895{
897
901 const CiteInfo *cite = ct.
find(target);
902
903 if (numBibFiles>0 && cite && !cite->
text().
isEmpty())
904 {
909
910
911 return;
912 }
914 if (numBibFiles==0)
915 {
916 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command found but no bib files specified via CITE_BIB_FILES!");
917 }
918 else if (cite==nullptr)
919 {
920 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '{}' for \\cite command",
921 target);
922 }
923 else
924 {
925 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command to '{}' does not have an associated number",
926 target);
927 }
928}
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.