libetonyek::IWORKDiscardContext Class Reference documentation

Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
libetonyek::IWORKDiscardContext Class Reference

`#include <IWORKDiscardContext.h>`

Inheritance diagram for libetonyek::IWORKDiscardContext:

## Classes
struct | Data

## Public Member Functions
| IWORKDiscardContext (IWORKXMLParserState &state)
Public Member Functions inherited from libetonyek::IWORKXMLContext
virtual | ~IWORKXMLContext ()=0
virtual void | startOfElement ()=0
| Signalize the start of an element.
virtual void | attribute (int name, const char *value)=0
| Process an attribute.
virtual IWORKXMLContextPtr_t | element (int name)=0
| Create a context for parsing a child element.
virtual void | text (const char *value)=0
| Process textual content of an element.
virtual void | CDATA (const char *value)
| Process CDATA content of an element.
virtual void | endOfElement ()=0
| Signalize the end of an element.

## Protected Member Functions
void | startOfElement () override
| Signalize the start of an element.
void | attribute (int name, const char *value) override
| Process an attribute.
IWORKXMLContextPtr_t | element (int name) override
| Create a context for parsing a child element.
void | text (const char *value) override
| Process textual content of an element.
void | endOfElement () override
| Signalize the end of an element.

## Private Attributes
IWORKXMLParserState & | m_state
unsigned | m_level
bool | m_enableCollector
std::shared_ptr< Data > | m_data

## Constructor & Destructor Documentation

## ◆ IWORKDiscardContext()

libetonyek::IWORKDiscardContext::IWORKDiscardContext | ( | IWORKXMLParserState & | state | ) |
| explicit

## Member Function Documentation

## ◆ attribute()

void libetonyek::IWORKDiscardContext::attribute | ( | int | name,
|  | const char * | value
| ) |  |
| overrideprotectedvirtual

Process an attribute.

Attributes are fed to the current element's context one by one.

Implements libetonyek::IWORKXMLContext.

## ◆ element()

IWORKXMLContextPtr_t libetonyek::IWORKDiscardContext::element | ( | int | name | ) |
| overrideprotectedvirtual

Create a context for parsing a child element.

Returns
  A new context or an empty pointer if the child element cannot be handled.

Implements libetonyek::IWORKXMLContext.

## ◆ endOfElement()

void libetonyek::IWORKDiscardContext::endOfElement | ( |  | ) |
| overrideprotectedvirtual

Signalize the end of an element.

Implements libetonyek::IWORKXMLContext.

## ◆ startOfElement()

void libetonyek::IWORKDiscardContext::startOfElement | ( |  | ) |
| overrideprotectedvirtual

Signalize the start of an element.

This can be used if initialization of the context needs virtual function calls.

Implements libetonyek::IWORKXMLContext.

## ◆ text()

void libetonyek::IWORKDiscardContext::text | ( | const char * | value | ) |
| overrideprotectedvirtual

Process textual content of an element.

This function can be called more than once if the element has mixed content.

Implements libetonyek::IWORKXMLContext.

## Member Data Documentation

## ◆ m_data

std::shared_ptr<Data> libetonyek::IWORKDiscardContext::m_data
| private

Referenced by element().

## ◆ m_enableCollector

bool libetonyek::IWORKDiscardContext::m_enableCollector
| private

Referenced by endOfElement(), and startOfElement().

## ◆ m_level

unsigned libetonyek::IWORKDiscardContext::m_level
| private

Referenced by endOfElement(), and startOfElement().

## ◆ m_state

IWORKXMLParserState& libetonyek::IWORKDiscardContext::m_state
| private

Referenced by element(), endOfElement(), and startOfElement().

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

- IWORKDiscardContext.h
- IWORKDiscardContext.cpp