lestes::lang::cplus::lex::encoder_ascii7 Class Reference

7 bit ASCII encoder. More...

#include <encoder_ascii7.hh>

Inheritance diagram for lestes::lang::cplus::lex::encoder_ascii7:

Inheritance graph
List of all members.

Public Member Functions

ptr< ucn_tokenread (void)
 Reads next token.

Static Public Member Functions

static ptr< encoder_ascii7create (void)
 Returns new instance.

Protected Member Functions

 encoder_ascii7 (void)
 Creates the object.
virtual void gc_mark (void)
 Marks the object.

Private Member Functions

 encoder_ascii7 (const encoder_ascii7 &)
 Hides copy constructor.
encoder_ascii7operator= (const encoder_ascii7 &)
 Hides assignment operator.

Private Attributes

srp< ucn_tokenbad
 Flag of correctness of the stream and also eof token.

Detailed Description

7 bit ASCII encoder.

Performs encoding from 7 bit ASCII character set into internal source character set. Expects the input filter to return external characters in ASCII 7 bit, which are encoded into internal representation.

Constructor & Destructor Documentation

lestes::lang::cplus::lex::encoder_ascii7::encoder_ascii7 ( void   )  [protected]

Creates the object.

Creates the encoder.

lestes::lang::cplus::lex::encoder_ascii7::encoder_ascii7 ( const encoder_ascii7  )  [private]

Hides copy constructor.

Member Function Documentation

ptr< ucn_token > lestes::lang::cplus::lex::encoder_ascii7::read ( void   )  [virtual]

Reads next token.

Reads next token. Performs encoding from 7 bit ASCII character set. Checks whether the input contains valid characters. If error is encountered, it returns token with type ucn_token::TOK_ERROR.

Input into the filter is set.
The next token encoded from 7 bit ASCII.

Token with type ucn_token::TOK_ERROR if the source character is invalid (out of range).

Token with type ucn_token::TOK_EOF in case of previous error.

Implements lestes::lang::cplus::lex::ucn_filter.

ptr< encoder_ascii7 > lestes::lang::cplus::lex::encoder_ascii7::create ( void   )  [static]

Returns new instance.

Returns new instance of the encoder.

The new instance.

void lestes::lang::cplus::lex::encoder_ascii7::gc_mark ( void   )  [protected, virtual]

Marks the object.

Marks the object.

Reimplemented from lestes::lang::cplus::lex::ucn_filter.

encoder_ascii7& lestes::lang::cplus::lex::encoder_ascii7::operator= ( const encoder_ascii7  )  [private]

Hides assignment operator.

Member Data Documentation

srp<ucn_token> lestes::lang::cplus::lex::encoder_ascii7::bad [private]

Flag of correctness of the stream and also eof token.

The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:43:40 2007 for lestes by doxygen 1.5.1-20070107