MSPUBMetaData.h Source File documentation

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