10#ifndef IWORKPROPERTYCONTEXT_H_INCLUDED
11#define IWORKPROPERTYCONTEXT_H_INCLUDED
13#include <boost/optional.hpp>
22template<
typename Property,
typename Context,
int TokenId,
int TokenId2=0>
33 boost::optional<typename IWORKPropertyInfo<Property>::ValueType>
m_value;
36template<
typename Property,
typename Context,
int TokenId,
int TokenId2>
43template<
typename Property,
typename Context,
int TokenId,
int TokenId2>
47 if (TokenId ==
name || (TokenId2 != 0 && TokenId2 ==
name))
48 return std::make_shared<Context>(getState(),
m_value);
56template<
typename Property,
typename Context,
int TokenId,
int TokenId2>
boost::optional< IWORKGradient > & m_value
Definition IWORKFillElement.cpp:131
IWORKPropertyMap & m_propMap
Definition IWORKPropertyMapElement.cpp:756
Definition IWORKPropertyContextBase.h:21
Definition IWORKPropertyContext.h:24
void endOfElement() override
Definition IWORKPropertyContext.h:57
IWORKPropertyContext(IWORKXMLParserState &state, IWORKPropertyMap &propMap)
Definition IWORKPropertyContext.h:37
boost::optional< typename IWORKPropertyInfo< Property >::ValueType > m_value
Definition IWORKPropertyContext.h:33
IWORKXMLContextPtr_t element(int name) override
Definition IWORKPropertyContext.h:44
Represents a (hierarchical) property map.
Definition IWORKPropertyMap.h:25
void put(const typename IWORKPropertyInfo< Property >::ValueType &value)
Insert a new value for key key.
Definition IWORKPropertyMap.h:134
void clear()
Clear property.
Definition IWORKPropertyMap.h:145
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
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition IWAField.h:190