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>
56 return m_state.getTokenizer().getId(value);
61 return m_state.m_enableCollector;
73 void startOfElement()
override;
74 virtual void endOfAttributes();
75 void endOfElement()
override;
83 void attribute(
int name,
const char *
value)
override;
84 void text(
const char *value)
override;
86 const boost::optional<ID_t> &getId()
const;
87 void setId(
const char *value);
90 boost::optional<ID_t>
m_id;
112 void attribute(
int name,
const char *
value)
override;
114 void text(
const char *value)
override;
116 const boost::optional<ID_t> &getId()
const;
117 void setId(
const char *value);
118 const boost::optional<ID_t> &getRef()
const;
132 #endif // IWORKXMLCONTEXTBASE_H_INCLUDED Definition: IWORKBezierElement.cpp:20
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
Definition: IWORKXMLContextBase.h:107
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
Definition: IWORKXMLContextBase.h:78
Definition: IWORKXMLContextBase.h:93
Definition: IWORKXMLContext.h:22
Definition: IWORKToken.h:624
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:90
Definition: IWORKToken.h:465
IWORKXMLContextBase< IWORKXMLContextMixed, IWORKXMLParserState > IWORKXMLMixedContextBase
Definition: IWORKXMLContextBase.h:127
State & getState()
Definition: IWORKXMLContextBase.h:43
IWORKXMLContextBase(State &state)
Definition: IWORKXMLContextBase.h:30
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
Definition: IWORKXMLContextBase.h:101
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:125
const char * name
Definition: IWORKToken.cpp:43
IWORKXMLContextBase< IWORKXMLContextText, IWORKXMLParserState > IWORKXMLTextContextBase
Definition: IWORKXMLContextBase.h:126
Definition: IWORKToken.h:501
IWORKXMLContextBase(State &state, const T &a)
Definition: IWORKXMLContextBase.h:37
Definition: IWORKXMLContextBase.h:68
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:121
boost::optional< ID_t > m_ref
Definition: IWORKXMLContextBase.h:122
Definition: IWORKToken.h:188
int getToken(const char *const value) const
Definition: IWORKXMLContextBase.h:54
State & m_state
Definition: IWORKXMLContextBase.h:65