libmspub_utils.h File Reference documentation

Classes | Namespaces | Macros | Functions
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

## ◆ MSPUB_ATTRIBUTE_PRINTF

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

## ◆ MSPUB_DEBUG

#define MSPUB_DEBUG | ( |  | M | ) |

## ◆ MSPUB_DEBUG_MSG

#define MSPUB_DEBUG_MSG | ( |  | M | ) |

## ◆ MSPUB_FALLTHROUGH

#define MSPUB_FALLTHROUGH ((void) 0)