libebook_utils.h File Reference documentation

libebook_utils.h File Reference
`#include <memory>`
`#include <string>`
`#include <boost/cstdint.hpp>`
`#include <librevenge-stream/librevenge-stream.h>`
`#include <librevenge/librevenge.h>`

Go to the source code of this file.

## Classes
struct | libebook::EBOOKDummyDeleter
class | libebook::EndOfStreamException
class | libebook::GenericException
class | libebook::FileAccessError
class | libebook::PackageError
class | libebook::ParseError
class | libebook::PasswordMismatch
class | libebook::UnsupportedEncryption
class | libebook::UnsupportedFormat

## Namespaces
namespace | libebook

## Macros
#define | EBOOK_DEBUG_MSG(M)
#define | EBOOK_DEBUG(M)
#define | EBOOK_NUM_ELEMENTS(array)

## Typedefs
typedef std::shared_ptr< librevenge::RVNGInputStream > | libebook::RVNGInputStreamPtr_t

## Functions
uint8_t | libebook::readU8 (librevenge::RVNGInputStream *input, bool)
uint16_t | libebook::readU16 (librevenge::RVNGInputStream *input, bool bigEndian)
uint32_t | libebook::readU32 (librevenge::RVNGInputStream *input, bool bigEndian)
uint64_t | libebook::readU64 (librevenge::RVNGInputStream *input, bool bigEndian)
const unsigned char * | libebook::readNBytes (librevenge::RVNGInputStream *const input, const unsigned long numBytes)
string | libebook::readCString (librevenge::RVNGInputStream *input)
string | libebook::readPascalString (librevenge::RVNGInputStream *input)
void | libebook::skip (librevenge::RVNGInputStream *input, unsigned long numBytes)
void | libebook::seek (librevenge::RVNGInputStream *const input, const unsigned long pos)
void | libebook::seekRelative (librevenge::RVNGInputStream *const input, const long pos)
unsigned long | libebook::getRemainingLength (librevenge::RVNGInputStream *const input)
uint8_t | libebook::readU8 (const std::shared_ptr< librevenge::RVNGInputStream > input, bool)
uint16_t | libebook::readU16 (const std::shared_ptr< librevenge::RVNGInputStream > input, const bool bigEndian)
uint32_t | libebook::readU32 (const std::shared_ptr< librevenge::RVNGInputStream > input, const bool bigEndian)
uint64_t | libebook::readU64 (const std::shared_ptr< librevenge::RVNGInputStream > input, const bool bigEndian)
const unsigned char * | libebook::readNBytes (const std::shared_ptr< librevenge::RVNGInputStream > input, const unsigned long numBytes)
std::string | libebook::readCString (const std::shared_ptr< librevenge::RVNGInputStream > input)
std::string | libebook::readPascalString (const std::shared_ptr< librevenge::RVNGInputStream > input)
void | libebook::skip (const std::shared_ptr< librevenge::RVNGInputStream > input, const unsigned long numBytes)
void | libebook::seek (const std::shared_ptr< librevenge::RVNGInputStream > input, const unsigned long pos)
void | libebook::seekRelative (const std::shared_ptr< librevenge::RVNGInputStream > input, const long pos)
unsigned long | libebook::getRemainingLength (const std::shared_ptr< librevenge::RVNGInputStream > input)
bool | libebook::findSubStreamByExt (const RVNGInputStreamPtr_t &input, const std::string &ext, unsigned &id)
librevenge::RVNGPropertyList | libebook::getDefaultPageSpanPropList ()

## Macro Definition Documentation

## ◆ EBOOK_DEBUG

#define EBOOK_DEBUG | ( |  | M | ) |

## ◆ EBOOK_DEBUG_MSG

#define EBOOK_DEBUG_MSG | ( |  | M | ) |

Referenced by libebook::BBeBCollector::collectAttributes(), libebook::BBeBCollector::collectImage(), libebook::BBeBCollector::collectImageData(), libebook::SoftBookParser::createTextStream(), libebook::EBOOKXMLEmptyContextBase::element(), libebook::EBOOKXMLTextContextBase::element(), libebook::EBOOKHTMLParser::endElement(), libebook::EndOfStreamException::EndOfStreamException(), libebook::SoftBookParser::getFileStream(), libebook::FictionBook2ContentCollector::insertBitmapData(), libebook::BBeBCollector::insertImage(), libebook::BBeBCollector::openBlock(), libebook::EBOOKOPFParser::parse(), libebook::BBeBParser::readAttribute(), libebook::BBeBParser::readBlockListObject(), libebook::BBeBParser::readBlockObject(), libebook::BBeBParser::readBookAtrObject(), libebook::BBeBParser::readButtonObject(), libebook::BBeBParser::readCanvasObject(), libebook::PluckerParser::readDataRecords(), libebook::BBeBParser::readFontObject(), libebook::BBeBParser::readFooterObject(), libebook::BBeBParser::readHeader(), libebook::BBeBParser::readHeaderObject(), libebook::BBeBParser::readImageStreamObject(), libebook::BBeBParser::readImportObject(), libebook::PalmDocParser::readIndexRecord(), libebook::PluckerParser::readIndexRecord(), libebook::PluckerParser::readMetadata(), libebook::BBeBParser::readMiniPageObject(), libebook::BBeBParser::readObject(), libebook::BBeBParser::readObjectInfoObject(), libebook::BBeBParser::readPageObject(), libebook::BBeBParser::readPageTreeObject(), libebook::BBeBParser::readPlaneStreamObject(), libebook::BBeBParser::readPopUpWinObject(), libebook::BBeBParser::readSimpleTextObject(), libebook::BBeBParser::readSoundObject(), libebook::PeanutPressParser::readText(), libebook::BBeBParser::readTextObject(), libebook::BBeBParser::readTOCObject(), libebook::BBeBParser::readToCStream(), libebook::BBeBParser::readWindowObject(), libebook::BBeBParser::skipUnhandledTag(), libebook::SoftBookResourceDirImpl::SoftBookResourceDirImpl(), libebook::EBOOKHTMLParser::startElement(), libebook::EBOOKXMLElementContextBase::text(), libebook::EBOOKXMLEmptyContextBase::text(), and libebook::EBOOKLanguageManager::writeProperties().

## ◆ EBOOK_NUM_ELEMENTS

#define EBOOK_NUM_ELEMENTS | ( |  | array | ) |

Value:
sizeof(array)/sizeof(array[0])

Referenced by libebook::PluckerParser::readMetadata(), libebook::TCRParser::readReplacementTable(), libebook::ZVRParser::readReplacementTable(), libebook::XMLCollector::State::State(), libebook::TCRParser::TCRParser(), and libebook::ZVRParser::ZVRParser().