- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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