10#ifndef IWORKXMLCONTEXTBASE_H_INCLUDED
11#define IWORKXMLCONTEXTBASE_H_INCLUDED
13#include <boost/enable_shared_from_this.hpp>
14#include <boost/optional.hpp>
22class IWORKXMLParserState;
26template<
class Base,
class State,
class Collector = IWORKCollector>
61 return m_state.m_enableCollector;
85 const boost::optional<ID_t> &
getId()
const;
89 boost::optional<ID_t>
m_id;
115 const boost::optional<ID_t> &
getId()
const;
117 const boost::optional<ID_t> &
getRef()
const;
Definition IWORKXMLContextBase.h:28
State & m_state
Definition IWORKXMLContextBase.h:65
int getToken(const char *const value) const
Definition IWORKXMLContextBase.h:54
bool isCollector() const
Definition IWORKXMLContextBase.h:59
IWORKXMLContextBase(State &state)
Definition IWORKXMLContextBase.h:30
State & getState()
Definition IWORKXMLContextBase.h:43
IWORKXMLContextBase(State &state, const T &a)
Definition IWORKXMLContextBase.h:37
Collector & getCollector() const
Definition IWORKXMLContextBase.h:49
Definition IWORKXMLContextBase.h:78
void setId(const char *value)
Definition IWORKXMLContextBase.cpp:52
IWORKXMLContextElement(IWORKXMLParserState &)
Definition IWORKXMLContextBase.cpp:30
const boost::optional< ID_t > & getId() const
Definition IWORKXMLContextBase.cpp:47
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKXMLContextBase.cpp:36
boost::optional< ID_t > m_id
Definition IWORKXMLContextBase.h:89
Definition IWORKXMLContextBase.h:107
const boost::optional< ID_t > & getRef() const
Definition IWORKXMLContextBase.cpp:116
const boost::optional< ID_t > & getId() const
Definition IWORKXMLContextBase.cpp:106
boost::optional< ID_t > m_ref
Definition IWORKXMLContextBase.h:121
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKXMLContextBase.cpp:80
IWORKXMLContextEmpty(IWORKXMLParserState &)
Definition IWORKXMLContextBase.cpp:73
boost::optional< ID_t > m_id
Definition IWORKXMLContextBase.h:120
void setId(const char *value)
Definition IWORKXMLContextBase.cpp:111
Definition IWORKXMLContextBase.h:69
IWORKXMLContextMinimal()
Definition IWORKXMLContextBase.cpp:18
void startOfElement() override
Signalize the start of an element.
Definition IWORKXMLContextBase.cpp:22
void endOfElement() override
Signalize the end of an element.
Definition IWORKXMLContextBase.cpp:26
Definition IWORKXMLContextBase.h:101
IWORKXMLContextMixed(IWORKXMLParserState &)
Definition IWORKXMLContextBase.cpp:68
Definition IWORKXMLContextBase.h:93
IWORKXMLContextText(IWORKXMLParserState &)
Definition IWORKXMLContextBase.cpp:57
Definition IWORKXMLContext.h:23
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ text
Definition IWORKToken.h:472
@ element
Definition IWORKToken.h:192
@ a
Definition IWORKToken.h:508
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
IWORKXMLContextBase< IWORKXMLContextText, IWORKXMLParserState > IWORKXMLTextContextBase
Definition IWORKXMLContextBase.h:125
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition IWORKXMLContextBase.h:127
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition IWORKXMLContextBase.h:124
IWORKXMLContextBase< IWORKXMLContextMixed, IWORKXMLParserState > IWORKXMLMixedContextBase
Definition IWORKXMLContextBase.h:126