10 #ifndef IWORKVALUECONTEXT_H_INCLUDED
11 #define IWORKVALUECONTEXT_H_INCLUDED
13 #include <boost/optional.hpp>
20 template<
typename Type,
class NestedParser,
unsigned Id,
unsigned Id2=0>
50 if (name == Id || (Id2 && name == Id2))
52 ETONYEK_DEBUG_MSG((
"IWORKXMLContextPtr_t::element: found unexpected element %d\n", name));
85 #endif // IWORKVALUECONTEXT_H_INCLUDED
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKValueContext & operator=(const IWORKValueContext &)
void set(const Type &value)
Definition: IWORKValueContext.h:43
Definition: IWORKToken.h:631
State & getState()
Definition: IWORKXMLContextBase.h:43
boost::optional< Type > m_value
Definition: IWORKValueContext.h:77
boost::optional< Type > & m_optional
Definition: IWORKValueContext.h:78
Definition: IWORKValueContext.h:21
bool *const m_isSet
Definition: IWORKValueContext.h:80
const char * name
Definition: IWORKToken.cpp:43
Type *const m_direct
Definition: IWORKValueContext.h:79
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
IWORKValueContext(IWORKXMLParserState &state, Type &value, bool *isSet=nullptr)
Definition: IWORKValueContext.h:33
IWORKValueContext(IWORKXMLParserState &state, boost::optional< Type > &value)
Definition: IWORKValueContext.h:24
IWORKXMLContextPtr_t element(const int name) override
Definition: IWORKValueContext.h:48
void endOfElement() override
Definition: IWORKValueContext.h:56