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: */
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
Definition: IWORKXMLContext.h:22
Definition: IWORKToken.h:631
Definition: PAG1XMLContextBase.h:22
IWORKXMLContext & m_container
Definition: PAG1AnnotationElement.h:31
void text(const char *value) override
Definition: PAG1AnnotationElement.cpp:46
void attribute(int name, const char *value) override
Definition: PAG1AnnotationElement.cpp:28
const char * name
Definition: IWORKToken.cpp:43
boost::optional< ID_t > m_id
Definition: PAG1AnnotationElement.h:33
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1AnnotationElement.cpp:41
Definition: PAG1ParserState.h:23
PAG1AnnotationElement(PAG1ParserState &state, IWORKXMLContext &container, bool isRef=false)
Definition: PAG1AnnotationElement.cpp:20
bool m_isRef
Definition: PAG1AnnotationElement.h:32
void endOfElement() override
Definition: PAG1AnnotationElement.cpp:51
Definition: PAG1AnnotationElement.h:19

Generated for libetonyek by doxygen 1.8.6