libetonyek::IWORKStyleContext Class Reference

#include <IWORKStyleContext.h>

Inheritance diagram for libetonyek::IWORKStyleContext:
libetonyek::IWORKXMLContextBase< Base, State, Collector >

Public Member Functions

 IWORKStyleContext (IWORKXMLParserState &state, IWORKStyleMap_t *styleMap=nullptr)
 
 IWORKStyleContext (IWORKXMLParserState &state, IWORKPropertyMap &props, IWORKStyleMap_t *styleMap=nullptr, const char *defaultParent=nullptr)
 
void attribute (int name, const char *value) override
 
void endOfElement () override
 
IWORKStylePtr_t getStyle ()
 returns the created style More...
 
- Public Member Functions inherited from libetonyek::IWORKXMLContextBase< Base, State, Collector >
 IWORKXMLContextBase (State &state)
 
template<typename T >
 IWORKXMLContextBase (State &state, const T &a)
 
State & getState ()
 

Private Member Functions

IWORKXMLContextPtr_t element (int name) override
 
 IWORKStyleContext (IWORKStyleContext &)
 
IWORKStyleContext operator= (IWORKStyleContext &)
 

Private Attributes

IWORKStyleMap_t *const m_styleMap
 
const std::string m_defaultParent
 
IWORKPropertyMap m_ownProps
 
IWORKPropertyMapm_props
 
IWORKStylePtr_t m_style
 the final style More...
 
boost::optional< std::string > m_ident
 
boost::optional< std::string > m_parentIdent
 

Additional Inherited Members

- Protected Member Functions inherited from libetonyek::IWORKXMLContextBase< Base, State, Collector >
Collector & getCollector () const
 
int getToken (const char *const value) const
 
bool isCollector () const
 
- Protected Attributes inherited from libetonyek::IWORKXMLContextBase< Base, State, Collector >
State & m_state
 

Constructor & Destructor Documentation

libetonyek::IWORKStyleContext::IWORKStyleContext ( IWORKXMLParserState state,
IWORKStyleMap_t styleMap = nullptr 
)
libetonyek::IWORKStyleContext::IWORKStyleContext ( IWORKXMLParserState state,
IWORKPropertyMap props,
IWORKStyleMap_t styleMap = nullptr,
const char *  defaultParent = nullptr 
)
libetonyek::IWORKStyleContext::IWORKStyleContext ( IWORKStyleContext )
private

Member Function Documentation

void libetonyek::IWORKStyleContext::attribute ( int  name,
const char *  value 
)
override
IWORKXMLContextPtr_t libetonyek::IWORKStyleContext::element ( int  name)
overrideprivate
void libetonyek::IWORKStyleContext::endOfElement ( )
override
IWORKStylePtr_t libetonyek::IWORKStyleContext::getStyle ( )
inline

returns the created style

Note
must be called after the style is read, ie. after endOfElement have been called
IWORKStyleContext libetonyek::IWORKStyleContext::operator= ( IWORKStyleContext )
private

Member Data Documentation

const std::string libetonyek::IWORKStyleContext::m_defaultParent
private

Referenced by endOfElement().

boost::optional<std::string> libetonyek::IWORKStyleContext::m_ident
private

Referenced by attribute(), and endOfElement().

IWORKPropertyMap libetonyek::IWORKStyleContext::m_ownProps
private
boost::optional<std::string> libetonyek::IWORKStyleContext::m_parentIdent
private

Referenced by attribute(), and endOfElement().

IWORKPropertyMap& libetonyek::IWORKStyleContext::m_props
private

Referenced by element(), and endOfElement().

IWORKStylePtr_t libetonyek::IWORKStyleContext::m_style
private

the final style

Referenced by endOfElement(), and getStyle().

IWORKStyleMap_t* const libetonyek::IWORKStyleContext::m_styleMap
private

Referenced by endOfElement().


The documentation for this class was generated from the following files:

Generated for libetonyek by doxygen 1.8.6