Codeset translation routines common to both Output and Input CDR streams. More...
#include <CDR_Stream.h>
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 1187 of file CDR_Stream.h.
ACE_WChar_Codeset_Translator::~ACE_WChar_Codeset_Translator | ( | void | ) | [virtual] |
Definition at line 2007 of file CDR_Stream.cpp.
{ }
int ACE_WChar_Codeset_Translator::adjust | ( | ACE_OutputCDR & | out, | |
size_t | size, | |||
size_t | align, | |||
char *& | buf | |||
) | [inline, 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 1689 of file CDR_Stream.inl.
void ACE_WChar_Codeset_Translator::good_bit | ( | ACE_OutputCDR & | out, | |
bool | bit | |||
) | [inline, protected] |
Used by derived classes to set errors in the CDR stream.
Definition at line 1698 of file CDR_Stream.inl.
{ out.good_bit_ = bit; }
ACE_CDR::Octet ACE_WChar_Codeset_Translator::major_version | ( | ACE_InputCDR & | input | ) | [inline, protected] |
Obtain the CDR Stream's major & minor version values.
Definition at line 1704 of file CDR_Stream.inl.
{ return input.major_version_; }
ACE_CDR::Octet ACE_WChar_Codeset_Translator::major_version | ( | ACE_OutputCDR & | output | ) | [inline, protected] |
Definition at line 1716 of file CDR_Stream.inl.
{ return output.major_version_; }
ACE_CDR::Octet ACE_WChar_Codeset_Translator::minor_version | ( | ACE_InputCDR & | input | ) | [inline, protected] |
Definition at line 1710 of file CDR_Stream.inl.
{ return input.minor_version_; }
ACE_CDR::Octet ACE_WChar_Codeset_Translator::minor_version | ( | ACE_OutputCDR & | output | ) | [inline, protected] |
Definition at line 1722 of file CDR_Stream.inl.
{ return output.minor_version_; }
virtual ACE_CDR::ULong ACE_WChar_Codeset_Translator::ncs | ( | ) | [pure virtual] |
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_1 | ( | ACE_InputCDR & | input, | |
ACE_CDR::Octet * | x | |||
) | [inline, protected] |
Children have access to low-level routines because they cannot use read_char or something similar (it would recurse).
Definition at line 1627 of file CDR_Stream.inl.
{ return input.read_1 (x); }
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_2 | ( | ACE_InputCDR & | input, | |
ACE_CDR::UShort * | x | |||
) | [inline, protected] |
Definition at line 1634 of file CDR_Stream.inl.
{ return input.read_2 (x); }
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_4 | ( | ACE_InputCDR & | input, | |
ACE_CDR::ULong * | x | |||
) | [inline, protected] |
Definition at line 1641 of file CDR_Stream.inl.
{ return input.read_4 (x); }
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_array | ( | ACE_InputCDR & | input, | |
void * | x, | |||
size_t | size, | |||
size_t | align, | |||
ACE_CDR::ULong | length | |||
) | [inline, protected] |
Efficiently read length elements of size size each from <input> into <x>; the data must be aligned to <align>.
Definition at line 1669 of file CDR_Stream.inl.
{ return in.read_array (x, size, align, length); }
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wchar | ( | ACE_InputCDR & | , | |
ACE_CDR::WChar & | ||||
) | [pure virtual] |
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wchar_array | ( | ACE_InputCDR & | , | |
ACE_CDR::WChar * | , | |||
ACE_CDR::ULong | ||||
) | [pure virtual] |
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::read_wstring | ( | ACE_InputCDR & | , | |
ACE_CDR::WChar *& | ||||
) | [pure virtual] |
virtual ACE_CDR::ULong ACE_WChar_Codeset_Translator::tcs | ( | ) | [pure virtual] |
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_1 | ( | ACE_OutputCDR & | output, | |
const ACE_CDR::Octet * | x | |||
) | [inline, protected] |
Definition at line 1648 of file CDR_Stream.inl.
{ return output.write_1 (x); }
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_2 | ( | ACE_OutputCDR & | output, | |
const ACE_CDR::UShort * | x | |||
) | [inline, protected] |
Definition at line 1655 of file CDR_Stream.inl.
{ return output.write_2 (x); }
ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_4 | ( | ACE_OutputCDR & | output, | |
const ACE_CDR::ULong * | x | |||
) | [inline, protected] |
Definition at line 1662 of file CDR_Stream.inl.
{ return output.write_4 (x); }
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 | |||
) | [inline, 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 1679 of file CDR_Stream.inl.
{ return out.write_array(x, size, align, length); }
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wchar | ( | ACE_OutputCDR & | , | |
ACE_CDR::WChar | ||||
) | [pure virtual] |
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wchar_array | ( | ACE_OutputCDR & | , | |
const ACE_CDR::WChar * | , | |||
ACE_CDR::ULong | ||||
) | [pure virtual] |
virtual ACE_CDR::Boolean ACE_WChar_Codeset_Translator::write_wstring | ( | ACE_OutputCDR & | , | |
ACE_CDR::ULong | , | |||
const ACE_CDR::WChar * | ||||
) | [pure virtual] |