Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

UserOfTextCodec Class Reference

Simple interface for accessing the TextCodec functionality. More...

#include <textcodec.h>

Inheritance diagram for UserOfTextCodec:

GrammarBase OutputSAXReceptor XmlCodecBase XmlModelBase XmlParserBase KYGrammar ExaltCodec XmlCodec XmlAdaptiveModel XmlSimpleModel XmlParser List of all members.

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

TextCodectextCodec
 Pointer to the text codec instance.

bool defaultTextCodecUsed
 Are we using the default text codec?


Detailed Description

Simple interface for accessing the TextCodec functionality.

All of the classes in Exalt that use the TextCodec inherit this class.

Definition at line 94 of file textcodec.h.


Constructor & Destructor Documentation

UserOfTextCodec::UserOfTextCodec void    [inline]
 

A constructor.

Initialization is performed.

Definition at line 102 of file textcodec.h.

References defaultTextCodecUsed, and textCodec.


Member Function Documentation

void UserOfTextCodec::createDefaultTextCodec void    [inline, protected]
 

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.

void UserOfTextCodec::deleteDefaultTextCodec void    [inline, protected]
 

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.

virtual void UserOfTextCodec::setTextCodec TextCodec   codec [inline, virtual]
 

Set the text codec.

Sets a (non-default) text codec.

Parameters:
codec  The 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.


The documentation for this class was generated from the following file:
Generated on Wed Feb 5 10:43:06 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002