IWORKWrapElement.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 IWORKWRAPELEMENT_H_INCLUDED
11 #define IWORKWRAPELEMENT_H_INCLUDED
12 
13 #include <boost/optional.hpp>
14 
15 #include "IWORKTypes.h"
16 #include "IWORKXMLContextBase.h"
17 
18 namespace libetonyek
19 {
20 
22 {
23 public:
24  IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional<IWORKExternalTextWrap> &wrap);
25 
26 protected:
27  void attribute(int name, const char *value) override;
28  IWORKXMLContextPtr_t element(int name) override;
29  void endOfElement() override;
30 
31 private:
34 
35  boost::optional<IWORKExternalTextWrap> &m_wrap;
36 };
37 
39 {
40 public:
41  IWORKWrapElement(IWORKXMLParserState &state, boost::optional<IWORKWrap> &wrap);
42 
43 protected:
44  void attribute(int name, const char *value) override;
45  IWORKXMLContextPtr_t element(int name) override;
46 
47 private:
50 
51  boost::optional<IWORKWrap> &m_wrap;
52 };
53 
54 }
55 
56 #endif // IWORKWRAPELEMENT_H_INCLUDED
57 
58 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
Definition: IWORKWrapElement.h:38
boost::optional< IWORKWrap > & m_wrap
Definition: IWORKWrapElement.h:51
Definition: IWORKToken.h:631
IWORKWrapElement(IWORKXMLParserState &state, boost::optional< IWORKWrap > &wrap)
Definition: IWORKWrapElement.cpp:206
void endOfElement() override
Definition: IWORKWrapElement.cpp:200
IWORKExternalTextWrapElement & operator=(const IWORKExternalTextWrapElement &)
Definition: IWORKWrapElement.h:21
const char * name
Definition: IWORKToken.cpp:43
boost::optional< IWORKExternalTextWrap > & m_wrap
Definition: IWORKWrapElement.h:35
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:213
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional< IWORKExternalTextWrap > &wrap)
Definition: IWORKWrapElement.cpp:87
IWORKWrapElement & operator=(const IWORKWrapElement &)
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:94
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:218
Definition: IWORKToken.h:503
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:190

Generated for libetonyek by doxygen 1.8.6