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
20 namespace libvisio
21{
22
23 class VSDMetaData
24{
25 public:
26 VSDMetaData();
27 ~VSDMetaData();
28 bool parse(librevenge::RVNGInputStream *input);
29 bool parseTimes(librevenge::RVNGInputStream *input);
30 const librevenge::RVNGPropertyList &getMetaData();
31
32 private:
33 VSDMetaData(const VSDMetaData &);
34 VSDMetaData &operator=(const VSDMetaData &);
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: */
libvisio::VSDMetaData
Definition: VSDMetaData.h:24
libvisio::VSDMetaData::VSDMetaData
VSDMetaData(const VSDMetaData &)
libvisio::VSDMetaData::m_idsAndOffsets
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition: VSDMetaData.h:44
libvisio::VSDMetaData::readCodePageString
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:242
libvisio::VSDMetaData::VSDMetaData
VSDMetaData()
Definition: VSDMetaData.cpp:20
libvisio::VSDMetaData::~VSDMetaData
~VSDMetaData()
Definition: VSDMetaData.cpp:25
libvisio::VSDMetaData::operator=
VSDMetaData & operator=(const VSDMetaData &)
libvisio::VSDMetaData::readPropertySetStream
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:93
libvisio::VSDMetaData::readPropertySet
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID)
Definition: VSDMetaData.cpp:124
libvisio::VSDMetaData::readTypedPropertyValue
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID)
Definition: VSDMetaData.cpp:169
libvisio::VSDMetaData::parseTimes
bool parseTimes(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:298
libvisio::VSDMetaData::getMetaData
const librevenge::RVNGPropertyList & getMetaData()
Definition: VSDMetaData.cpp:350
libvisio::VSDMetaData::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition: VSDMetaData.h:46
libvisio::VSDMetaData::parse
bool parse(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:83
libvisio::VSDMetaData::readPropertyIdentifierAndOffset
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:159
libvisio::VSDMetaData::getCodePage
uint32_t getCodePage()
Definition: VSDMetaData.cpp:144
libvisio::VSDMetaData::m_typedPropertyValues
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition: VSDMetaData.h:45
libvisio_utils.h
libvisio
Definition: libvisio_utils.h:49