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

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

Inheritance diagram for TemplateNodeCloseSubIndex:
TemplateNodeCreator< TemplateNodeCloseSubIndex > TemplateNode

Public Member Functions

 TemplateNodeCloseSubIndex (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
void render (FTextStream &, TemplateContext *c)
 
- Public Member Functions inherited from TemplateNodeCreator< TemplateNodeCloseSubIndex >
 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< TemplateNodeCloseSubIndex >
static TemplateNodecreateInstance (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
- Protected Member Functions inherited from TemplateNodeCreator< TemplateNodeCloseSubIndex >
void mkpath (TemplateContextImpl *ci, const QCString &fileName)
 
- Protected Attributes inherited from TemplateNodeCreator< TemplateNodeCloseSubIndex >
QCString m_templateName
 
int m_line
 

Detailed Description

Class representing an 'closesubindex' tag in a template.

Definition at line 3817 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 3820 of file template.cpp.

3822  {
3823  TRACE(("{TemplateNodeCloseSubIndex(%s)\n",data.data()));
3824  m_name = data.stripWhiteSpace();
3825  if (m_name.isEmpty())
3826  {
3827  parser->warn(parser->templateName(),line,"Missing argument for closesubindex tag");
3828  }
3829  else if (m_name.find(' ')!=-1 || m_name.isEmpty())
3830  {
3831  parser->warn(parser->templateName(),line,"Expected single argument for closesubindex tag got '%s'",data.data());
3832  m_name="";
3833  }
3834  TRACE(("}TemplateNodeCloseSubIndex(%s)\n",data.data()));
3835  }
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 TemplateNodeCloseSubIndex::render ( FTextStream ,
TemplateContext c 
)
inlinevirtual

Implements TemplateNode.

Definition at line 3836 of file template.cpp.

3837  {
3838  TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
3839  if (ci==0) return; // should not happen
3840  if (!m_name.isEmpty())
3841  {
3843  ci->closeSubIndex(m_name);
3844  }
3845  }
bool isEmpty() const
Definition: qcstring.h:189
Internal class representing the implementation of a template context.
Definition: template.cpp:511
void closeSubIndex(const QCString &indexName)
Definition: template.cpp:2461
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:540

Member Data Documentation

QCString TemplateNodeCloseSubIndex::m_name
private

Definition at line 3847 of file template.cpp.


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