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
17namespace libetonyek
18{
20{
21public:
22 PAG1AnnotationElement(PAG1ParserState &state, IWORKXMLContext &container, bool isRef=false);
23
24protected:
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
30private:
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: */
Definition IWORKXMLContext.h:23
boost::optional< ID_t > m_id
Definition PAG1AnnotationElement.h:33
void attribute(int name, const char *value) override
Definition PAG1AnnotationElement.cpp:28
IWORKXMLContext & m_container
Definition PAG1AnnotationElement.h:31
bool m_isRef
Definition PAG1AnnotationElement.h:32
PAG1AnnotationElement(PAG1ParserState &state, IWORKXMLContext &container, bool isRef=false)
Definition PAG1AnnotationElement.cpp:20
void endOfElement() override
Definition PAG1AnnotationElement.cpp:51
Definition PAG1ParserState.h:24
@ value
Definition IWORKToken.h:631
@ text
Definition IWORKToken.h:472
@ element
Definition IWORKToken.h:192
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
PAG1XMLContextBase< IWORKXMLContextElement > PAG1XMLElementContextBase
Definition PAG1XMLContextBase.h:39

Generated for libetonyek by doxygen 1.13.2