Public Member Functions | Private Attributes | List of all members
TemplateNodeOpenSubIndex Class Reference

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

Inheritance diagram for TemplateNodeOpenSubIndex:
TemplateNodeCreator< TemplateNodeOpenSubIndex > TemplateNode

Public Member Functions

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

Private Attributes

QCString m_name
 

Additional Inherited Members

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

Detailed Description

Class representing an 'opensubindex' tag in a template.

Definition at line 3781 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 3784 of file template.cpp.

3786  {
3787  TRACE(("{TemplateNodeOpenSubIndex(%s)\n",data.data()));
3788  m_name = data.stripWhiteSpace();
3789  if (m_name.isEmpty())
3790  {
3791  parser->warn(parser->templateName(),line,"Missing argument for opensubindex tag");
3792  }
3793  else if (m_name.find(' ')!=-1)
3794  {
3795  parser->warn(parser->templateName(),line,"Expected single argument for opensubindex tag got '%s'",data.data());
3796  m_name="";
3797  }
3798  TRACE(("}TemplateNodeOpenSubIndex(%s)\n",data.data()));
3799  }
QCString stripWhiteSpace() const
Definition: qcstring.cpp:295
bool isEmpty() const
Definition: qcstring.h:189
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:41
TemplateNode * parent()
Definition: template.cpp:1647
const char * data() const
Definition: qcstring.h:207
void line(double t, double *p, double &x, double &y, double &z)
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

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

Implements TemplateNode.

Definition at line 3800 of file template.cpp.

3801  {
3802  TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
3803  if (ci==0) return; // should not happen
3804  if (!m_name.isEmpty())
3805  {
3807  ci->openSubIndex(m_name);
3808  }
3809  }
bool isEmpty() const
Definition: qcstring.h:189
Internal class representing the implementation of a template context.
Definition: template.cpp:511
void openSubIndex(const QCString &indexName)
Definition: template.cpp:2440
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:540

Member Data Documentation

QCString TemplateNodeOpenSubIndex::m_name
private

Definition at line 3811 of file template.cpp.


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