My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 3957 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 3960 of file template.cpp.

References m_name, TemplateParser::templateName(), TRACE, and TemplateParser::warn().

{
TRACE(("{TemplateNodeCloseSubIndex(%s)\n",data.data()));
m_name = data.stripWhiteSpace();
if (m_name.isEmpty())
{
parser->warn(parser->templateName(),line,"Missing argument for closesubindex tag");
}
else if (m_name.find(' ')!=-1 || m_name.isEmpty())
{
parser->warn(parser->templateName(),line,"Expected single argument for closesubindex tag got '%s'",data.data());
m_name="";
}
TRACE(("}TemplateNodeCloseSubIndex(%s)\n",data.data()));
}

Member Function Documentation

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

Member Data Documentation

QCString TemplateNodeCloseSubIndex::m_name
private

Definition at line 3987 of file template.cpp.

Referenced by render(), and TemplateNodeCloseSubIndex().


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