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 
19 {
20 public:
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: */
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKMetadataElement(IWORKXMLParserState &state)
Definition: IWORKMetadataElement.cpp:55
void endOfElement() override
Definition: IWORKMetadataElement.cpp:87
boost::optional< std::string > m_keywords
Definition: IWORKMetadataElement.h:30
const char * name
Definition: IWORKToken.cpp:43
boost::optional< std::string > m_comment
Definition: IWORKMetadataElement.h:31
boost::optional< std::string > m_title
Definition: IWORKMetadataElement.h:29
boost::optional< std::string > m_author
Definition: IWORKMetadataElement.h:28
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKMetadataElement.cpp:64
Definition: IWORKMetadataElement.h:18

Generated for libetonyek by doxygen 1.8.6