lestes::lang::cplus::lex::string_translator Class Reference

Encoder into execution character set. More...

#include <string_translator.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< pp_tokenread (void)
 Reads next token.

Static Public Member Functions

static ptr< string_translatorcreate (const ptr< pp_filter > &a_input)
 Returns new instance.

Protected Member Functions

 string_translator (const ptr< pp_filter > &a_input)
 Creates the translator.

Private Member Functions

ptr< token_valuetranslate (const ucn_string &str, const ptr< source_location > &loc)
 Translates literal into execution character set.
 string_translator (const string_translator &)
 Hides copy constructor.
string_translatoroperator= (const string_translator &)
 Hides assignment operator.

Detailed Description

Encoder into execution character set.

Encodes string and character literals into execution character set.


Constructor & Destructor Documentation

lestes::lang::cplus::lex::string_translator::string_translator ( const ptr< pp_filter > &  a_input  )  [protected]

Creates the translator.

Creates the translator.

Precondition:
a_input != NULL
Parameters:
a_input The input for the filter.

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

Hides copy constructor.


Member Function Documentation

ptr< pp_token > lestes::lang::cplus::lex::string_translator::read ( void   )  [virtual]

Reads next token.

Reads next token, encodes character and string literals into execution character set.

Returns:
The next token.

Implements lestes::lang::cplus::lex::pp_filter.

ptr< string_translator > lestes::lang::cplus::lex::string_translator::create ( const ptr< pp_filter > &  a_input  )  [static]

Returns new instance.

Returns new translator.

Precondition:
a_input != NULL
Parameters:
a_input The input for the filter.
Returns:
New instance of the translator.

ptr< token_value > lestes::lang::cplus::lex::string_translator::translate ( const ucn_string &  str,
const ptr< source_location > &  loc 
) [private]

Translates literal into execution character set.

Translates string or character literal to execution character set.

Precondition:
loc != NULL
Parameters:
str The literal representation to translate.
loc The location of the literal.
Returns:
The literal in execution character set.

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

Hides assignment operator.


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