ZMF4Header.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 a part of the libzmf 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 ZMF4HEADER_H_INCLUDED
11#define ZMF4HEADER_H_INCLUDED
12
13#include "libzmf_utils.h"
14
15 namespace libzmf
16{
17
18 class ZMF4Header
19{
20 public:
21 ZMF4Header();
22
23 bool load(const RVNGInputStreamPtr &input);
24
25 bool isSupported() const;
26
27 uint32_t objectCount() const;
28 uint32_t startContentOffset() const;
29 uint32_t startBitmapOffset() const;
30
31 private:
32 bool checkSignature() const;
33
34 uint32_t m_signature;
35 uint32_t m_objectCount;
36 uint32_t m_startContentOffset;
37 uint32_t m_startBitmapOffset;
38};
39
40}
41
42#endif // ZMF4HEADER_H_INCLUDED
43
44/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libzmf::ZMF4Header
Definition: ZMF4Header.h:19
libzmf::ZMF4Header::m_startBitmapOffset
uint32_t m_startBitmapOffset
Definition: ZMF4Header.h:37
libzmf::ZMF4Header::objectCount
uint32_t objectCount() const
Definition: ZMF4Header.cpp:52
libzmf::ZMF4Header::m_signature
uint32_t m_signature
Definition: ZMF4Header.h:34
libzmf::ZMF4Header::load
bool load(const RVNGInputStreamPtr &input)
Definition: ZMF4Header.cpp:27
libzmf::ZMF4Header::isSupported
bool isSupported() const
Definition: ZMF4Header.cpp:47
libzmf::ZMF4Header::startBitmapOffset
uint32_t startBitmapOffset() const
Definition: ZMF4Header.cpp:62
libzmf::ZMF4Header::m_startContentOffset
uint32_t m_startContentOffset
Definition: ZMF4Header.h:36
libzmf::ZMF4Header::checkSignature
bool checkSignature() const
Definition: ZMF4Header.cpp:67
libzmf::ZMF4Header::ZMF4Header
ZMF4Header()
Definition: ZMF4Header.cpp:19
libzmf::ZMF4Header::startContentOffset
uint32_t startContentOffset() const
Definition: ZMF4Header.cpp:57
libzmf::ZMF4Header::m_objectCount
uint32_t m_objectCount
Definition: ZMF4Header.h:35
libzmf_utils.h
libzmf
Definition: BMIHeader.cpp:14
libzmf::RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
Definition: libzmf_utils.h:80