IWORKDataElement.h Source File documentation

IWORKDataElement.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 IWORKDATAELEMENT_H_INCLUDED
11 #define IWORKDATAELEMENT_H_INCLUDED
12
13 #include <string>
14
15 #include <boost/optional.hpp>
16
17 #include "libetonyek_utils.h"
18 #include "IWORKTypes_fwd.h"
19 #include "IWORKXMLContextBase.h"
20
21 namespace libetonyek
22 {
23
24 class IWORKDataElement : public IWORKXMLEmptyContextBase
25 {
26 public:
27 IWORKDataElement(IWORKXMLParserState &state, IWORKDataPtr_t &data);
28
29 private:
30 virtual void attribute(int name, const char *value);
31 virtual void endOfElement();
32
33 private:
34 IWORKDataPtr_t &m_data;
35 boost::optional<std::string> m_displayName;
36 RVNGInputStreamPtr_t m_stream;
37 boost::optional<std::string> m_mimeType;
38 };
39
40 }
41
42 #endif // IWORKDATAELEMENT_H_INCLUDED
43
44 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
IWORKXMLContextBase.h
libetonyek::IWORKDataElement::m_mimeType
boost::optional< std::string > m_mimeType
Definition: IWORKDataElement.h:37
IWORKTypes_fwd.h
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKDataPtr_t
boost::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:48
libetonyek::IWORKDataElement::m_displayName
boost::optional< std::string > m_displayName
Definition: IWORKDataElement.h:35
libetonyek::IWORKDataElement::endOfElement
virtual void endOfElement()
Definition: IWORKDataElement.cpp:71
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:30
libetonyek::IWORKToken::data
Definition: IWORKToken.h:95
libetonyek::IWORKDataElement::m_stream
RVNGInputStreamPtr_t m_stream
Definition: IWORKDataElement.h:36
libetonyek::RVNGInputStreamPtr_t
boost::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:111
libetonyek::IWORKDataElement::IWORKDataElement
IWORKDataElement(IWORKXMLParserState &state, IWORKDataPtr_t &data)
Definition: IWORKDataElement.cpp:22
libetonyek_utils.h
libetonyek::IWORKDataElement::m_data
IWORKDataPtr_t & m_data
Definition: IWORKDataElement.h:34
libetonyek::IWORKDataElement
Definition: IWORKDataElement.h:24
libetonyek::IWORKDataElement::attribute
virtual void attribute(int name, const char *value)
Definition: IWORKDataElement.cpp:31