MSPUBMetaData.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 libmspub 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 INCLUDED_MSPUBMETADATA_H
#define INCLUDED_MSPUBMETADATA_H
#include <cstdint>
#include <map>
#include <utility>
#include <vector>
#include <cstdint>
#include <librevenge/librevenge.h>
#include <librevenge-stream/librevenge-stream.h>
namespace libmspub
{
class MSPUBMetaData
{
public:
MSPUBMetaData();
~MSPUBMetaData();
bool parse(librevenge::RVNGInputStream *input);
bool parseTimes(librevenge::RVNGInputStream *input);
const librevenge::RVNGPropertyList &getMetaData();
private:
MSPUBMetaData(const MSPUBMetaData &);
MSPUBMetaData &operator=(const MSPUBMetaData &);
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 libmspub
#endif // INCLUDED_MSPUBMETADATA_H
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::MSPUBMetaData::MSPUBMetaData
MSPUBMetaData(const MSPUBMetaData &)
libmspub::MSPUBMetaData::readCodePageString
librevenge::RVNGString readCodePageString(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:239
libmspub::MSPUBMetaData::operator=
MSPUBMetaData & operator=(const MSPUBMetaData &)
libmspub::MSPUBMetaData::getMetaData
const librevenge::RVNGPropertyList & getMetaData()
Definition MSPUBMetaData.cpp:328
libmspub::MSPUBMetaData::~MSPUBMetaData
~MSPUBMetaData()
Definition MSPUBMetaData.cpp:25
libmspub::MSPUBMetaData::m_typedPropertyValues
std::map< uint16_t, uint16_t > m_typedPropertyValues
Definition MSPUBMetaData.h:48
libmspub::MSPUBMetaData::readTypedPropertyValue
void readTypedPropertyValue(librevenge::RVNGInputStream *input, uint32_t index, uint32_t offset, char *FMTID)
Definition MSPUBMetaData.cpp:166
libmspub::MSPUBMetaData::m_idsAndOffsets
std::vector< std::pair< uint32_t, uint32_t > > m_idsAndOffsets
Definition MSPUBMetaData.h:47
libmspub::MSPUBMetaData::readPropertySetStream
void readPropertySetStream(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:93
libmspub::MSPUBMetaData::getCodePage
uint32_t getCodePage()
Definition MSPUBMetaData.cpp:141
libmspub::MSPUBMetaData::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition MSPUBMetaData.h:49
libmspub::MSPUBMetaData::parseTimes
bool parseTimes(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:276
libmspub::MSPUBMetaData::MSPUBMetaData
MSPUBMetaData()
Definition MSPUBMetaData.cpp:20
libmspub::MSPUBMetaData::parse
bool parse(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:83
libmspub::MSPUBMetaData::readPropertyIdentifierAndOffset
void readPropertyIdentifierAndOffset(librevenge::RVNGInputStream *input)
Definition MSPUBMetaData.cpp:156
libmspub::MSPUBMetaData::readPropertySet
void readPropertySet(librevenge::RVNGInputStream *input, uint32_t offset, char *FMTID)
Definition MSPUBMetaData.cpp:124
libmspub
Definition Arrow.h:14