|
| TAO_OutputCDR (size_t size=0, int byte_order=ACE_CDR_BYTE_ORDER, ACE_Allocator *buffer_allocator=0, ACE_Allocator *data_block_allocator=0, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=0, ACE_CDR::Octet major_version=TAO_DEF_GIOP_MAJOR, ACE_CDR::Octet minor_version=TAO_DEF_GIOP_MINOR) |
|
| TAO_OutputCDR (char *data, size_t size, int byte_order=ACE_CDR_BYTE_ORDER, ACE_Allocator *buffer_allocator=0, ACE_Allocator *data_block_allocator=0, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=0, ACE_CDR::Octet major_version=TAO_DEF_GIOP_MAJOR, ACE_CDR::Octet minor_version=TAO_DEF_GIOP_MINOR) |
|
| TAO_OutputCDR (char *data, size_t size, int byte_order, ACE_Allocator *buffer_allocator, ACE_Allocator *data_block_allocator, ACE_Allocator *message_block_allocator, size_t memcpy_tradeoff, TAO_GIOP_Fragmentation_Strategy *fs, ACE_CDR::Octet major_version, ACE_CDR::Octet minor_version) |
|
| TAO_OutputCDR (ACE_Message_Block *data, int byte_order=ACE_CDR_BYTE_ORDER, size_t memcpy_tradeoff=0, ACE_CDR::Octet major_version=TAO_DEF_GIOP_MAJOR, ACE_CDR::Octet minor_version=TAO_DEF_GIOP_MINOR) |
|
| TAO_OutputCDR (ACE_Data_Block *data, int byte_order=ACE_CDR_BYTE_ORDER, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=0, TAO_GIOP_Fragmentation_Strategy *fs=0, ACE_CDR::Octet major_version=TAO_DEF_GIOP_MAJOR, ACE_CDR::Octet minor_version=TAO_DEF_GIOP_MINOR) |
|
| ~TAO_OutputCDR (void) |
| Destructor. More...
|
|
void | get_version (TAO_GIOP_Message_Version &giop_version) |
|
Repo_Id_Map_Handle & | get_repo_id_map () |
|
Value_Map_Handle & | get_value_map () |
|
void | set_repo_id_map (Repo_Id_Map_Handle &map) |
|
void | set_value_map (Value_Map_Handle &map) |
|
void | reset_vt_indirect_maps () |
|
int | offset (char *pos) |
| Calculate the offset between pos and current wr_ptr. More...
|
|
|
These methods are only used when fragmenting outgoing GIOP requests and replies.
|
bool | fragment_stream (ACE_CDR::ULong pending_alignment, ACE_CDR::ULong pending_length) |
| Fragment this output CDR stream if necessary. More...
|
|
bool | more_fragments (void) const |
| Are there more data fragments to come? More...
|
|
void | more_fragments (bool more) |
| Specify whether there are more data fragments to come. More...
|
|
void | message_attributes (CORBA::ULong request_id, TAO_Stub *stub, TAO_Message_Semantics message_semantics, ACE_Time_Value *timeout) |
| Set fragmented message attributes. More...
|
|
CORBA::ULong | request_id (void) const |
| Fragmented message request ID. More...
|
|
TAO_Stub * | stub (void) const |
| Stub object associated with the request. More...
|
|
TAO_Message_Semantics | message_semantics (void) const |
| Message semantics (twoway, oneway, reply) More...
|
|
ACE_Time_Value * | timeout (void) const |
| Maximum time to wait for outgoing message to be sent. More...
|
|
| ACE_OutputCDR (size_t size=0, int byte_order=ACE_CDR::BYTE_ORDER_NATIVE, ACE_Allocator *buffer_allocator=0, ACE_Allocator *data_block_allocator=0, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=ACE_DEFAULT_CDR_MEMCPY_TRADEOFF, ACE_CDR::Octet major_version=ACE_CDR_GIOP_MAJOR_VERSION, ACE_CDR::Octet minor_version=ACE_CDR_GIOP_MINOR_VERSION) |
|
| ACE_OutputCDR (char *data, size_t size, int byte_order=ACE_CDR::BYTE_ORDER_NATIVE, ACE_Allocator *buffer_allocator=0, ACE_Allocator *data_block_allocator=0, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=ACE_DEFAULT_CDR_MEMCPY_TRADEOFF, ACE_CDR::Octet giop_major_version=ACE_CDR_GIOP_MAJOR_VERSION, ACE_CDR::Octet giop_minor_version=ACE_CDR_GIOP_MINOR_VERSION) |
|
| ACE_OutputCDR (ACE_Data_Block *data_block, int byte_order=ACE_CDR::BYTE_ORDER_NATIVE, ACE_Allocator *message_block_allocator=0, size_t memcpy_tradeoff=ACE_DEFAULT_CDR_MEMCPY_TRADEOFF, ACE_CDR::Octet giop_major_version=ACE_CDR_GIOP_MAJOR_VERSION, ACE_CDR::Octet giop_minor_version=ACE_CDR_GIOP_MINOR_VERSION) |
|
| ACE_OutputCDR (ACE_Message_Block *data, int byte_order=ACE_CDR::BYTE_ORDER_NATIVE, size_t memcpy_tradeoff=ACE_DEFAULT_CDR_MEMCPY_TRADEOFF, ACE_CDR::Octet giop_major_version=ACE_CDR_GIOP_MAJOR_VERSION, ACE_CDR::Octet giop_minor_version=ACE_CDR_GIOP_MINOR_VERSION) |
|
| ~ACE_OutputCDR (void) |
|
bool | good_bit (void) const |
|
void | reset (void) |
|
size_t | total_length (void) const |
|
const ACE_Message_Block * | begin (void) const |
|
const ACE_Message_Block * | end (void) const |
|
const ACE_Message_Block * | current (void) const |
|
int | consolidate (void) |
|
const char * | buffer (void) const |
|
size_t | length (void) const |
|
int | align_write_ptr (size_t alignment) |
|
ACE_Char_Codeset_Translator * | char_translator (void) const |
|
ACE_WChar_Codeset_Translator * | wchar_translator (void) const |
|
void | char_translator (ACE_Char_Codeset_Translator *) |
|
void | wchar_translator (ACE_WChar_Codeset_Translator *) |
|
size_t | current_alignment (void) const |
|
void | current_alignment (size_t current_alignment) |
|
int | adjust (size_t size, char *&buf) |
|
int | adjust (size_t size, size_t align, char *&buf) |
|
bool | do_byte_swap (void) const |
|
int | byte_order (void) const |
|
void | reset_byte_order (int byte_order) |
|
void | set_version (ACE_CDR::Octet major, ACE_CDR::Octet minor) |
|
void | get_version (ACE_CDR::Octet &major, ACE_CDR::Octet &minor) |
|
ACE_CDR::Boolean | write_boolean (ACE_CDR::Boolean x) |
|
ACE_CDR::Boolean | write_char (ACE_CDR::Char x) |
|
ACE_CDR::Boolean | write_wchar (ACE_CDR::WChar x) |
|
ACE_CDR::Boolean | write_octet (ACE_CDR::Octet x) |
|
ACE_CDR::Boolean | write_short (ACE_CDR::Short x) |
|
ACE_CDR::Boolean | write_ushort (ACE_CDR::UShort x) |
|
ACE_CDR::Boolean | write_long (ACE_CDR::Long x) |
|
ACE_CDR::Boolean | write_ulong (ACE_CDR::ULong x) |
|
ACE_CDR::Boolean | write_longlong (const ACE_CDR::LongLong &x) |
|
ACE_CDR::Boolean | write_ulonglong (const ACE_CDR::ULongLong &x) |
|
ACE_CDR::Boolean | write_float (ACE_CDR::Float x) |
|
ACE_CDR::Boolean | write_double (const ACE_CDR::Double &x) |
|
ACE_CDR::Boolean | write_longdouble (const ACE_CDR::LongDouble &x) |
|
ACE_CDR::Boolean | write_fixed (const ACE_CDR::Fixed &x) |
|
ACE_CDR::Boolean | write_string (const ACE_CDR::Char *x) |
|
ACE_CDR::Boolean | write_string (ACE_CDR::ULong len, const ACE_CDR::Char *x) |
|
ACE_CDR::Boolean | write_string (const ACE_CString &x) |
|
ACE_CDR::Boolean | write_wstring (const ACE_CDR::WChar *x) |
|
ACE_CDR::Boolean | write_wstring (ACE_CDR::ULong length, const ACE_CDR::WChar *x) |
|
ACE_CDR::Boolean | write_boolean_array (const ACE_CDR::Boolean *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_char_array (const ACE_CDR::Char *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_wchar_array (const ACE_CDR::WChar *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_octet_array (const ACE_CDR::Octet *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_short_array (const ACE_CDR::Short *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ushort_array (const ACE_CDR::UShort *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_long_array (const ACE_CDR::Long *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ulong_array (const ACE_CDR::ULong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_longlong_array (const ACE_CDR::LongLong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ulonglong_array (const ACE_CDR::ULongLong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_float_array (const ACE_CDR::Float *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_double_array (const ACE_CDR::Double *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_longdouble_array (const ACE_CDR::LongDouble *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_octet_array_mb (const ACE_Message_Block *mb) |
|
char * | write_long_placeholder (void) |
|
char * | write_short_placeholder (void) |
|
char * | write_boolean_placeholder (void) |
|
char * | write_char_placeholder (void) |
|
char * | write_longlong_placeholder (void) |
|
char * | write_octet_placeholder (void) |
|
char * | write_float_placeholder (void) |
|
char * | write_double_placeholder (void) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Long x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::ULong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Short x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::UShort x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Boolean x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Char x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::LongLong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::ULongLong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Octet x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Float x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Double x, char *loc) |
|
ACE_CDR::Boolean | append_boolean (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_char (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_wchar (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_octet (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_short (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ushort (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_long (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ulong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_longlong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ulonglong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_float (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_double (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_longdouble (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_fixed (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_wstring (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_string (ACE_InputCDR &) |
|
ACE_CDR::Boolean | write_boolean (ACE_CDR::Boolean x) |
|
ACE_CDR::Boolean | write_char (ACE_CDR::Char x) |
|
ACE_CDR::Boolean | write_wchar (ACE_CDR::WChar x) |
|
ACE_CDR::Boolean | write_octet (ACE_CDR::Octet x) |
|
ACE_CDR::Boolean | write_short (ACE_CDR::Short x) |
|
ACE_CDR::Boolean | write_ushort (ACE_CDR::UShort x) |
|
ACE_CDR::Boolean | write_long (ACE_CDR::Long x) |
|
ACE_CDR::Boolean | write_ulong (ACE_CDR::ULong x) |
|
ACE_CDR::Boolean | write_longlong (const ACE_CDR::LongLong &x) |
|
ACE_CDR::Boolean | write_ulonglong (const ACE_CDR::ULongLong &x) |
|
ACE_CDR::Boolean | write_float (ACE_CDR::Float x) |
|
ACE_CDR::Boolean | write_double (const ACE_CDR::Double &x) |
|
ACE_CDR::Boolean | write_longdouble (const ACE_CDR::LongDouble &x) |
|
ACE_CDR::Boolean | write_fixed (const ACE_CDR::Fixed &x) |
|
ACE_CDR::Boolean | write_string (const ACE_CDR::Char *x) |
|
ACE_CDR::Boolean | write_string (ACE_CDR::ULong len, const ACE_CDR::Char *x) |
|
ACE_CDR::Boolean | write_string (const ACE_CString &x) |
|
ACE_CDR::Boolean | write_wstring (const ACE_CDR::WChar *x) |
|
ACE_CDR::Boolean | write_wstring (ACE_CDR::ULong length, const ACE_CDR::WChar *x) |
|
ACE_CDR::Boolean | write_boolean_array (const ACE_CDR::Boolean *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_char_array (const ACE_CDR::Char *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_wchar_array (const ACE_CDR::WChar *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_octet_array (const ACE_CDR::Octet *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_short_array (const ACE_CDR::Short *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ushort_array (const ACE_CDR::UShort *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_long_array (const ACE_CDR::Long *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ulong_array (const ACE_CDR::ULong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_longlong_array (const ACE_CDR::LongLong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_ulonglong_array (const ACE_CDR::ULongLong *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_float_array (const ACE_CDR::Float *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_double_array (const ACE_CDR::Double *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_longdouble_array (const ACE_CDR::LongDouble *x, ACE_CDR::ULong length) |
|
ACE_CDR::Boolean | write_octet_array_mb (const ACE_Message_Block *mb) |
|
char * | write_long_placeholder (void) |
|
char * | write_short_placeholder (void) |
|
char * | write_boolean_placeholder (void) |
|
char * | write_char_placeholder (void) |
|
char * | write_longlong_placeholder (void) |
|
char * | write_octet_placeholder (void) |
|
char * | write_float_placeholder (void) |
|
char * | write_double_placeholder (void) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Long x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::ULong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Short x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::UShort x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Boolean x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Char x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::LongLong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::ULongLong x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Octet x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Float x, char *loc) |
|
ACE_CDR::Boolean | replace (ACE_CDR::Double x, char *loc) |
|
ACE_CDR::Boolean | append_boolean (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_char (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_wchar (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_octet (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_short (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ushort (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_long (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ulong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_longlong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_ulonglong (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_float (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_double (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_longdouble (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_fixed (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_wstring (ACE_InputCDR &) |
|
ACE_CDR::Boolean | append_string (ACE_InputCDR &) |
|
A CDR stream for writing, i.e. for marshalling.
This class is based on the the CORBA spec for Java (98-02-29), java class omg.org.CORBA.portable.OutputStream. It diverts in a few ways:
- Operations taking arrays don't have offsets, because in C++ it is easier to describe an array starting from x+offset.
- Operations return an error status, because exceptions are not widely available in C++ (yet). A particularly useful static member function for this buffer is an interpretive encoding routine, usable as a typecode interpreter callback. Ditto for decoding. These are used to support all OMG-IDL datatypes, even those not supported directly by put/get primitives.