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

TAO_Marshal_WString Class Reference

TAO_Marshal_WString. More...

#include <Marshal.h>

Inheritance diagram for TAO_Marshal_WString:

Inheritance graph
[legend]
Collaboration diagram for TAO_Marshal_WString:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Marshal_WString (void)
virtual CORBA::TypeCode::traverse_status skip (CORBA::TypeCode_ptr tc, TAO_InputCDR *context ACE_ENV_ARG_DECL)
 skip operation. More...

virtual CORBA::TypeCode::traverse_status append (CORBA::TypeCode_ptr tc, TAO_InputCDR *src, TAO_OutputCDR *dest ACE_ENV_ARG_DECL)
 append operation. More...


Detailed Description

TAO_Marshal_WString.

marshal a wide string

Definition at line 405 of file Marshal.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_Marshal_WString::TAO_Marshal_WString void   
 

Definition at line 69 of file Marshal.i.

00070 {
00071 }


Member Function Documentation

CORBA::TypeCode::traverse_status TAO_Marshal_WString::append CORBA::TypeCode_ptr    tc,
TAO_InputCDR   src,
TAO_OutputCDR *dest    ACE_ENV_ARG_DECL
[virtual]
 

append operation.

Implements TAO_Marshal_Object.

Definition at line 1138 of file append.cpp.

References ACE_DEBUG, ACE_ENV_ARG_DECL, ACE_TEXT, ACE_THROW_RETURN, LM_DEBUG, and TAO_DEFAULT_MINOR_CODE.

Referenced by TAO_Marshal_Object::perform_append.

01142 {
01143   CORBA::Boolean continue_append = 1;
01144 
01145   // On decode, omit the check against specified wstring bounds, and
01146   // cope with illegal "zero length" strings (all lengths on the wire
01147   // must include a NUL).
01148   //
01149   // This is on the principle of being gracious in what we accept; we
01150   // don't generate messages that fail to comply with protocol specs,
01151   // but we will accept them when it's clear how to do so.
01152 
01153   continue_append = dest->append_wstring (*src);
01154 
01155   if (continue_append == 1)
01156     return CORBA::TypeCode::TRAVERSE_CONTINUE;
01157 
01158   if (TAO_debug_level > 0)
01159     ACE_DEBUG ((LM_DEBUG,
01160                 ACE_TEXT ("TAO_Marshal_WString::append detected error\n")));
01161   ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE,
01162                                     CORBA::COMPLETED_MAYBE),
01163                     CORBA::TypeCode::TRAVERSE_STOP);
01164 }

virtual CORBA::TypeCode::traverse_status TAO_Marshal_WString::skip CORBA::TypeCode_ptr    tc,
TAO_InputCDR *context    ACE_ENV_ARG_DECL
[virtual]
 

skip operation.

Implements TAO_Marshal_Object.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:28:25 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002