Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_WChar_Codeset_Translator Class Reference

Codeset translation routines common to both Output and Input CDR streams. More...

#include <CDR_Stream.h>

List of all members.

Public Methods

virtual ~ACE_WChar_Codeset_Translator ()
virtual ACE_CDR::Boolean read_wchar (ACE_InputCDR &, ACE_CDR::WChar &)=0
virtual ACE_CDR::Boolean read_wstring (ACE_InputCDR &, ACE_CDR::WChar *&)=0
virtual ACE_CDR::Boolean read_wchar_array (ACE_InputCDR &, ACE_CDR::WChar *, ACE_CDR::ULong)=0
virtual ACE_CDR::Boolean write_wchar (ACE_OutputCDR &, ACE_CDR::WChar)=0
virtual ACE_CDR::Boolean write_wstring (ACE_OutputCDR &, ACE_CDR::ULong, const ACE_CDR::WChar *)=0
virtual ACE_CDR::Boolean write_wchar_array (ACE_OutputCDR &, const ACE_CDR::WChar *, ACE_CDR::ULong)=0
virtual ACE_CDR::ULong ncs ()=0
virtual ACE_CDR::ULong tcs ()=0

Protected Methods

ACE_CDR::Boolean read_1 (ACE_InputCDR &input, ACE_CDR::Octet *x)
 Children have access to low-level routines because they cannot use read_char or something similar (it would recurse). More...

ACE_CDR::Boolean read_2 (ACE_InputCDR &input, ACE_CDR::UShort *x)
ACE_CDR::Boolean read_4 (ACE_InputCDR &input, ACE_CDR::ULong *x)
ACE_CDR::Boolean write_1 (ACE_OutputCDR &output, const ACE_CDR::Octet *x)
ACE_CDR::Boolean write_2 (ACE_OutputCDR &output, const ACE_CDR::UShort *x)
ACE_CDR::Boolean write_4 (ACE_OutputCDR &output, const ACE_CDR::ULong *x)
ACE_CDR::Boolean read_array (ACE_InputCDR &input, void *x, size_t size, size_t align, ACE_CDR::ULong length)
 Efficiently read <length> elements of size <size> each from into <x>; the data must be aligned to <align>. More...

ACE_CDR::Boolean write_array (ACE_OutputCDR &output, const void *x, size_t size, size_t align, ACE_CDR::ULong length)
int adjust (ACE_OutputCDR &out, size_t size, size_t align, char *&buf)
void good_bit (ACE_OutputCDR &out, int bit)
 Used by derived classes to set errors in the CDR stream. More...

ACE_CDR::Octet major_version (ACE_InputCDR &input)
 Obtain the CDR Stream's major & minor version values. More...

ACE_CDR::Octet minor_version (ACE_InputCDR &input)
ACE_CDR::Octet major_version (ACE_OutputCDR &output)
ACE_CDR::Octet minor_version (ACE_OutputCDR &output)


Detailed Description

Codeset translation routines common to both Output and Input CDR streams.

This class is a base class for defining codeset translation routines to handle the character set translations required by both CDR Input streams and CDR Output streams.

Definition at line 1054 of file CDR_Stream.h.


Constructor & Destructor Documentation

virtual ACE_WChar_Codeset_Translator::~ACE_WChar_Codeset_Translator   [inline, virtual]
 

Definition at line 1057 of file CDR_Stream.h.

01057 {}


Member Function Documentation

ACE_INLINE int ACE_WChar_Codeset_Translator::adjust ACE_OutputCDR   out,
size_t    size,
size_t    align,
char *&    buf
[protected]
 

Exposes the stream implementation of <adjust>, this is useful in many cases to minimize memory allocations during marshaling. On success <buf> will contain a contiguous area in the CDR stream that can hold <size> bytes aligned to <align>. Results

Definition at line 1611 of file CDR_Stream.i.

References ACE_OutputCDR::adjust.

01615 {
01616   return out.adjust(size, align, buf);
01617 }

ACE_INLINE void ACE_WChar_Codeset_Translator::good_bit ACE_OutputCDR   out,
int    bit
[protected]
 

Used by derived classes to set errors in the CDR stream.

Definition at line 1620 of file CDR_Stream.i.

References ACE_OutputCDR::good_bit_.

01621 {
01622   out.good_bit_ = bit;
01623 }

ACE_INLINE ACE_CDR::Octet ACE_WChar_Codeset_Translator::major_version ACE_OutputCDR   output [protected]
 

Definition at line 1638 of file CDR_Stream.i.

References ACE_OutputCDR::major_version_.

01639 {
01640   return output.major_version_;
01641 }

ACE_INLINE ACE_CDR::Octet ACE_WChar_Codeset_Translator::major_version ACE_InputCDR   input [protected]
 

Obtain the CDR Stream's major & minor version values.

Definition at line 1626 of file CDR_Stream.i.

References ACE_InputCDR::major_version_.

01627 {
01628   return input.major_version_;
01629 }

ACE_INLINE ACE_CDR::Octet ACE_WChar_Codeset_Translator::minor_version ACE_OutputCDR   output [protected]
 

Definition at line 1644 of file CDR_Stream.i.

References ACE_OutputCDR::minor_version_.

01645 {
01646   return output.minor_version_;
01647 }

ACE_INLINE ACE_CDR::Octet ACE_WChar_Codeset_Translator::minor_version ACE_InputCDR   input [protected]
 

Definition at line 1632 of file CDR_Stream.i.

References ACE_InputCDR::minor_version_.

01633 {
01634   return input.minor_version_;
01635 }

virtual ACE_CDR::ULong ACE_WChar_Codeset_Translator::ncs   [pure virtual]
 

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_1 ACE_InputCDR   input,
ACE_CDR::Octet   x
[protected]
 

Children have access to low-level routines because they cannot use read_char or something similar (it would recurse).

Definition at line 1549 of file CDR_Stream.i.

References ACE_CDR::Octet, and ACE_InputCDR::read_1.

01551 {
01552   return input.read_1 (x);
01553 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_2 ACE_InputCDR   input,
ACE_CDR::UShort   x
[protected]
 

Definition at line 1556 of file CDR_Stream.i.

References ACE_InputCDR::read_2, and ACE_CDR::UShort.

01558 {
01559   return input.read_2 (x);
01560 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_4 ACE_InputCDR   input,
ACE_CDR::ULong   x
[protected]
 

Definition at line 1563 of file CDR_Stream.i.

References ACE_InputCDR::read_4, and ACE_CDR::ULong.

01565 {
01566   return input.read_4 (x);
01567 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_array ACE_InputCDR   input,
void *    x,
size_t    size,
size_t    align,
ACE_CDR::ULong    length
[protected]
 

Efficiently read <length> elements of size <size> each from into <x>; the data must be aligned to <align>.

Definition at line 1591 of file CDR_Stream.i.

References ACE_InputCDR::read_array, and ACE_CDR::ULong.

01596 {
01597   return in.read_array (x, size, align, length);
01598 }

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wchar ACE_InputCDR  ,
ACE_CDR::WChar  
[pure virtual]
 

Referenced by ACE_InputCDR::read_wchar.

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wchar_array ACE_InputCDR  ,
ACE_CDR::WChar  ,
ACE_CDR::ULong   
[pure virtual]
 

Referenced by ACE_InputCDR::read_wchar_array.

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wstring ACE_InputCDR  ,
ACE_CDR::WChar *&   
[pure virtual]
 

Referenced by ACE_InputCDR::read_wstring.

virtual ACE_CDR::ULong ACE_WChar_Codeset_Translator::tcs   [pure virtual]
 

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_1 ACE_OutputCDR   output,
const ACE_CDR::Octet   x
[protected]
 

Definition at line 1570 of file CDR_Stream.i.

References ACE_CDR::Octet, and ACE_OutputCDR::write_1.

01572 {
01573   return output.write_1 (x);
01574 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_2 ACE_OutputCDR   output,
const ACE_CDR::UShort   x
[protected]
 

Definition at line 1577 of file CDR_Stream.i.

References ACE_CDR::UShort, and ACE_OutputCDR::write_2.

01579 {
01580   return output.write_2 (x);
01581 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_4 ACE_OutputCDR   output,
const ACE_CDR::ULong   x
[protected]
 

Definition at line 1584 of file CDR_Stream.i.

References ACE_CDR::ULong, and ACE_OutputCDR::write_4.

01586 {
01587   return output.write_4 (x);
01588 }

ACE_INLINE ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_array ACE_OutputCDR   output,
const void *    x,
size_t    size,
size_t    align,
ACE_CDR::ULong    length
[protected]
 

Efficiently write <length> elements of size <size> from <x> into <output>. Before inserting the elements enough padding is added to ensure that the elements will be aligned to <align> in the stream.

Definition at line 1601 of file CDR_Stream.i.

References ACE_CDR::ULong, and ACE_OutputCDR::write_array.

01606 {
01607   return out.write_array(x, size, align, length);
01608 }

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wchar ACE_OutputCDR  ,
ACE_CDR::WChar   
[pure virtual]
 

Referenced by ACE_OutputCDR::write_wchar.

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wchar_array ACE_OutputCDR  ,
const ACE_CDR::WChar  ,
ACE_CDR::ULong   
[pure virtual]
 

Referenced by ACE_OutputCDR::write_wchar_array.

virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wstring ACE_OutputCDR  ,
ACE_CDR::ULong   ,
const ACE_CDR::WChar  
[pure virtual]
 

Referenced by ACE_OutputCDR::write_wstring.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:59:07 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002