Skip to main content

The DocDotFile Class Reference

Node representing a dot file. More...

Declaration

class DocDotFile { ... }

Included Headers

#include <src/docnode.h>

Base class

classDocDiagramFileBase

Public Constructors Index

DocDotFile (DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)

Public Member Functions Index

boolparse ()

Description

Node representing a dot file.

Definition at line 712 of file docnode.h.

Public Constructors

DocDotFile()

DocDotFile::DocDotFile (DocParser * parser, DocNodeVariant * parent, const QCString & name, const QCString & context, const QCString & srcFile, int srcLine)

Public Member Functions

parse()

bool DocDotFile::parse ()

Declaration at line 717 of file docnode.h, definition at line 1097 of file docnode.cpp.

1098{
1099 bool ok = false;
1101
1102 bool ambig = false;
1104 if (fd==nullptr && !p->name.endsWith(".dot")) // try with .dot extension as well
1105 {
1106 fd = findFileDef(Doxygen::dotFileNameLinkedMap,p->name+".dot",ambig);
1107 }
1108 if (fd)
1109 {
1110 p->file = fd->absFilePath();
1111 ok = true;
1112 if (ambig)
1113 {
1114 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"included dot file name '{}' is ambiguous.\n"
1115 "Possible candidates:\n{}",p->name,
1117 );
1118 }
1119 }
1120 else
1121 {
1122 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"included dot file '{}' is not found "
1123 "in any of the paths specified via DOTFILE_DIRS!",p->name);
1124 }
1125 return ok;
1126}

References FileDef::absFilePath, DocCompoundNode::children, CMD_DOTFILE, DocDiagramFileBase::context, DocParser::defaultHandleTitleAndSize, Doxygen::dotFileNameLinkedMap, findFileDef, DocDiagramFileBase::p, DocNode::parser, showFileDefMatches, DocNode::thisVariant and warn_doc_error.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus by Doxygen 1.14.0.