Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | Static Private Attributes

PoDoFo::PdfTokenizer Class Reference

#include <PdfTokenizer.h>

Inheritance diagram for PoDoFo::PdfTokenizer:
Inheritance graph
Collaboration diagram for PoDoFo::PdfTokenizer:
Collaboration graph

List of all members.

Public Member Functions

pdf_long GetNextNumber ()
bool GetNextToken (const char *&pszToken, EPdfTokenType *peType=NULL)
void GetNextVariant (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
bool IsNextToken (const char *pszToken)
 PdfTokenizer (const char *pBuffer, size_t lLen)
 PdfTokenizer (const PdfRefCountedInputDevice &rDevice, const PdfRefCountedBuffer &rBuffer)

Static Public Member Functions

static PODOFO_NOTHROW int GetHexValue (const unsigned char ch)
static PODOFO_NOTHROW bool IsDelimiter (const unsigned char ch)
static PODOFO_NOTHROW bool IsPrintable (const unsigned char ch)
static PODOFO_NOTHROW bool IsRegular (const unsigned char ch)
static PODOFO_NOTHROW bool IsWhitespace (const unsigned char ch)

Static Public Attributes

static const unsigned int HEX_NOT_FOUND = std::numeric_limits<unsigned int>::max()

Protected Member Functions

EPdfDataType DetermineDataType (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant)
void GetNextVariant (const char *pszToken, EPdfTokenType eType, PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void QuequeToken (const char *pszToken, EPdfTokenType eType)
void ReadArray (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadDataType (EPdfDataType eDataType, PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadDictionary (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadHexString (PdfVariant &rVariant, PdfEncrypt *pEncrypt)
void ReadName (PdfVariant &rVariant)
void ReadString (PdfVariant &rVariant, PdfEncrypt *pEncrypt)

Protected Attributes

PdfRefCountedBuffer m_buffer
PdfRefCountedInputDevice m_device

Private Attributes

TTokenizerQueque m_deqQueque
std::istringstream m_doubleParser
std::vector< char > m_vecBuffer

Static Private Attributes

static const char *const s_delimiterMap = PdfTokenizerNameSpace::genDelMap()
static const char *const s_escMap = PdfTokenizerNameSpace::genEscMap()
 Mapping of escape sequences to there value.
static const char *const s_hexMap = PdfTokenizerNameSpace::genHexMap()
 Mapping of hex characters to there value.
static const char s_octMap []
static const char *const s_whitespaceMap = PdfTokenizerNameSpace::genWsMap()

Detailed Description

A simple tokenizer for PDF files and PDF content streams

Definition at line 52 of file PdfTokenizer.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index