Doxygen
TemplateNodeOpenSubIndex类 参考

Class representing an 'opensubindex' tag in a template 更多...

+ 类 TemplateNodeOpenSubIndex 继承关系图:
+ TemplateNodeOpenSubIndex 的协作图:

Public 成员函数

 TemplateNodeOpenSubIndex (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
void render (TextStream &, TemplateContext *c)
 
- Public 成员函数 继承自 TemplateNodeCreator< TemplateNodeOpenSubIndex >
 TemplateNodeCreator (TemplateParser *parser, TemplateNode *parent, int line)
 
TemplateImplgetTemplate ()
 
- Public 成员函数 继承自 TemplateNode
 TemplateNode (TemplateNode *parent)
 
virtual ~TemplateNode ()
 
TemplateNodeparent ()
 

Private 属性

QCString m_name
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 TemplateNodeCreator< TemplateNodeOpenSubIndex >
static TemplateNodePtr createInstance (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
- Protected 成员函数 继承自 TemplateNodeCreator< TemplateNodeOpenSubIndex >
void mkpath (const TemplateContextImpl *ci, const std::string &fileName)
 
- Protected 属性 继承自 TemplateNodeCreator< TemplateNodeOpenSubIndex >
QCString m_templateName
 
int m_line
 

详细描述

Class representing an 'opensubindex' tag in a template

在文件 template.cpp4109 行定义.

构造及析构函数说明

◆ TemplateNodeOpenSubIndex()

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

在文件 template.cpp4112 行定义.

4114  {
4115  TRACE(("{TemplateNodeOpenSubIndex(%s)\n",qPrint(data)));
4116  m_name = data.stripWhiteSpace();
4117  if (m_name.isEmpty())
4118  {
4119  parser->warn(parser->templateName(),line,"Missing argument for opensubindex tag");
4120  }
4121  else if (m_name.find(' ')!=-1)
4122  {
4123  parser->warn(parser->templateName(),line,"Expected single argument for opensubindex tag got '%s'",qPrint(data));
4124  m_name="";
4125  }
4126  TRACE(("}TemplateNodeOpenSubIndex(%s)\n",qPrint(data)));
4127  }

引用了 QCString::find(), QCString::isEmpty(), m_name, qPrint(), QCString::stripWhiteSpace(), TemplateParser::templateName(), TRACE , 以及 TemplateParser::warn().

成员函数说明

◆ render()

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

实现了 TemplateNode.

在文件 template.cpp4128 行定义.

4129  {
4130  TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
4131  if (ci==0) return; // should not happen
4132  if (!m_name.isEmpty())
4133  {
4135  ci->openSubIndex(m_name);
4136  }
4137  }

引用了 QCString::isEmpty(), TemplateNodeCreator< TemplateNodeOpenSubIndex >::m_line, m_name, TemplateNodeCreator< TemplateNodeOpenSubIndex >::m_templateName, TemplateContextImpl::openSubIndex() , 以及 TemplateContextImpl::setLocation().

类成员变量说明

◆ m_name

QCString TemplateNodeOpenSubIndex::m_name
private

在文件 template.cpp4139 行定义.

被这些函数引用 render() , 以及 TemplateNodeOpenSubIndex().


该类的文档由以下文件生成:
TemplateContextImpl::setLocation
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:682
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
TemplateNodeOpenSubIndex::m_name
QCString m_name
Definition: template.cpp:4139
TemplateNodeCreator< TemplateNodeOpenSubIndex >
TemplateParser::templateName
QCString templateName() const
Definition: template.cpp:1998
QCString::find
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:38
TemplateParser::warn
void warn(const QCString &fileName, int line, const char *fmt,...) const
Definition: template.cpp:5163
QCString::stripWhiteSpace
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
Definition: qcstring.h:243
TemplateContextImpl::openSubIndex
void openSubIndex(const QCString &indexName)
Definition: template.cpp:2782
TRACE
#define TRACE(x)
Definition: template.cpp:40
TemplateNodeCreator< TemplateNodeOpenSubIndex >::m_templateName
QCString m_templateName
Definition: template.cpp:3095
TemplateNode::parent
TemplateNode * parent()
Definition: template.cpp:1941
qPrint
const char * qPrint(const char *s)
Definition: qcstring.h:589
TemplateContextImpl
Internal class representing the implementation of a template context
Definition: template.cpp:640
TemplateNodeCreator< TemplateNodeOpenSubIndex >::m_line
int m_line
Definition: template.cpp:3096