Public Member Functions | |
DefineTag (const string &name) | |
virtual void | doStartTag (const attribs_t &attribs) |
virtual void | doEndTag () |
virtual void | initChildBuffers () |
Protected Types | |
typedef set< string > | deflist_t |
Protected Attributes | |
string | m_defname |
stringstream | func_body |
bool | with_servlet |
Static Protected Attributes | |
static deflist_t | m_defines |
Definition at line 41 of file MacroTags.cpp.
typedef set<string> csp::tags::DefineTag::deflist_t [protected] |
Definition at line 44 of file MacroTags.cpp.
csp::tags::DefineTag::DefineTag | ( | const string & | name | ) | [inline] |
Definition at line 50 of file MacroTags.cpp.
void csp::tags::DefineTag::doEndTag | ( | ) | [virtual] |
Called when closing tag is encountered
Implements servlet::taglib::Generator.
Reimplemented in csp::tags::UseDefTag, csp::tags::DefunTag, and csp::tags::CallTag.
Definition at line 98 of file MacroTags.cpp.
References servlet::taglib::Generator::body, func_body, m_defines, servlet::taglib::Generator::member, and with_servlet.
virtual void csp::tags::DefineTag::doStartTag | ( | const attribs_t & | attribs | ) | [virtual] |
doStartTag is called when opening tag is encountered
attribs | key-value map of the tag attributes Override this function in your tag handler to generate pre-amble code for your tag |
Implements servlet::taglib::Generator.
Reimplemented in csp::tags::UseDefTag, csp::tags::DefunTag, and csp::tags::CallTag.
void csp::tags::DefineTag::initChildBuffers | ( | ) | [virtual] |
Sets up child buffers (buffers where contents _inside_ this tag is sent By default it's same as its own buffers (set by setBuffers) If this function is overridden and different set of buffers is generated, it's tag writer's responsibility to ensure that output is actually sent to parent's buffers
Reimplemented from servlet::taglib::Generator.
Reimplemented in csp::tags::UseDefTag.
Definition at line 60 of file MacroTags.cpp.
References func_body, and servlet::taglib::Generator::m_child_body.
stringstream csp::tags::DefineTag::func_body [protected] |
Definition at line 47 of file MacroTags.cpp.
Referenced by csp::tags::DefunTag::doEndTag(), doEndTag(), csp::tags::UseDefTag::initChildBuffers(), and initChildBuffers().
DefineTag::deflist_t csp::tags::DefineTag::m_defines [static, protected] |
Definition at line 45 of file MacroTags.cpp.
Referenced by csp::tags::DefunTag::doEndTag(), csp::tags::UseDefTag::doEndTag(), and doEndTag().
string csp::tags::DefineTag::m_defname [protected] |
Definition at line 46 of file MacroTags.cpp.
bool csp::tags::DefineTag::with_servlet [protected] |
Reimplemented in csp::tags::UseDefTag.
Definition at line 48 of file MacroTags.cpp.
Referenced by doEndTag().