VSDMetaData.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __VSDMETADATA_H__
#define __VSDMETADATA_H__
#include <vector>
#include <utility>
#include <map>
#include <librevenge-stream/librevenge-stream.h>
#include <librevenge/librevenge.h>
#include "libvisio_utils.h"
namespace libvisio
{
class VSDMetaData
{
public:
VSDMetaData();
~VSDMetaData();
bool parse(librevenge::RVNGInputStream *input);
bool parseTimes(librevenge::RVNGInputStream *input);
const librevenge::RVNGPropertyList &getMetaData();
private:
VSDMetaData(const VSDMetaData &);
VSDMetaData &operator=(const VSDMetaData &);
void readPropertySetStream(librevenge::RVNGInputStream *input);
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID);
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input);
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID);
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input);
uint32_t getCodePage();
std::vector< std::pair<uint32_t, uint32_t> > m_idsAndOffsets;
std::map<uint16_t, uint16_t> m_typedPropertyValues;
librevenge::RVNGPropertyList m_metaData;
};
} // namespace libvisio
#endif // __VSDMETADATA_H__
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
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:47