10#ifndef IWORKCONTAINERCONTEXT_H_INCLUDED
11#define IWORKCONTAINERCONTEXT_H_INCLUDED
16#include <boost/optional.hpp>
26template<
typename Type,
class NestedParser,
template<
typename T,
class C>
class Collector,
unsigned Id,
unsigned RefId = 0>
29 typedef std::unordered_map<ID_t, Type>
Dict_t;
60 else if ((RefId != 0) && (
name == RefId))
82 const typename Dict_t::const_iterator it =
m_dict->find(
get(
m_ref));
IWORKContainerContext(IWORKContainerContext &)
Collector< Type, std::deque< Type > > m_collector
Definition IWORKContainerContext.h:98
std::unordered_map< ID_t, Type > Dict_t
Definition IWORKContainerContext.h:29
IWORKXMLContextPtr_t element(const int name) override
Create a context for parsing a child element.
Definition IWORKContainerContext.h:51
void endOfElement() override
Signalize the end of an element.
Definition IWORKContainerContext.h:69
boost::optional< ID_t > m_ref
Definition IWORKContainerContext.h:96
IWORKContainerContext & operator=(IWORKContainerContext &)
void handleRef()
Definition IWORKContainerContext.h:78
IWORKContainerContext(IWORKXMLParserState &state, std::deque< Type > &elements)
Definition IWORKContainerContext.h:32
Dict_t *const m_dict
Definition IWORKContainerContext.h:95
std::deque< Type > & m_elements
Definition IWORKContainerContext.h:97
IWORKContainerContext(IWORKXMLParserState &state, Dict_t &dict, std::deque< Type > &elements)
Definition IWORKContainerContext.h:41
IWORKXMLParserState & getState()
Definition IWORKXMLContextBase.h:43
Definition IWORKXMLParserState.h:32
#define ETONYEK_DEBUG_MSG(M)
Definition libetonyek_utils.h:54
@ null
Definition IWORKToken.h:335
@ name
Definition IWORKToken.h:585
@ NS_URI_SF
Definition IWORKToken.h:696
@ dict
Definition KEY1Token.h:51
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition IWORKXMLContextBase.h:124
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition IWAField.h:190