PAG1AnnotationElement.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef PAG1ANNOTATIONELEMENT_H_INCLUDED
11 #define PAG1ANNOTATIONELEMENT_H_INCLUDED
12 
13 #include <boost/optional.hpp>
14 
15 #include "PAG1XMLContextBase.h"
16 
17 namespace libetonyek
18 {
20 {
21 public:
22  PAG1AnnotationElement(PAG1ParserState &state, IWORKXMLContext &container, bool isRef=false);
23 
24 protected:
25  void attribute(int name, const char *value) override;
26  IWORKXMLContextPtr_t element(int name) override;
27  void endOfElement() override;
28  void text(const char *value) override;
29 
30 private:
32  bool m_isRef;
33  boost::optional<ID_t> m_id;
34 };
35 
36 }
37 
38 #endif // PAG1ANNOTATIONELEMENT_H_INCLUDED
39 
40 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:585
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContext::element
virtual IWORKXMLContextPtr_t element(int name)=0
Create a context for parsing a child element.
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:24
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:697
libetonyek::PAG1AnnotationElement::text
void text(const char *value) override
Definition: PAG1AnnotationElement.cpp:46
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:23
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:506
libetonyek::PAG1AnnotationElement::m_container
IWORKXMLContext & m_container
Definition: PAG1AnnotationElement.h:31
libetonyek::IWORKXMLContextBase< Base, PAG1ParserState, PAGCollector >::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
libetonyek::IWORKXMLContext::text
virtual void text(const char *value)=0
Process textual content of an element.
libetonyek::IWORKXMLContextBase< Base, PAG1ParserState, PAGCollector >::getCollector
PAGCollector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::PAG1AnnotationElement::attribute
void attribute(int name, const char *value) override
Definition: PAG1AnnotationElement.cpp:28
libetonyek::PAG1AnnotationElement::m_isRef
bool m_isRef
Definition: PAG1AnnotationElement.h:32
libetonyek::PAG1AnnotationElement
Definition: PAG1AnnotationElement.h:20
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:631
libetonyek::PAG1AnnotationElement::m_id
boost::optional< ID_t > m_id
Definition: PAG1AnnotationElement.h:33
libetonyek::PAG1AnnotationElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1AnnotationElement.cpp:41
libetonyek::IWORKXMLContext
Definition: IWORKXMLContext.h:23
libetonyek::PAG1AnnotationElement::PAG1AnnotationElement
PAG1AnnotationElement(PAG1ParserState &state, IWORKXMLContext &container, bool isRef=false)
Definition: PAG1AnnotationElement.cpp:20
PAG1XMLContextBase.h
m_id
boost::optional< ID_t > m_id
Definition: IWORKLineEndElement.cpp:34
IWORKToken.h
libetonyek::PAGCollector::sendAnnotation
void sendAnnotation(const std::string &name)
Definition: PAGCollector.cpp:185
libetonyek::PAG1AnnotationElement::endOfElement
void endOfElement() override
Definition: PAG1AnnotationElement.cpp:51
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
PAG1ParserState.h
libetonyek::IWORKCollector::collectText
void collectText(const std::shared_ptr< IWORKText > &text)
Definition: IWORKCollector.cpp:505
PAG1AnnotationElement.h
PAGCollector.h
libetonyek_xml.h
libetonyek::IWORKXMLContextBase< Base, PAG1ParserState, PAGCollector >::getState
PAG1ParserState & getState()
Definition: IWORKXMLContextBase.h:43

Generated for libetonyek by doxygen 1.8.20