Doxygen
DocMscFile类 参考

Node representing a msc file 更多...

#include <docparser.h>

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

Public 成员函数

 DocMscFile (DocParser &parser, DocNode *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
 
Kind kind () const override
 
bool parse ()
 
- Public 成员函数 继承自 DocDiagramFileBase< DocMscFile >
 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< DocMscFile >
 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< DocMscFile >
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< DocMscFile >
DocNodeList m_children
 
- Protected 属性 继承自 DocNode
DocNodem_parent = 0
 
DocParserm_parser
 

详细描述

Node representing a msc file

在文件 docparser.h840 行定义.

构造及析构函数说明

◆ DocMscFile()

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

成员函数说明

◆ kind()

Kind DocMscFile::kind ( ) const
inlineoverridevirtual

Returns the kind of node. Provides runtime type information

实现了 DocNode.

在文件 docparser.h845 行定义.

845 { return Kind_MscFile; }

引用了 DocNode::Kind_MscFile.

◆ parse()

bool DocMscFile::parse ( )

在文件 docparser.cpp2754 行定义.

2755 {
2756  bool ok = false;
2758 
2759  bool ambig;
2761  if (fd==0 && m_name.right(4)!=".msc") // try with .msc extension as well
2762  {
2764  }
2765  if (fd)
2766  {
2767  m_file = fd->absFilePath();
2768  ok = true;
2769  if (ambig)
2770  {
2771  warn_doc_error(m_parser.context.fileName,m_parser.tokenizer.getLineNr(),"included msc file name %s is ambiguous.\n"
2772  "Possible candidates:\n%s",qPrint(m_name),
2774  );
2775  }
2776  }
2777  else
2778  {
2779  warn_doc_error(m_parser.context.fileName,m_parser.tokenizer.getLineNr(),"included msc file %s is not found "
2780  "in any of the paths specified via MSCFILE_DIRS!",qPrint(m_name));
2781  }
2782  return ok;
2783 }

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


该类的文档由以下文件生成:
DocNode::Kind_MscFile
@ Kind_MscFile
Definition: docparser.h:148
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
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< DocMscFile >::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
DocDiagramFileBase< DocMscFile >::m_name
QCString m_name
Definition: docparser.h:819
DocParserContext::fileName
QCString fileName
Definition: docparser.cpp:110
DocDiagramFileBase< DocMscFile >::name
QCString name() const
Definition: docparser.h:808
DocDiagramFileBase< DocMscFile >::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< DocMscFile >::m_file
QCString m_file
Definition: docparser.h:820
showFileDefMatches
QCString showFileDefMatches(const FileNameLinkedMap *fnMap, const QCString &n)
Definition: util.cpp:3308
CMD_MSCFILE
@ CMD_MSCFILE
Definition: cmdmapper.h:112
DocDiagramFileBase< DocMscFile >::context
QCString context() const
Definition: docparser.h:814
DocDiagramFileBase< DocMscFile >::DocDiagramFileBase
DocDiagramFileBase(DocParser &parser, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Definition: docparser.h:805
DocDiagramFileBase< DocMscFile >::m_height
QCString m_height
Definition: docparser.h:823
DocDiagramFileBase< DocMscFile >::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
Doxygen::mscFileNameLinkedMap
static FileNameLinkedMap * mscFileNameLinkedMap
Definition: doxygen.h:91
FileDef
A model of a file symbol.
Definition: filedef.h:73
DocNode::parent
DocNode * parent() const
Definition: docparser.h:166
DocDiagramFileBase< DocMscFile >::m_width
QCString m_width
Definition: docparser.h:822
CompAccept< DocMscFile >::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