MSPUBMetaData.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 libmspub 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 INCLUDED_MSPUBMETADATA_H
11#define INCLUDED_MSPUBMETADATA_H
12
13#include <map>
14#include <utility>
15#include <vector>
16#include <stdint.h>
17
18#include <librevenge/librevenge.h>
19
20#include <librevenge-stream/librevenge-stream.h>
21
22 namespace libmspub
23{
24
25 class MSPUBMetaData
26{
27 public:
28 MSPUBMetaData();
29 ~MSPUBMetaData();
30 bool parse(librevenge::RVNGInputStream *input);
31 bool parseTimes(librevenge::RVNGInputStream *input);
32 const librevenge::RVNGPropertyList &getMetaData();
33
34 private:
35 MSPUBMetaData(const MSPUBMetaData &);
36 MSPUBMetaData &operator=(const MSPUBMetaData &);
37
38 void readPropertySetStream(librevenge::RVNGInputStream *input);
39 void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID);
40 void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input);
41 void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID);
42 librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input);
43
44 uint32_t getCodePage();
45
46 std::vector< std::pair<uint32_t, uint32_t> > m_idsAndOffsets;
47 std::map<uint16_t, uint16_t> m_typedPropertyValues;
48 librevenge::RVNGPropertyList m_metaData;
49};
50
51} // namespace libmspub
52
53#endif // INCLUDED_MSPUBMETADATA_H
54
55/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::MSPUBMetaData::MSPUBMetaData
MSPUBMetaData(const MSPUBMetaData &)
libmspub::MSPUBMetaData::readCodePageString
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:239
libmspub::MSPUBMetaData::operator=
MSPUBMetaData & operator=(const MSPUBMetaData &)
libmspub::MSPUBMetaData::getMetaData
const librevenge::RVNGPropertyList & getMetaData()
Definition MSPUBMetaData.cpp:328
libmspub::MSPUBMetaData::~MSPUBMetaData
~MSPUBMetaData()
Definition MSPUBMetaData.cpp:25
libmspub::MSPUBMetaData::m_typedPropertyValues
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition MSPUBMetaData.h:47
libmspub::MSPUBMetaData::readTypedPropertyValue
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID)
Definition MSPUBMetaData.cpp:166
libmspub::MSPUBMetaData::m_idsAndOffsets
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition MSPUBMetaData.h:46
libmspub::MSPUBMetaData::readPropertySetStream
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:93
libmspub::MSPUBMetaData::getCodePage
uint32_t getCodePage()
Definition MSPUBMetaData.cpp:141
libmspub::MSPUBMetaData::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition MSPUBMetaData.h:48
libmspub::MSPUBMetaData::parseTimes
bool parseTimes(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:276
libmspub::MSPUBMetaData::MSPUBMetaData
MSPUBMetaData()
Definition MSPUBMetaData.cpp:20
libmspub::MSPUBMetaData::parse
bool parse(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:83
libmspub::MSPUBMetaData::readPropertyIdentifierAndOffset
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:156
libmspub::MSPUBMetaData::readPropertySet
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID)
Definition MSPUBMetaData.cpp:124
libmspub
Definition Arrow.h:14