KEY1TableElement.h Source File documentation

KEY1TableElement.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 KEY1TABLEELEMENT_H_INCLUDED
11#define KEY1TABLEELEMENT_H_INCLUDED
12
13#include <string>
14
15#include <boost/optional.hpp>
16#include <boost/shared_ptr.hpp>
17
18#include "KEY1XMLContextBase.h"
19
20#include "IWORKTypes.h"
21
22namespace libetonyek
23{
24class IWORKText;
25class KEY1ParserState;
26
27 class KEY1TableElement : public KEY1XMLElementContextBase
28{
29public:
30 struct TableData;
31
32 explicit KEY1TableElement(KEY1ParserState &state, boost::optional<IWORKSize> &size);
33
34protected:
35 void attribute(int name, const char *value) override;
36 void startOfElement() override;
37 IWORKXMLContextPtr_t element(int name) override;
38 void endOfElement() override;
39
40private:
41 boost::optional<std::string> m_key;
42 boost::optional<IWORKSize> &m_size;
43 boost::shared_ptr<TableData> m_tableData;
44};
45
46}
47
48#endif // KEY1TABLEELEMENT_H_INCLUDED
49
50/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKTypes.h
KEY1XMLContextBase.h
libetonyek::KEY1ParserState
Definition: KEY1ParserState.h:45
libetonyek::KEY1TableElement
Definition: KEY1TableElement.h:28
libetonyek::KEY1TableElement::attribute
void attribute(int name, const char *value) override
Definition: KEY1TableElement.cpp:389
libetonyek::KEY1TableElement::m_size
boost::optional< IWORKSize > & m_size
Definition: KEY1TableElement.h:42
libetonyek::KEY1TableElement::KEY1TableElement
KEY1TableElement(KEY1ParserState &state, boost::optional< IWORKSize > &size)
Definition: KEY1TableElement.cpp:381
libetonyek::KEY1TableElement::startOfElement
void startOfElement() override
Definition: KEY1TableElement.cpp:406
libetonyek::KEY1TableElement::m_key
boost::optional< std::string > m_key
Definition: KEY1TableElement.h:41
libetonyek::KEY1TableElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: KEY1TableElement.cpp:417
libetonyek::KEY1TableElement::m_tableData
boost::shared_ptr< TableData > m_tableData
Definition: KEY1TableElement.h:43
libetonyek::KEY1TableElement::endOfElement
void endOfElement() override
Definition: KEY1TableElement.cpp:433
libetonyek::KEY1XMLContextBase
Definition: KEY1XMLContextBase.h:23
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:631
libetonyek::IWORKToken::size
@ size
Definition: IWORKToken.h:402
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:585
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::KEY1TableElement::TableData
Definition: KEY1TableElement.cpp:126