Doxygen
DocDiaFile类 参考

Node representing a dia file 更多...

#include <docparser.h>

+ 类 DocDiaFile 继承关系图:
+ DocDiaFile 的协作图:

Public 成员函数

 DocDiaFile (DocParser &parser, DocNode *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
 
Kind kind () const override
 
bool parse ()
 
- Public 成员函数 继承自 DocDiagramFileBase< DocDiaFile >
 DocDiagramFileBase (DocParser &parser, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
 
QCString name () const
 
QCString file () const
 
QCString relPath () const
 
bool hasCaption () const
 
QCString width () const
 
QCString height () const
 
QCString context () const
 
QCString srcFile () const
 
int srcLine () const
 
- Public 成员函数 继承自 CompAccept< DocDiaFile >
 CompAccept (DocParser &parser)
 
void accept (DocVisitor *v) override
 
const DocNodeListchildren () const
 
DocNodeListchildren ()
 
- Public 成员函数 继承自 DocNode
 DocNode (DocParser &parser)
 
virtual ~DocNode ()
 
DocNodeparent () const
 
void setParent (DocNode *parent)
 
bool isPreformatted () const
 

额外继承的成员函数

- Public 类型 继承自 DocNode
enum  Kind {
  Kind_Root = 0, Kind_Word = 1, Kind_WhiteSpace = 2, Kind_Para = 3,
  Kind_AutoList = 4, Kind_AutoListItem = 5, Kind_Symbol = 6, Kind_URL = 7,
  Kind_StyleChange = 8, Kind_SimpleSect = 9, Kind_Title = 10, Kind_SimpleList = 11,
  Kind_SimpleListItem = 12, Kind_Section = 13, Kind_Verbatim = 14, Kind_XRefItem = 15,
  Kind_HtmlList = 16, Kind_HtmlListItem = 17, Kind_HtmlDescList = 18, Kind_HtmlDescData = 19,
  Kind_HtmlDescTitle = 20, Kind_HtmlTable = 21, Kind_HtmlRow = 22, Kind_HtmlCell = 23,
  Kind_HtmlCaption = 24, Kind_LineBreak = 25, Kind_HorRuler = 26, Kind_Anchor = 27,
  Kind_IndexEntry = 28, Kind_Internal = 29, Kind_HRef = 30, Kind_Include = 31,
  Kind_IncOperator = 32, Kind_HtmlHeader = 33, Kind_Image = 34, Kind_DotFile = 35,
  Kind_Link = 36, Kind_Ref = 37, Kind_Formula = 38, Kind_SecRefItem = 39,
  Kind_SecRefList = 40, Kind_SimpleSectSep = 41, Kind_LinkedWord = 42, Kind_ParamSect = 43,
  Kind_ParamList = 44, Kind_InternalRef = 45, Kind_Copy = 46, Kind_Text = 47,
  Kind_MscFile = 48, Kind_HtmlBlockQuote = 49, Kind_VhdlFlow = 50, Kind_ParBlock = 51,
  Kind_DiaFile = 52, Kind_Emoji = 53, Kind_Sep = 54
}
 
- Protected 类型 继承自 DocNode
enum  RefType { Unknown, Anchor, Section, Table }
 
- Protected 成员函数 继承自 DocNode
void setInsidePreformatted (bool p)
 
- Protected 属性 继承自 DocDiagramFileBase< DocDiaFile >
QCString m_name
 
QCString m_file
 
QCString m_relPath
 
QCString m_width
 
QCString m_height
 
QCString m_context
 
QCString m_srcFile
 
int m_srcLine
 
- Protected 属性 继承自 CompAccept< DocDiaFile >
DocNodeList m_children
 
- Protected 属性 继承自 DocNode
DocNodem_parent = 0
 
DocParserm_parser
 

详细描述

Node representing a dia file

在文件 docparser.h850 行定义.

构造及析构函数说明

◆ DocDiaFile()

DocDiaFile::DocDiaFile ( DocParser parser,
DocNode parent,
const QCString name,
const QCString context,
const QCString srcFile,
int  srcLine 
)

成员函数说明

◆ kind()

Kind DocDiaFile::kind ( ) const
inlineoverridevirtual

Returns the kind of node. Provides runtime type information

实现了 DocNode.

在文件 docparser.h855 行定义.

855 { return Kind_DiaFile; }

引用了 DocNode::Kind_DiaFile.

◆ parse()

bool DocDiaFile::parse ( )

在文件 docparser.cpp2795 行定义.

2796 {
2797  bool ok = false;
2799 
2800  bool ambig;
2802  if (fd==0 && m_name.right(4)!=".dia") // try with .dia extension as well
2803  {
2805  }
2806  if (fd)
2807  {
2808  m_file = fd->absFilePath();
2809  ok = true;
2810  if (ambig)
2811  {
2812  warn_doc_error(m_parser.context.fileName,m_parser.tokenizer.getLineNr(),"included dia file name %s is ambiguous.\n"
2813  "Possible candidates:\n%s",qPrint(m_name),
2815  );
2816  }
2817  }
2818  else
2819  {
2820  warn_doc_error(m_parser.context.fileName,m_parser.tokenizer.getLineNr(),"included dia file %s is not found "
2821  "in any of the paths specified via DIAFILE_DIRS!",qPrint(m_name));
2822  }
2823  return ok;
2824 }

引用了 FileDef::absFilePath(), CMD_DIAFILE, DocParser::context, DocParser::defaultHandleTitleAndSize(), Doxygen::diaFileNameLinkedMap, DocParserContext::fileName, findFileDef(), DocTokenizer::getLineNr(), CompAccept< DocDiaFile >::m_children, DocDiagramFileBase< DocDiaFile >::m_file, DocDiagramFileBase< DocDiaFile >::m_height, DocDiagramFileBase< DocDiaFile >::m_name, DocNode::m_parser, DocDiagramFileBase< DocDiaFile >::m_width, qPrint(), QCString::right(), showFileDefMatches(), DocParser::tokenizer , 以及 warn_doc_error().


该类的文档由以下文件生成:
findFileDef
FileDef * findFileDef(const FileNameLinkedMap *fnMap, const QCString &n, bool &ambig)
Definition: util.cpp:3222
DocParser::context
DocParserContext context
Definition: docparser.cpp:175
DocParserContext::relPath
QCString relPath
Definition: docparser.cpp:111
DocNode::Kind_DiaFile
@ Kind_DiaFile
Definition: docparser.h:152
Doxygen::diaFileNameLinkedMap
static FileNameLinkedMap * diaFileNameLinkedMap
Definition: doxygen.h:92
DocParser::tokenizer
DocTokenizer tokenizer
Definition: docparser.cpp:176
warn_doc_error
void warn_doc_error(const QCString &file, int line, const char *fmt,...)
Definition: message.cpp:186
DocDiagramFileBase< DocDiaFile >::srcLine
int srcLine() const
Definition: docparser.h:816
DocParser::defaultHandleTitleAndSize
void defaultHandleTitleAndSize(const int cmd, DocNode *parent, DocNodeList &children, QCString &width, QCString &height)
Definition: docparser.cpp:1209
CMD_DIAFILE
@ CMD_DIAFILE
Definition: cmdmapper.h:126
DocDiagramFileBase< DocDiaFile >::m_name
QCString m_name
Definition: docparser.h:819
DocParserContext::fileName
QCString fileName
Definition: docparser.cpp:110
DocDiagramFileBase< DocDiaFile >::name
QCString name() const
Definition: docparser.h:808
DocDiagramFileBase< DocDiaFile >::m_relPath
QCString m_relPath
Definition: docparser.h:821
DocNode::m_parser
DocParser & m_parser
Definition: docparser.h:184
DocTokenizer::getLineNr
int getLineNr(void)
DocDiagramFileBase< DocDiaFile >::m_file
QCString m_file
Definition: docparser.h:820
showFileDefMatches
QCString showFileDefMatches(const FileNameLinkedMap *fnMap, const QCString &n)
Definition: util.cpp:3308
DocDiagramFileBase< DocDiaFile >::context
QCString context() const
Definition: docparser.h:814
DocDiagramFileBase< DocDiaFile >::DocDiagramFileBase
DocDiagramFileBase(DocParser &parser, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Definition: docparser.h:805
DocDiagramFileBase< DocDiaFile >::m_height
QCString m_height
Definition: docparser.h:823
DocDiagramFileBase< DocDiaFile >::srcFile
QCString srcFile() const
Definition: docparser.h:815
FileDef::absFilePath
virtual QCString absFilePath() const =0
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
FileDef
A model of a file symbol.
Definition: filedef.h:73
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DocDiagramFileBase< DocDiaFile >::m_width
QCString m_width
Definition: docparser.h:822
CompAccept< DocDiaFile >::m_children
DocNodeList m_children
Definition: docparser.h:211
QCString::right
QCString right(size_t len) const
Definition: qcstring.h:217
DocNode::m_parent
DocNode * m_parent
Definition: docparser.h:182