Skip to main content

The DocDiaFile Class Reference

Node representing a dia file. More...

Declaration

class DocDiaFile { ... }

Included Headers

#include <src/docnode.h>

Base class

classDocDiagramFileBase

Public Constructors Index

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

Public Member Functions Index

boolparse ()

Description

Node representing a dia file.

Definition at line 730 of file docnode.h.

Public Constructors

DocDiaFile()

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

Public Member Functions

parse()

bool DocDiaFile::parse ()

Declaration at line 735 of file docnode.h, definition at line 1175 of file docnode.cpp.

1176{
1177 bool ok = false;
1179
1180 bool ambig = false;
1182 if (fd==nullptr && !p->name.endsWith(".dia")) // try with .dia extension as well
1183 {
1184 fd = findFileDef(Doxygen::diaFileNameLinkedMap,p->name+".dia",ambig);
1185 }
1186 if (fd)
1187 {
1188 p->file = fd->absFilePath();
1189 ok = true;
1190 if (ambig)
1191 {
1192 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"included dia file name '{}' is ambiguous.\n"
1193 "Possible candidates:\n{}",p->name,
1195 );
1196 }
1197 }
1198 else
1199 {
1200 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"included dia file '{}' is not found "
1201 "in any of the paths specified via DIAFILE_DIRS!",p->name);
1202 }
1203 return ok;
1204}

References FileDef::absFilePath, DocCompoundNode::children, CMD_DIAFILE, DocDiagramFileBase::context, DocParser::defaultHandleTitleAndSize, Doxygen::diaFileNameLinkedMap, 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.