libmspub_utils.h File Reference documentation

libmspub_utils.h File Reference
`#include <cmath>`
`#include <vector>`
`#include <boost/cstdint.hpp>`
`#include <librevenge/librevenge.h>`
`#include <librevenge-stream/librevenge-stream.h>`
`#include "MSPUBTypes.h"`

Go to the source code of this file.

## Classes
class | libmspub::EndOfStreamException
class | libmspub::GenericException

## Namespaces
namespace | libmspub

## Macros
#define | M_PI 3.14159265358979323846
#define | MSPUB_ATTRIBUTE_PRINTF(fmt, arg)
#define | MSPUB_FALLTHROUGH ((void) 0)
#define | MSPUB_DEBUG_MSG(M)
#define | MSPUB_DEBUG(M)

## Functions
const char * | libmspub::mimeByImgType (ImgType type)
const char * | libmspub::windowsCharsetNameByOriginalCharset (const char *name)
uint8_t | libmspub::readU8 (librevenge::RVNGInputStream *input)
uint16_t | libmspub::readU16 (librevenge::RVNGInputStream *input)
uint32_t | libmspub::readU32 (librevenge::RVNGInputStream *input)
uint64_t | libmspub::readU64 (librevenge::RVNGInputStream *input)
int8_t | libmspub::readS8 (librevenge::RVNGInputStream *input)
int16_t | libmspub::readS16 (librevenge::RVNGInputStream *input)
int32_t | libmspub::readS32 (librevenge::RVNGInputStream *input)
double | libmspub::readFixedPoint (librevenge::RVNGInputStream *input)
double | libmspub::toFixedPoint (int fp)
void | libmspub::readNBytes (librevenge::RVNGInputStream *input, unsigned long length, std::vector< unsigned char > &out)
unsigned long | libmspub::getLength (librevenge::RVNGInputStream *const input)
void | libmspub::appendCharacters (librevenge::RVNGString &text, const std::vector< unsigned char > &characters, const char *encoding)
bool | libmspub::stillReading (librevenge::RVNGInputStream *input, unsigned long until)
void | libmspub::rotateCounter (double &x, double &y, double centerX, double centerY, short rotation)
void | libmspub::flipIfNecessary (double &x, double &y, double centerX, double centerY, bool flipVertical, bool flipHorizontal)
unsigned | libmspub::correctModulo (int x, unsigned n)
double | libmspub::doubleModulo (double x, double y)
template<class MapT>
MapT::mapped_type * | libmspub::getIfExists (MapT &map, const typename MapT::key_type &key)
template<class MapT>
const MapT::mapped_type * | libmspub::getIfExists_const (MapT &map, const typename MapT::key_type &key)
template<class MapT>
MapT::mapped_type | libmspub::ptr_getIfExists (MapT &map, const typename MapT::key_type &key)
librevenge::RVNGBinaryData | libmspub::inflateData (librevenge::RVNGBinaryData deflated)

## Macro Definition Documentation

## ◆ M_PI

#define M_PI 3.14159265358979323846

Referenced by libmspub::MSPUBCollector::getCalculationValue(), libmspub::MSPUBCollector::paintShape(), libmspub::rotateCounter(), libmspub::MSPUBCollector::setupShapeStructures(), and libmspub::writeCustomShape().

## ◆ MSPUB_ATTRIBUTE_PRINTF

#define MSPUB_ATTRIBUTE_PRINTF | ( |  | fmt,
|  |  | arg )

## ◆ MSPUB_DEBUG

#define MSPUB_DEBUG | ( |  | M | ) |

## ◆ MSPUB_DEBUG_MSG

#define MSPUB_DEBUG_MSG | ( |  | M | ) |

Referenced by libmspub::MSPUBCollector::addImage(), libmspub::MSPUBCollector::addPage(), libmspub::MSPUBCollector::addTextString(), libmspub::appendCharacters(), libmspub::MSPUBParser::extractEscherValues(), libmspub::MSPUBParser::findEscherContainer(), libmspub::MSPUBParser::getBlockDataLength(), libmspub::MSPUBParser::getColorIndex(), libmspub::MSPUBCollector::getColorString(), libmspub::getCommandFromBinary(), libmspub::getDash(), libmspub::MSPUBParser::getFontIndex(), libmspub::mimeByImgType(), libmspub::MSPUBParser2k::parse(), libmspub::MSPUBParser97::parse(), libmspub::MSPUBParser::parse(), libmspub::MSPUBParser2k::parse2kShapeChunk(), libmspub::MSPUBParser::parseBlock(), libmspub::MSPUBParser::parseContentChunkReference(), libmspub::MSPUBParser2k::parseContents(), libmspub::MSPUBParser::parseContents(), libmspub::MSPUBParser::parseDocumentChunk(), libmspub::MSPUBParser::parseEscher(), libmspub::MSPUBParser::parseEscherContainer(), libmspub::MSPUBParser::parseEscherDelay(), libmspub::MSPUBParser::parseEscherShape(), libmspub::MSPUBParser::parsePageChunk(), libmspub::MSPUBParser::parsePageShapeList(), libmspub::MSPUBParser::parseQuill(), libmspub::MSPUBParser::parseShape(), libmspub::MSPUBParser::parseVertices(), libmspub::MSPUBMetaData::readCodePageString(), libmspub::readNBytes(), libmspub::readU8(), libmspub::MSPUBCollector::setShapeImgIndex(), and libmspub::writeCustomShape().

## ◆ MSPUB_FALLTHROUGH

#define MSPUB_FALLTHROUGH ((void) 0)

Referenced by libmspub::getDash(), libmspub::MSPUBParser::parseBlock(), and libmspub::writeCustomShape().