IWORKMetadataElement.h Source File documentation

IWORKMetadataElement.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 IWORKMETADATAELEMENT_H_INCLUDED
11#define IWORKMETADATAELEMENT_H_INCLUDED
12
13#include "IWORKXMLContextBase.h"
14
15namespace libetonyek
16{
17
18 class IWORKMetadataElement : public IWORKXMLElementContextBase
19{
20public:
21 explicit IWORKMetadataElement(IWORKXMLParserState &state);
22
23protected:
24 IWORKXMLContextPtr_t element(int name) override;
25 void endOfElement() override;
26
27private:
28 boost::optional<std::string> m_author;
29 boost::optional<std::string> m_title;
30 boost::optional<std::string> m_keywords;
31 boost::optional<std::string> m_comment;
32};
33
34}
35
36#endif // IWORKMETADATAELEMENT_H_INCLUDED
37
38/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKXMLContextBase.h
libetonyek::IWORKMetadataElement
Definition IWORKMetadataElement.h:19
libetonyek::IWORKMetadataElement::m_title
boost::optional< std::string > m_title
Definition IWORKMetadataElement.h:29
libetonyek::IWORKMetadataElement::m_comment
boost::optional< std::string > m_comment
Definition IWORKMetadataElement.h:31
libetonyek::IWORKMetadataElement::element
IWORKXMLContextPtr_t element(int name) override
Definition IWORKMetadataElement.cpp:64
libetonyek::IWORKMetadataElement::IWORKMetadataElement
IWORKMetadataElement(IWORKXMLParserState &state)
Definition IWORKMetadataElement.cpp:55
libetonyek::IWORKMetadataElement::endOfElement
void endOfElement() override
Definition IWORKMetadataElement.cpp:87
libetonyek::IWORKMetadataElement::m_author
boost::optional< std::string > m_author
Definition IWORKMetadataElement.h:28
libetonyek::IWORKMetadataElement::m_keywords
boost::optional< std::string > m_keywords
Definition IWORKMetadataElement.h:30
libetonyek::IWORKXMLContextBase
Definition IWORKXMLContextBase.h:28
libetonyek::IWORKXMLParserState
Definition IWORKXMLParserState.h:32
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20