Public Types | Static Public Member Functions | List of all members
Celartem::DjVu::XML Struct Reference

#include <djv_xml.h>

Public Types

enum  DeserializationFlags
 
enum  SerializationFlags { xsf_DjVuSatellites = 1, xsf_XmlSatellites = 2, xsf_IndexOnly = 4, xsf_DontResolveINCLs = 8 }
 

Static Public Member Functions

static AutoPtr< Chunkdeserialize (Storage *inStorage, ResourceBroker *inBroker=NULL, u32 inFlags=0)
 
static void serialize (Storage *inStorage, const Chunk *inChunkToSerialize, StorageLocator *inStorageLocator=NULL, u32 inFlags=0)
 

Detailed Description

This struct provides the functions to access XML structured DjVu files.

Member Enumeration Documentation

Flags to control the behavior of deserialize method.

Flags to control the behavior of serialize method.

Enumerator
xsf_DjVuSatellites 

Pages/resources as satellite DjVu files.

The output is like indirect index DjVu files. All the pages/resources are placed around the index file. It cannot be combined with xsf_XmlSatellites or xsf_NoSatellites.

xsf_XmlSatellites 

Pages/resources as satellite XML files.

The output is like indirect index DjVu files but all in XML file. All the pages/resources are placed around the index file. It cannot be combined with xsf_DjVuSatellites or xsf_NoSatellites.

xsf_IndexOnly 

Don't generate page/resource files.

Don't generate any actual satellite files; this is useful when only generating indirect index XML.
This option can be combined with xsf_DjVuSatellites or xsf_XmlSatellites to specify satellite format.

xsf_DontResolveINCLs 

Reserved.

Member Function Documentation

static AutoPtr<Chunk> Celartem::DjVu::XML::deserialize ( Storage inStorage,
ResourceBroker inBroker = NULL,
u32  inFlags = 0 
)
static

Deserialize a Chunk which contains DjVu document from a XML structured DjVu file.

Parameters
inStorageA Storage instance which contains DjVu document.
inBrokerAn optional parameter which specifies a ResourceBroker instance to locate any satellite files.
inFlagsReserved. Must be 0.
Returns
Pointer to newly created Chunk instance.
static void Celartem::DjVu::XML::serialize ( Storage inStorage,
const Chunk inChunkToSerialize,
StorageLocator inStorageLocator = NULL,
u32  inFlags = 0 
)
static

Serialize a Chunk which contains DjVu document to a XML structured DjVu file.
If you want to overwrite the original file (A.K.A. Save As), you had better call preload method of the chunk to be serialized.

Parameters
inStorageA Storage instance to serialize to.
inChunkToSerializeA Chunk instance to be serialized.
inStorageLocatorPointer to a StorageLocator instance which is used when create Storage instance for satellite files. It can be NULL if you want to use StorageLocator instance initialized with the index name which is returned by inStorage->getStorageId().
inFlagsControls the way to deserialize the actual content. This should be a valid combination of SerializationFlags enumeration values.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo