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

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

Inheritance diagram for TemplateNodeMsg:
TemplateNodeCreator< TemplateNodeMsg > TemplateNode

Public Member Functions

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

Private Attributes

TemplateNodeList m_nodes
 

Additional Inherited Members

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

Detailed Description

Class representing an 'markers' tag in a template.

Definition at line 3205 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 3208 of file template.cpp.

3210  {
3211  TRACE(("{TemplateNodeMsg()\n"));
3212  QStrList stopAt;
3213  stopAt.append("endmsg");
3214  parser->parse(this,line,stopAt,m_nodes);
3215  parser->removeNextToken(); // skip over endmsg
3216  TRACE(("}TemplateNodeMsg()\n"));
3217  }
TemplateNode * parent()
Definition: template.cpp:1647
void append(const type *d)
Definition: qinternallist.h:61
TemplateNodeList m_nodes
Definition: template.cpp:3234
void line(double t, double *p, double &x, double &y, double &z)
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

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

Implements TemplateNode.

Definition at line 3218 of file template.cpp.

3219  {
3220  TemplateContextImpl* ci = dynamic_cast<TemplateContextImpl*>(c);
3221  if (ci==0) return; // should not happen
3223  TemplateEscapeIntf *escIntf = ci->escapeIntf();
3224  ci->setActiveEscapeIntf(0); // avoid escaping things we send to standard out
3225  bool enable = ci->spacelessEnabled();
3226  ci->enableSpaceless(FALSE);
3227  FTextStream ts(stdout);
3228  m_nodes.render(ts,c);
3229  ts << endl;
3230  ci->setActiveEscapeIntf(escIntf);
3231  ci->enableSpaceless(enable);
3232  }
void render(FTextStream &ts, TemplateContext *c)
Definition: template.cpp:2246
void enableSpaceless(bool b)
Definition: template.cpp:547
bool spacelessEnabled() const
Definition: template.cpp:550
Internal class representing the implementation of a template context.
Definition: template.cpp:511
const bool FALSE
Definition: qglobal.h:370
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
void setActiveEscapeIntf(TemplateEscapeIntf *intf)
Definition: template.cpp:534
TemplateEscapeIntf * escapeIntf() const
Definition: template.cpp:545
Interface used to escape characters in a string.
Definition: template.h:457
TemplateNodeList m_nodes
Definition: template.cpp:3234
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:540
QTextStream & endl(QTextStream &s)

Member Data Documentation

TemplateNodeList TemplateNodeMsg::m_nodes
private

Definition at line 3234 of file template.cpp.


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