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);
68 virtual void startOfElement();
69 virtual void endOfAttributes();
70 virtual void endOfElement();
78 virtual void attribute(
int name,
const char *value);
79 virtual void text(
const char *value);
81 const boost::optional<ID_t> &getId()
const;
84 boost::optional<ID_t>
m_id;
106 virtual void attribute(
int name,
const char *value);
108 virtual void text(
const char *value);
110 const boost::optional<ID_t> &getId()
const;
111 const boost::optional<ID_t> &getRef()
const;
125 #endif // IWORKXMLCONTEXTBASE_H_INCLUDED Definition: IWORKColorElement.cpp:19
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:121
Definition: IWORKXMLContextBase.h:101
Collector * getCollector() const
Definition: IWORKXMLContextBase.h:49
Definition: IWORKXMLContextBase.h:73
Definition: IWORKToken.h:201
Definition: IWORKXMLContextBase.h:87
Definition: IWORKXMLContext.h:22
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:84
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKXMLContextBase< IWORKXMLContextMixed, IWORKXMLParserState > IWORKXMLMixedContextBase
Definition: IWORKXMLContextBase.h:120
State & getState()
Definition: IWORKXMLContextBase.h:43
Definition: IWORKToken.h:184
IWORKXMLContextBase(State &state)
Definition: IWORKXMLContextBase.h:30
Definition: IWORKXMLContextBase.h:95
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:118
const char * name
Definition: IWORKToken.cpp:43
IWORKXMLContextBase< IWORKXMLContextText, IWORKXMLParserState > IWORKXMLTextContextBase
Definition: IWORKXMLContextBase.h:119
IWORKXMLContextBase(State &state, const T &a)
Definition: IWORKXMLContextBase.h:37
Definition: IWORKXMLContextBase.h:63
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:21
boost::optional< ID_t > m_id
Definition: IWORKXMLContextBase.h:114
boost::optional< ID_t > m_ref
Definition: IWORKXMLContextBase.h:115
int getToken(const char *const value) const
Definition: IWORKXMLContextBase.h:54
State & m_state
Definition: IWORKXMLContextBase.h:60