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_ATTRIBUTE_PRINTF (   fmt,
  arg 
)
#define CDR_DEBUG (   M)
#define CDR_EPSILON   1E-6

Generated for libcdr by doxygen 1.8.11