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

Constructor & Destructor Documentation

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

Definition at line 3924 of file template.cpp.

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

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

Member Function Documentation

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

Member Data Documentation

QCString TemplateNodeOpenSubIndex::m_name
private

Definition at line 3951 of file template.cpp.

Referenced by render(), and TemplateNodeOpenSubIndex().


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