The DocHRef
Class Reference
Node representing a Hypertext reference. More...
Declaration
class DocHRef { ... }
Base class
Public Constructors Index
| DocHRef (DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs, const QCString &url, const QCString &relPath, const QCString &file) |
|
|
|
Public Member Functions Index
Private Member Attributes Index
Description
Node representing a Hypertext reference.
Definition at line 822 of file docnode.h.
Public Constructors
DocHRef()
Public Member Functions
attribs()
const HtmlAttribList & DocHRef::attribs () |
|
inline
|
file()
QCString DocHRef::file () |
|
inline
|
parse()
Declaration at line 829 of file docnode.h, definition at line 1489 of file docnode.cpp.
1490{
1492 Token retval(TokenRetval::RetVal_OK);
1494
1496 while (!tok.is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1497 {
1499 {
1500 switch (tok.value())
1501 {
1502 case TokenRetval::TK_HTMLTAG:
1503 {
1506 {
1507 goto endhref;
1508 }
1510 {
1512 }
1513 else
1514 {
1515 warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"Unexpected html tag <{}{}> found within <a href=...> context",
1516 parser()->context.token->endTag?"/":"",parser()->context.token->name);
1517 }
1518 }
1519 break;
1520 default:
1522 break;
1523 }
1524 }
1526 }
1527 if (tok.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1528 {
1530 " <a href=...> tag");
1531 }
1532endhref:
1534 return retval;
1535}
References DocNodeList::append, TokenInfo::attribs, AUTO_TRACE, DocCompoundNode::children, DocParser::context, DocParser::errorHandleDefaultToken, DocParser::handlePendingStyleCommands, HTML_A, HTML_BR, Mappers::htmlTagMapper, Token::is_any_of, DocTokenizer::lex, DocNode::parser, DocNode::thisVariant, DocParserContext::token, DocParser::tokenizer, Token::value and warn_doc_error.
relPath()
QCString DocHRef::relPath () |
|
inline
|
url()
Private Member Attributes
m_attribs
HtmlAttribList DocHRef::m_attribs |
|
m_file
m_relPath
QCString DocHRef::m_relPath |
|
m_url
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.