#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< Chunk > | deserialize (Storage *inStorage, ResourceBroker *inBroker=NULL, u32 inFlags=0) |
static void | serialize (Storage *inStorage, const Chunk *inChunkToSerialize, StorageLocator *inStorageLocator=NULL, u32 inFlags=0) |
This struct provides the functions to access XML structured DjVu files.
Flags to control the behavior of deserialize method.
Flags to control the behavior of serialize method.
|
static |
Deserialize a Chunk which contains DjVu document from a XML structured DjVu file.
inStorage | A Storage instance which contains DjVu document. |
inBroker | An optional parameter which specifies a ResourceBroker instance to locate any satellite files. |
inFlags | Reserved. Must be 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.
inStorage | A Storage instance to serialize to. |
inChunkToSerialize | A Chunk instance to be serialized. |
inStorageLocator | Pointer 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(). |
inFlags | Controls the way to deserialize the actual content. This should be a valid combination of SerializationFlags enumeration values. |