kviewshell
DjVuAnno Class Reference
This is a top-level class containing annotations of a DjVu document (or just a page). More...
#include <DjVuAnno.h>
Public Member Functions | |
GP< DjVuAnno > | copy (void) const |
void | decode (const GP< ByteStream > &bs) |
void | encode (const GP< ByteStream > &bs) |
unsigned int | get_memory_usage () const |
GUTF8String | get_paramtags (void) const |
GUTF8String | get_xmlmap (const GUTF8String &name, const int height) const |
void | merge (const GP< DjVuAnno > &anno) |
void | writeMap (ByteStream &bs, const GUTF8String &name, const int height) const |
void | writeParam (ByteStream &out_str) const |
Static Public Member Functions | |
static GP< DjVuAnno > | create (void) |
Public Attributes | |
GP< DjVuANT > | ant |
Protected Member Functions | |
DjVuAnno (void) |
Detailed Description
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 encode()# and decode()# functions of the proper annotation structure (like {ANT}). The real work of encoding and decoding is done by lower-level classes.
Definition at line 235 of file DjVuAnno.h.
Constructor & Destructor Documentation
DjVuAnno::DjVuAnno | ( | void | ) | [inline, protected] |
Definition at line 238 of file DjVuAnno.h.
Member Function Documentation
void DjVuAnno::decode | ( | const GP< 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 {IFFByteStream::get_chunk}() to data from FORM:ANNO#.
Definition at line 1428 of file DjVuAnno.cpp.
void DjVuAnno::encode | ( | const GP< ByteStream > & | bs | ) |
Encodes all annotations back into a sequence of chunks to be put inside a FORM:ANNO#.
Definition at line 1460 of file DjVuAnno.cpp.
unsigned int DjVuAnno::get_memory_usage | ( | ) | const [inline] |
Returns the number of bytes needed by this data structure.
It's used by caching routines to estimate the size of a {DjVuImage}.
Definition at line 282 of file DjVuAnno.h.
GUTF8String DjVuAnno::get_paramtags | ( | void | ) | const |
GUTF8String DjVuAnno::get_xmlmap | ( | const GUTF8String & | name, | |
const int | height | |||
) | const |
Merged the contents of this class and of annotations pointed by anno# pointer.
Definition at line 1496 of file DjVuAnno.cpp.
void DjVuAnno::writeMap | ( | ByteStream & | bs, | |
const GUTF8String & | name, | |||
const int | height | |||
) | const |
void DjVuAnno::writeParam | ( | ByteStream & | out_str | ) | const |
Member Data Documentation
Definition at line 243 of file DjVuAnno.h.
The documentation for this class was generated from the following files: