libcdr_utils.h File Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Macros | Functions
libcdr_utils.h File Reference
`#include <stdio.h>`
`#include <string>`
`#include <math.h>`
`#include <vector>`
`#include <librevenge-stream/librevenge-stream.h>`
`#include <librevenge/librevenge.h>`
`#include <stdint.h>`
`#include <inttypes.h>`

Go to the source code of this file.

## Classes
class | libcdr::EndOfStreamException
class | libcdr::GenericException
class | libcdr::UnknownPrecisionException
class | libcdr::EncodingException

## Namespaces
| libcdr

## Macros
#define | M_PI 3.14159265358979323846
#define | CDR_EPSILON 1E-6
#define | CDR_ALMOST_ZERO(m) (fabs(m) <= CDR_EPSILON)
#define | CDR_ATTRIBUTE_PRINTF(fmt, arg)
#define | CDR_DEBUG_MSG(M)
#define | CDR_DEBUG(M)

## Functions
uint8_t | libcdr::readU8 (librevenge::RVNGInputStream *input, bool bigEndian=false)
uint16_t | libcdr::readU16 (librevenge::RVNGInputStream *input, bool bigEndian=false)
uint32_t | libcdr::readU32 (librevenge::RVNGInputStream *input, bool bigEndian=false)
uint64_t | libcdr::readU64 (librevenge::RVNGInputStream *input, bool bigEndian=false)
int32_t | libcdr::readS32 (librevenge::RVNGInputStream *input, bool bigEndian=false)
int16_t | libcdr::readS16 (librevenge::RVNGInputStream *input, bool bigEndian=false)
double | libcdr::readDouble (librevenge::RVNGInputStream *input, bool bigEndian=false)
double | libcdr::readFixedPoint (librevenge::RVNGInputStream *input, bool bigEndian=false)
unsigned long | libcdr::getLength (librevenge::RVNGInputStream *input)
unsigned long | libcdr::getRemainingLength (librevenge::RVNGInputStream *input)
int | libcdr::cdr_round (double d)
void | libcdr::writeU16 (librevenge::RVNGBinaryData &buffer, const int value)
void | libcdr::writeU32 (librevenge::RVNGBinaryData &buffer, const int value)
void | libcdr::appendCharacters (librevenge::RVNGString &text, std::vector< unsigned char > characters, unsigned short charset)
void | libcdr::appendCharacters (librevenge::RVNGString &text, std::vector< unsigned char > characters)

## Macro Definition Documentation

#define CDR_ALMOST_ZERO | ( |  | m | ) | (fabs(m) <= CDR_EPSILON)

Referenced by libcdr::CDRContentCollector::_flushCurrentPath(), libcdr::CDRTransform::applyToArc(), and libcdr::CDRCharacterStyle::overrideCharacterStyle().

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

#define CDR_DEBUG | ( |  | M | ) |

#define CDR_DEBUG_MSG | ( |  | M | ) |

Referenced by libcdr::CDRContentCollector::_flushCurrentPath(), libcdr::CDRParser::_readX6StyleString(), libcdr::CDRContentCollector::collectPath(), libcdr::CDRStylesCollector::collectText(), libcdr::CDRParser::gatherWaldoInformation(), libcdr::CDRDocument::parse(), libcdr::CMXParser::parseRecord(), libcdr::CDRParser::parseRecord(), libcdr::CDRParser::parseWaldo(), libcdr::CDRParser::readArrw(), libcdr::CMXParser::readBeginPage(), libcdr::CDRParser::readBitmap(), libcdr::CMXParser::readCMXHeader(), libcdr::CMXParser::readEllipse(), libcdr::CDRParser::readEllipse(), libcdr::CMXParser::readFill(), libcdr::CMXParser::readJumpAbsolute(), libcdr::CDRParser::readLineAndCurve(), libcdr::CMXParser::readPage(), libcdr::CDRParser::readPath(), libcdr::CMXParser::readPolyCurve(), libcdr::CDRParser::readPolygonCoords(), libcdr::CMXParser::readRectangle(), libcdr::CMXParser::readRenderingAttributes(), libcdr::CDRParser::readStlt(), libcdr::CDRParser::readStyd(), libcdr::readU16(), libcdr::readU32(), libcdr::readU64(), libcdr::readU8(), libcdr::CDRParser::readUdta(), libcdr::CDRParser::readWaldoRecord(), and libcdr::CDRParser::readWaldoTrfd().

#define CDR_EPSILON 1E-6

#define M_PI 3.14159265358979323846

Referenced by libcdr::CDRContentCollector::_fillProperties(), libcdr::CDRContentCollector::_flushCurrentPath(), libcdr::CDRTransform::applyToArc(), libcdr::CDRPolygon::create(), libcdr::CommonParser::readAngle(), libcdr::CMXParser::readEllipse(), libcdr::CDRParser::readEllipse(), and libcdr::CDRArcToElement::writeOut().