#include <exaltcodec.h>
Inheritance diagram for ExaltCodec:
Public Methods | |
ExaltCodec (void) | |
A constructor. More... | |
virtual | ~ExaltCodec (void) |
A destructor. More... | |
virtual bool | encode (const char *inFileName, const char *outFileName) |
Encode data in specified file. More... | |
virtual bool | encode (IODevice *inDevice, IODevice *outDevice) |
Encode data in specified input device. More... | |
virtual void | initializePushCoder (IODevice *outDevice) |
Initialize the coder in PUSH mode (using specified output device). More... | |
virtual void | initializePushCoder (const char *outFileName) |
Initialize the coder in PUSH mode (using specified output file). More... | |
virtual bool | encodePush (const char *data, int length, bool isFinal=false) |
Encode a chunk of XML data in PUSH mode. More... | |
virtual bool | decode (const char *inFileName, const char *outFileName) |
Decode data from specified file. More... | |
virtual bool | decode (IODevice *inDevice, IODevice *outDevice) |
Decode data from specified input device. More... | |
virtual bool | decode (IODevice *inDevice, SAXReceptor *receptor, void *userData=0) |
Decode data from specified input device and use SAX event receptor. More... | |
virtual bool | decode (const char *inFileName, SAXReceptor *receptor, void *userData=0) |
Decode data from specified file and use SAX event receptor. More... | |
Protected Attributes | |
XmlCodecBase * | xmlCodec |
The instance of the XmlCodec. |
ExaltCodec offers a simple interface for encoding and decoding XML data.
Definition at line 54 of file exaltcodec.h.
|
A constructor. Creates an instance of XmlCodec. Definition at line 48 of file exaltcodec.cpp. |
|
A destructor. Deletes the instance of XmlCodec. Definition at line 59 of file exaltcodec.cpp. References DELETE, UserOfTextCodec::deleteDefaultTextCodec, and xmlCodec. |
|
Decode data from specified file and use SAX event receptor. The codec decodes the XML data from given file and sends SAX events to specified SAX receptor.
Definition at line 280 of file exaltcodec.cpp. References decode, DELETE, FATAL, NEW, and FileDevice::prepare. |
|
Decode data from specified input device and use SAX event receptor. The codec decodes the XML data from the input device and sends SAX events to specified SAX receptor.
Implements XmlCodecBase. Definition at line 257 of file exaltcodec.cpp. References XmlCodec::decode, DELETE, NEW, and xmlCodec. |
|
Decode data from specified input device. The codec decodes the XML data from one device to another.
Definition at line 182 of file exaltcodec.cpp. References UserOfTextCodec::createDefaultTextCodec, XmlCodecBase::decode, DELETE, ExaltOptions::getOption, NEW, UserOfTextCodec::setTextCodec, SHOW_RUNNING_TIME, UserOfTextCodec::textCodec, ExaltOptions::Verbose, xmlCodec, and ExaltOptions::Yes. |
|
Decode data from specified file. The codec decodes the XML data from one file to another.
Definition at line 228 of file exaltcodec.cpp. References DELETE, FileDevice::finish, NEW, and FileDevice::prepare. Referenced by decode. |
|
Encode data in specified input device. The codec encodes the XML data from one device to another.
Implements XmlCodecBase. Definition at line 117 of file exaltcodec.cpp. References UserOfTextCodec::createDefaultTextCodec, XmlCodecBase::encode, ExaltOptions::getOption, UserOfTextCodec::setTextCodec, SHOW_RUNNING_TIME, UserOfTextCodec::textCodec, ExaltOptions::Verbose, xmlCodec, and ExaltOptions::Yes. |
|
Encode data in specified file. The codec encodes the XML data from one file to another.
Definition at line 153 of file exaltcodec.cpp. References DELETE, FileDevice::finish, NEW, and FileDevice::prepare. |
|
Encode a chunk of XML data in PUSH mode. The coder encodes given chunk of data.
Implements XmlCodecBase. Definition at line 102 of file exaltcodec.cpp. References XmlCodecBase::encodePush, and xmlCodec. |
|
Initialize the coder in PUSH mode (using specified output file). Initializes the codec in PUSH mode with given output file name.
Definition at line 83 of file exaltcodec.cpp. References XmlCodecBase::initializePushCoder, NEW, FileDevice::prepare, and xmlCodec. |
|
Initialize the coder in PUSH mode (using specified output device). Initializes the codec in PUSH mode with given output device.
Implements XmlCodecBase. Definition at line 71 of file exaltcodec.cpp. References XmlCodecBase::initializePushCoder, and xmlCodec. |