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

Class representing an 'set' tag in a template. More...

Inheritance diagram for TemplateNodeSet:
TemplateNodeCreator< TemplateNodeSet > TemplateNode

Classes

struct  Mapping
 

Public Member Functions

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

Private Attributes

Mappingm_mapping
 

Additional Inherited Members

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

Detailed Description

Class representing an 'set' tag in a template.

Definition at line 4138 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 4148 of file template.cpp.

References m_mapping, ExpressionParser::parse(), and TRACE.

{
TRACE(("{TemplateNodeSet(%s)\n",data.data()));
ExpressionParser expParser(parser,line);
// data format: name=expression
int j=data.find('=');
ExprAst *expr = 0;
if (j>0 && (expr = expParser.parse(data.mid(j+1))))
{
m_mapping = new Mapping(data.left(j),expr);
}
TRACE(("}TemplateNodeSet(%s)\n",data.data()));
}
TemplateNodeSet::~TemplateNodeSet ( )
inline

Definition at line 4162 of file template.cpp.

References m_mapping.

{
delete m_mapping;
}

Member Function Documentation

void TemplateNodeSet::render ( FTextStream ,
TemplateContext c 
)
inlinevirtual

Member Data Documentation

Mapping* TemplateNodeSet::m_mapping
private

Definition at line 4178 of file template.cpp.

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


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