#include <IWORKDiscardContext.h>
Classes | |
| struct | Data |
Public Member Functions | |
| IWORKDiscardContext (IWORKXMLParserState &state) | |
Protected Member Functions | |
| virtual void | startOfElement () |
| Signalize the start of an element. | |
| virtual void | attribute (int name, const char *value) |
| Process an attribute. | |
| virtual IWORKXMLContextPtr_t | element (int name) |
| Create a context for parsing a child element. | |
| virtual void | text (const char *value) |
| Process textual content of an element. | |
| virtual void | endOfElement () |
| Signalize the end of an element. | |
Private Attributes | |
| IWORKXMLParserState & | m_state |
| unsigned | m_level |
| bool | m_enableCollector |
| boost::shared_ptr< Data > | m_data |
| libetonyek::IWORKDiscardContext::IWORKDiscardContext | ( | IWORKXMLParserState & | state | ) | [explicit] |
| void libetonyek::IWORKDiscardContext::attribute | ( | int | name, |
| const char * | value | ||
| ) | [protected, virtual] |
Process an attribute.
Attributes are fed to the current element's context one by one.
Implements libetonyek::IWORKXMLContext.
| IWORKXMLContextPtr_t libetonyek::IWORKDiscardContext::element | ( | int | name | ) | [protected, virtual] |
Create a context for parsing a child element.
Implements libetonyek::IWORKXMLContext.
| void libetonyek::IWORKDiscardContext::endOfElement | ( | ) | [protected, virtual] |
Signalize the end of an element.
Implements libetonyek::IWORKXMLContext.
| void libetonyek::IWORKDiscardContext::startOfElement | ( | ) | [protected, virtual] |
Signalize the start of an element.
This can be used if initialization of the context needs virtual function calls.
Implements libetonyek::IWORKXMLContext.
| void libetonyek::IWORKDiscardContext::text | ( | const char * | value | ) | [protected, virtual] |
Process textual content of an element.
This function can be called more than once if the element has mixed content.
Implements libetonyek::IWORKXMLContext.
boost::shared_ptr<Data> libetonyek::IWORKDiscardContext::m_data [private] |
Referenced by element().
bool libetonyek::IWORKDiscardContext::m_enableCollector [private] |
Referenced by endOfElement(), and startOfElement().
unsigned libetonyek::IWORKDiscardContext::m_level [private] |
Referenced by endOfElement(), and startOfElement().
Referenced by element(), endOfElement(), and startOfElement().