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
15 namespace libetonyek
16 {
17
18 class IWORKMetadataElement : public IWORKXMLElementContextBase
19 {
20 public:
21 explicit IWORKMetadataElement(IWORKXMLParserState &state);
22
23 protected:
24 IWORKXMLContextPtr_t element(int name) override;
25 void endOfElement() override;
26
27 private:
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: */
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKXMLContextBase.h
libetonyek::IWORKMetadataElement::IWORKMetadataElement
IWORKMetadataElement(IWORKXMLParserState &state)
Definition: IWORKMetadataElement.cpp:55
libetonyek::IWORKMetadataElement::endOfElement
void endOfElement() override
Definition: IWORKMetadataElement.cpp:87
libetonyek::IWORKMetadataElement::m_keywords
boost::optional< std::string > m_keywords
Definition: IWORKMetadataElement.h:30
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKMetadataElement::m_comment
boost::optional< std::string > m_comment
Definition: IWORKMetadataElement.h:31
libetonyek::IWORKMetadataElement::m_title
boost::optional< std::string > m_title
Definition: IWORKMetadataElement.h:29
libetonyek::IWORKMetadataElement::m_author
boost::optional< std::string > m_author
Definition: IWORKMetadataElement.h:28
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKMetadataElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKMetadataElement.cpp:64
libetonyek::IWORKMetadataElement
Definition: IWORKMetadataElement.h:18