Parser for templates. More...
Public Member Functions | |
TemplateParser (const TemplateEngine *engine, const QCString &templateName, QList< TemplateToken > &tokens) | |
void | parse (TemplateNode *parent, int line, const QStrList &stopAt, QList< TemplateNode > &nodes) |
bool | hasNextToken () const |
TemplateToken * | takeNextToken () |
void | removeNextToken () |
void | prependToken (const TemplateToken *token) |
const TemplateToken * | currentToken () const |
QCString | templateName () const |
void | warn (const char *fileName, int line, const char *fmt,...) const |
Private Attributes | |
const TemplateEngine * | m_engine |
QCString | m_templateName |
QList< TemplateToken > & | m_tokens |
Parser for templates.
Definition at line 1656 of file template.cpp.
TemplateParser::TemplateParser | ( | const TemplateEngine * | engine, |
const QCString & | templateName, | ||
QList< TemplateToken > & | tokens | ||
) |
Definition at line 4661 of file template.cpp.
const TemplateToken * TemplateParser::currentToken | ( | ) | const |
Definition at line 4757 of file template.cpp.
bool TemplateParser::hasNextToken | ( | ) | const |
Definition at line 4747 of file template.cpp.
void TemplateParser::parse | ( | TemplateNode * | parent, |
int | line, | ||
const QStrList & | stopAt, | ||
QList< TemplateNode > & | nodes | ||
) |
Definition at line 4668 of file template.cpp.
void TemplateParser::prependToken | ( | const TemplateToken * | token | ) |
Definition at line 4767 of file template.cpp.
void TemplateParser::removeNextToken | ( | ) |
Definition at line 4762 of file template.cpp.
TemplateToken * TemplateParser::takeNextToken | ( | ) |
Definition at line 4752 of file template.cpp.
|
inline |
Definition at line 1668 of file template.cpp.
void TemplateParser::warn | ( | const char * | fileName, |
int | line, | ||
const char * | fmt, | ||
... | |||
) | const |
Definition at line 4772 of file template.cpp.
|
private |
Definition at line 1671 of file template.cpp.
|
private |
Definition at line 1672 of file template.cpp.
|
private |
Definition at line 1673 of file template.cpp.