PAG1AnnotationElement.h Source File documentation

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