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

TAO_Marshal_Struct Class Reference

TAO_Marshal_Struct. More...

#include <Marshal.h>

Inheritance diagram for TAO_Marshal_Struct:

Inheritance graph
[legend]
Collaboration diagram for TAO_Marshal_Struct:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Marshal_Struct (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_Struct.

marshal a struct

Definition at line 230 of file Marshal.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_Marshal_Struct::TAO_Marshal_Struct void   
 

Definition at line 34 of file Marshal.i.

00035 {
00036 }


Member Function Documentation

CORBA::TypeCode::traverse_status TAO_Marshal_Struct::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 337 of file append.cpp.

References ACE_CHECK_RETURN, ACE_DEBUG, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_TEXT, ACE_THROW_RETURN, LM_DEBUG, TAO_Marshal_Object::perform_append, and TAO_DEFAULT_MINOR_CODE.

Referenced by TAO_Marshal_Object::perform_append.

00341 {
00342   CORBA::TypeCode::traverse_status retval =
00343     CORBA::TypeCode::TRAVERSE_CONTINUE;
00344   CORBA::TypeCode_var param;
00345 
00346   // Number of fields in the struct.
00347   int member_count = tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
00348   ACE_CHECK_RETURN (CORBA::TypeCode::TRAVERSE_STOP);
00349 
00350   for (int i = 0;
00351        i < member_count && retval == CORBA::TypeCode::TRAVERSE_CONTINUE;
00352        i++)
00353     {
00354       // get member type
00355       param = tc->member_type (i ACE_ENV_ARG_PARAMETER);
00356       ACE_CHECK_RETURN (CORBA::TypeCode::TRAVERSE_STOP);
00357 
00358       retval =
00359         TAO_Marshal_Object::perform_append (param.in (),
00360                                             src,
00361                                             dest
00362                                              ACE_ENV_ARG_PARAMETER);
00363       ACE_CHECK_RETURN (CORBA::TypeCode::TRAVERSE_STOP);
00364     }
00365 
00366   if (retval == CORBA::TypeCode::TRAVERSE_CONTINUE)
00367     return CORBA::TypeCode::TRAVERSE_CONTINUE;
00368 
00369   if (TAO_debug_level > 0)
00370     ACE_DEBUG ((LM_DEBUG,
00371                 ACE_TEXT ("TAO_Marshal_Struct::append detected error\n")));
00372 
00373   ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE,
00374                                     CORBA::COMPLETED_MAYBE),
00375                     CORBA::TypeCode::TRAVERSE_STOP);
00376 }

virtual CORBA::TypeCode::traverse_status TAO_Marshal_Struct::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:22 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002