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

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

Inheritance diagram for TemplateNodeCycle:
TemplateNodeCreator< TemplateNodeCycle > TemplateNode

Public Member Functions

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

Private Attributes

uint m_index
 
QList< ExprAstm_args
 

Additional Inherited Members

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

Detailed Description

Class representing an 'cycle' tag in a template.

Definition at line 4064 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 4067 of file template.cpp.

References m_args, m_index, ExpressionParser::parse(), split(), TemplateParser::templateName(), TRACE, and TemplateParser::warn().

{
TRACE(("{TemplateNodeCycle(%s)\n",data.data()));
m_args.setAutoDelete(TRUE);
ExpressionParser expParser(parser,line);
QValueList<QCString> args = split(data," ");
QValueListIterator<QCString> it = args.begin();
while (it!=args.end())
{
ExprAst *expr = expParser.parse(*it);
if (expr)
{
m_args.append(expr);
}
++it;
}
if (m_args.count()<2)
{
parser->warn(parser->templateName(),line,"expected at least two arguments for cycle command, got %d",m_args.count());
}
TRACE(("}TemplateNodeCycle(%s)\n",data.data()));
}

Member Function Documentation

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

Member Data Documentation

QList<ExprAst> TemplateNodeCycle::m_args
private

Definition at line 4132 of file template.cpp.

Referenced by render(), and TemplateNodeCycle().

uint TemplateNodeCycle::m_index
private

Definition at line 4131 of file template.cpp.

Referenced by render(), and TemplateNodeCycle().


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