VSDMetaData.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 libvisio 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 __VSDMETADATA_H__
11#define __VSDMETADATA_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 "libvisio_utils.h"
19
20namespace libvisio
21{
22
24{
25public:
28 bool parse(librevenge::RVNGInputStream *input);
29 bool parseTimes(librevenge::RVNGInputStream *input);
30 const librevenge::RVNGPropertyList &getMetaData();
31
32private:
35
36 void readPropertySetStream(librevenge::RVNGInputStream *input);
37 void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID);
38 void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input);
39 void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID);
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 libvisio
50
51#endif // __VSDMETADATA_H__
52/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
VSDMetaData(const VSDMetaData &)
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition VSDMetaData.h:44
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition VSDMetaData.cpp:242
VSDMetaData()
Definition VSDMetaData.cpp:20
~VSDMetaData()
Definition VSDMetaData.cpp:25
VSDMetaData & operator=(const VSDMetaData &)
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition VSDMetaData.cpp:93
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID)
Definition VSDMetaData.cpp:124
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID)
Definition VSDMetaData.cpp:169
bool parseTimes(librevenge::RVNGInputStream *input)
Definition VSDMetaData.cpp:298
const librevenge::RVNGPropertyList & getMetaData()
Definition VSDMetaData.cpp:350
librevenge::RVNGPropertyList m_metaData
Definition VSDMetaData.h:46
bool parse(librevenge::RVNGInputStream *input)
Definition VSDMetaData.cpp:83
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition VSDMetaData.cpp:159
uint32_t getCodePage()
Definition VSDMetaData.cpp:144
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition VSDMetaData.h:45
Definition libvisio_utils.h:49

Generated for libvisio by doxygen 1.14.0