class DjVuAnno: public GPEnabled

This is a top-level class containing annotations of a DjVu document (or just a page).

Inheritance:


Public Methods

[more]void decode(ByteStream & bs)
Decodes a sequence of annotation chunks and merges contents of every chunk with previously decoded information.
[more]void encode(ByteStream & bs)
Encodes all annotations back into a sequence of chunks to be put inside a FORM:ANNO.
[more]GP<DjVuAnno> copy(void) const
Returns a copy of this object
[more]void merge(const GP<DjVuAnno> & anno)
Merged the contents of this class and of annotations pointed by anno pointer
[more]inline unsigned int get_memory_usage() const
Returns the number of bytes needed by this data structure.


Inherited from GPEnabled:

Public Methods

oGPEnabled& operator=(const GPEnabled & obj)
oint get_count(void) const

Protected Fields

ovolatile int count


Documentation

This is a top-level class containing annotations of a DjVu document (or just a page). It has only two functions: encode() and decode(). Both of them work with a sequence of annotation chunks from FORM:ANNO form. Basing on the name of the chunks they call

(like ANT). The real work of encoding and decoding is done by lower-level classes.

ovoid decode(ByteStream & bs)
Decodes a sequence of annotation chunks and merges contents of every chunk with previously decoded information. This function should be called right after applying get_chunk() to data from FORM:ANNO.

ovoid encode(ByteStream & bs)
Encodes all annotations back into a sequence of chunks to be put inside a FORM:ANNO.

oGP<DjVuAnno> copy(void) const
Returns a copy of this object

ovoid merge(const GP<DjVuAnno> & anno)
Merged the contents of this class and of annotations pointed by anno pointer

oinline unsigned int get_memory_usage() const
Returns the number of bytes needed by this data structure. It's used by caching routines to estimate the size of a DjVuImage.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.