libetonyek_utils.h File Reference
#include <cmath>
#include <stdio.h>
#include <string>
#include <boost/shared_ptr.hpp>
#include <libwpd/libwpd.h>
#include <libwpd-stream/libwpd-stream.h>
#include <stdint.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  libetonyek::KEYDummyDeleter
 
class  libetonyek::EndOfStreamException
 
class  libetonyek::GenericException
 

Namespaces

 libetonyek
 

Macros

#define KEY_EPSILON   1e-9
 
#define KEY_ALMOST_ZERO(x)   (std::fabs(x) < KEY_EPSILON)
 
#define KEY_NUM_ELEMENTS(array)   (sizeof(array) / sizeof((array)[0]))
 
#define KEY_DEBUG_MSG(M)
 
#define KEY_DEBUG(M)
 

Typedefs

typedef boost::shared_ptr
< WPXInputStream > 
libetonyek::WPXInputStreamPtr_t
 

Functions

uint8_t libetonyek::readU8 (const WPXInputStreamPtr_t &input, bool)
 
uint16_t libetonyek::readU16 (const WPXInputStreamPtr_t &input, bool bigEndian)
 
uint32_t libetonyek::readU32 (const WPXInputStreamPtr_t &input, bool bigEndian)
 
uint64_t libetonyek::readU64 (const WPXInputStreamPtr_t &input, bool bigEndian)
 
bool libetonyek::approxEqual (double x, double y, double eps=KEY_EPSILON)
 Test two floating point numbers for equality. More...
 
double libetonyek::pt2in (double d)
 Convert a length from points to inches. More...
 

Macro Definition Documentation

#define KEY_ALMOST_ZERO (   x)    (std::fabs(x) < KEY_EPSILON)
#define KEY_DEBUG (   M)
#define KEY_EPSILON   1e-9
#define KEY_NUM_ELEMENTS (   array)    (sizeof(array) / sizeof((array)[0]))

Generated for libetonyek by doxygen 1.8.5