#include <textcodec.h>
Inheritance diagram for UserOfTextCodec:
Public Methods | |
UserOfTextCodec (void) | |
A constructor. More... | |
virtual void | setTextCodec (TextCodec *codec) |
Set the text codec. More... | |
Protected Methods | |
void | createDefaultTextCodec (void) |
Create a default text codec. More... | |
void | deleteDefaultTextCodec (void) |
Delete the default text codec. More... | |
Protected Attributes | |
TextCodec * | textCodec |
Pointer to the text codec instance. | |
bool | defaultTextCodecUsed |
Are we using the default text codec? |
All of the classes in Exalt that use the TextCodec inherit this class.
Definition at line 94 of file textcodec.h.
|
A constructor.
Initialization is performed. Definition at line 102 of file textcodec.h. References defaultTextCodecUsed, and textCodec. |
|
Create a default text codec.
This method can be used if no text codec has been specified by setTextCodec(). Definition at line 125 of file textcodec.h. References defaultTextCodecUsed, and NEW. Referenced by KYGrammar::appendToRootRule, ExaltCodec::decode, ExaltCodec::encode, XmlSimpleModel::manageEvent, XmlAdaptiveModel::manageEvent, and XmlParser::unknownEncoding. |
|
Delete the default text codec.
Deletes the default text codec. Definition at line 136 of file textcodec.h. References defaultTextCodecUsed, and DELETE. Referenced by ExaltCodec::~ExaltCodec, KYGrammar::~KYGrammar, OutputSAXReceptor::~OutputSAXReceptor, XmlCodec::~XmlCodec, and XmlParser::~XmlParser. |
|
Set the text codec.
Sets a (non-default) text codec.
Definition at line 111 of file textcodec.h. References defaultTextCodecUsed, and textCodec. Referenced by XmlCodec::decode, ExaltCodec::decode, XmlCodec::encode, ExaltCodec::encode, and XmlCodec::initializePushCoder. |