My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
TemplateNodeEncoding Class Reference

Class representing the 'encoding' tag in a template. More...

Inheritance diagram for TemplateNodeEncoding:
TemplateNodeCreator< TemplateNodeEncoding > TemplateNode

Public Member Functions

 TemplateNodeEncoding (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
 ~TemplateNodeEncoding ()
 
void render (FTextStream &ts, TemplateContext *c)
 
- Public Member Functions inherited from TemplateNodeCreator< TemplateNodeEncoding >
 TemplateNodeCreator (TemplateParser *parser, TemplateNode *parent, int line)
 
TemplateImplgetTemplate ()
 
- Public Member Functions inherited from TemplateNode
 TemplateNode (TemplateNode *parent)
 
virtual ~TemplateNode ()
 
TemplateNodeparent ()
 

Private Attributes

ExprAstm_encExpr
 
TemplateNodeList m_nodes
 

Additional Inherited Members

- Static Public Member Functions inherited from TemplateNodeCreator< TemplateNodeEncoding >
static TemplateNodecreateInstance (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
- Protected Member Functions inherited from TemplateNodeCreator< TemplateNodeEncoding >
void mkpath (TemplateContextImpl *ci, const QCString &fileName)
 
- Protected Attributes inherited from TemplateNodeCreator< TemplateNodeEncoding >
QCString m_templateName
 
int m_line
 

Detailed Description

Class representing the 'encoding' tag in a template.

Definition at line 4437 of file template.cpp.

Constructor & Destructor Documentation

TemplateNodeEncoding::TemplateNodeEncoding ( TemplateParser parser,
TemplateNode parent,
int  line,
const QCString &  data 
)
inline

Definition at line 4440 of file template.cpp.

References m_encExpr, m_nodes, TemplateNodeCreator< TemplateNodeEncoding >::m_templateName, TemplateParser::parse(), ExpressionParser::parse(), TemplateParser::removeNextToken(), TRACE, and TemplateParser::warn().

{
TRACE(("{TemplateNodeEncoding(%s)\n",data.data()));
ExpressionParser ep(parser,line);
if (data.isEmpty())
{
parser->warn(m_templateName,line,"encoding tag is missing encoding argument");
m_encExpr = 0;
}
else
{
m_encExpr = ep.parse(data);
}
QStrList stopAt;
stopAt.append("endencoding");
parser->parse(this,line,stopAt,m_nodes);
parser->removeNextToken(); // skip over endencoding
TRACE(("}TemplateNodeEncoding(%s)\n",data.data()));
}
TemplateNodeEncoding::~TemplateNodeEncoding ( )
inline

Definition at line 4460 of file template.cpp.

References m_encExpr.

{
delete m_encExpr;
}

Member Function Documentation

void TemplateNodeEncoding::render ( FTextStream ts,
TemplateContext c 
)
inlinevirtual

Member Data Documentation

ExprAst* TemplateNodeEncoding::m_encExpr
private

Definition at line 4483 of file template.cpp.

Referenced by render(), TemplateNodeEncoding(), and ~TemplateNodeEncoding().

TemplateNodeList TemplateNodeEncoding::m_nodes
private

Definition at line 4484 of file template.cpp.

Referenced by render(), and TemplateNodeEncoding().


The documentation for this class was generated from the following file: