Go to the documentation of this file.
10 #ifndef IWORKXMLCONTEXTBASE_H_INCLUDED
11 #define IWORKXMLCONTEXTBASE_H_INCLUDED
13 #include <boost/enable_shared_from_this.hpp>
14 #include <boost/optional.hpp>
22 class IWORKXMLParserState;
26 template<
class Base,
class State,
class Collector = IWORKCollector>
61 return m_state.m_enableCollector;
86 const boost::optional<ID_t> &
getId()
const;
90 boost::optional<ID_t>
m_id;
116 const boost::optional<ID_t> &
getId()
const;
118 const boost::optional<ID_t> &
getRef()
const;
132 #endif // IWORKXMLCONTEXTBASE_H_INCLUDED
IWORKXMLContextBase(State &state, const T &a)
Definition: IWORKXMLContextBase.h:37
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
Definition: IWORKBezierElement.cpp:21
@ ID
Definition: IWORKToken.h:499
IWORKXMLContextPtr_t element(int token) override
Create a context for parsing a child element.
Definition: IWORKXMLContextBase.cpp:99
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
@ NS_URI_SFA
Definition: IWORKToken.h:689
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:121
boost::optional< ID_t > m_ref
Definition: IWORKXMLContextBase.h:122
Definition: IWORKXMLContextBase.h:79
void setId(const char *value)
Definition: IWORKXMLContextBase.cpp:56
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
const boost::optional< ID_t > & getId() const
Definition: IWORKXMLContextBase.cpp:51
Definition: IWORKXMLContextBase.h:108
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
Definition: IWORKXMLParserState.h:32
Definition: IWORKXMLContextBase.h:94
void text(const char *value) override
Process textual content of an element.
Definition: IWORKXMLContextBase.cpp:105
IWORKXMLContextBase(State &state)
Definition: IWORKXMLContextBase.h:30
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
Definition: IWORKXMLContextBase.h:69
IWORKXMLContextMinimal()
Definition: IWORKXMLContextBase.cpp:18
void startOfElement() override
Signalize the start of an element.
Definition: IWORKXMLContextBase.cpp:22
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:90
void setId(const char *value)
Definition: IWORKXMLContextBase.cpp:115
Definition: IWORKXMLContextBase.h:102
void attribute(int name, const char *value) override
Process an attribute.
Definition: IWORKXMLContextBase.cpp:40
IWORKXMLContextMixed(IWORKXMLParserState &)
Definition: IWORKXMLContextBase.cpp:72
void endOfElement() override
Signalize the end of an element.
Definition: IWORKXMLContextBase.cpp:30
IWORKXMLContextElement(IWORKXMLParserState &)
Definition: IWORKXMLContextBase.cpp:34
IWORKXMLContextEmpty(IWORKXMLParserState &)
Definition: IWORKXMLContextBase.cpp:77
Definition: IWORKXMLContextBase.h:28
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:125
State & m_state
Definition: IWORKXMLContextBase.h:65
@ IDREF
Definition: IWORKToken.h:500
@ a
Definition: IWORKToken.h:501
Definition: IWORKXMLContext.h:23
IWORKXMLContextText(IWORKXMLParserState &)
Definition: IWORKXMLContextBase.cpp:61
void text(const char *value) override
Process textual content of an element.
Definition: IWORKXMLContextBase.cpp:46
const boost::optional< ID_t > & getId() const
Definition: IWORKXMLContextBase.cpp:110
virtual void endOfAttributes()
Definition: IWORKXMLContextBase.cpp:26
boost::optional< ID_t > m_id
Definition: IWORKLineEndElement.cpp:34
IWORKXMLContextBase< IWORKXMLContextText, IWORKXMLParserState > IWORKXMLTextContextBase
Definition: IWORKXMLContextBase.h:126
boost::optional< ID_t > m_ref
Definition: IWORKPathElement.cpp:285
int getToken(const char *const value) const
Definition: IWORKXMLContextBase.h:54
IWORKXMLContextPtr_t element(int token) override
Create a context for parsing a child element.
Definition: IWORKXMLContextBase.cpp:66
void attribute(int name, const char *value) override
Process an attribute.
Definition: IWORKXMLContextBase.cpp:84
const boost::optional< ID_t > & getRef() const
Definition: IWORKXMLContextBase.cpp:120
IWORKXMLContextBase< IWORKXMLContextMixed, IWORKXMLParserState > IWORKXMLMixedContextBase
Definition: IWORKXMLContextBase.h:127
@ name
Definition: IWORKToken.h:578
@ value
Definition: IWORKToken.h:624
State & getState()
Definition: IWORKXMLContextBase.h:43
Generated for libetonyek by
doxygen 1.8.18