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 
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 &);
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 libvisio
50 
51 #endif // __VSDMETADATA_H__
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
bool parse(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:24
librevenge::RVNGPropertyList m_metaData
Definition: VSDMetaData.h:46
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset)
Definition: VSDMetaData.cpp:102
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset)
Definition: VSDMetaData.cpp:52
Definition: VSDMetaData.h:23
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:34
const librevenge::RVNGPropertyList & getMetaData()
Definition: VSDMetaData.cpp:247
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition: VSDMetaData.h:44
Definition: libvisio_utils.h:68
VSDMetaData()
Definition: VSDMetaData.cpp:15
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition: VSDMetaData.h:45
bool parseTimes(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:195
VSDMetaData & operator=(const VSDMetaData &)
uint32_t getCodePage()
Definition: VSDMetaData.cpp:71
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:86
~VSDMetaData()
Definition: VSDMetaData.cpp:20
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition: VSDMetaData.cpp:145

Generated for libvisio by doxygen 1.8.9.1