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

CONV_FRAMEC.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 //
00003 // $Id: CONV_FRAMEC.cpp,v 1.1.1.4.2.1 2003/03/14 16:05:12 chad Exp $
00004 //
00005 // ================================================================
00006 //
00007 // = LIBRARY
00008 //   TAO
00009 //
00010 // = FILENAME
00011 //   CONV_FRAME.cpp
00012 //
00013 // = DESCRIPTION
00014 //   Generated from CONV_FRAME.pidl, that contains the OMG standarized
00015 //   CONV_FRAME module.
00016 //   The code was generated by the IDL compiler and then hand-crafted
00017 //   to reduce the includes interdependencies.
00018 //
00019 // ================================================================
00020 
00021 #include "tao/CONV_FRAMEC.h"
00022 #include "tao/Any.h"
00023 #include "tao/Typecode.h"
00024 
00025 #if !defined (__ACE_INLINE__)
00026 #include "tao/CONV_FRAMEC.i"
00027 #endif /* !defined INLINE */
00028 
00029 void
00030 CONV_FRAME::CodeSetComponent::_tao_any_destructor (void* x)
00031 {
00032   CONV_FRAME::CodeSetComponent *tmp = ACE_static_cast(CONV_FRAME::CodeSetComponent*,x);
00033   delete tmp;
00034 }
00035 
00036 void
00037 CONV_FRAME::CodeSetComponentInfo::_tao_any_destructor (void* x)
00038 {
00039   CONV_FRAME::CodeSetComponentInfo *tmp = ACE_static_cast(CONV_FRAME::CodeSetComponentInfo*,x);
00040   delete tmp;
00041 }
00042 
00043 void
00044 CONV_FRAME::CodeSetContext::_tao_any_destructor (void* x)
00045 {
00046   CONV_FRAME::CodeSetContext *tmp = ACE_static_cast(CONV_FRAME::CodeSetContext*,x);
00047   delete tmp;
00048 }
00049 
00050 static const CORBA::Long _oc_CONV_FRAME_CodeSetId[] =
00051 {
00052   TAO_ENCAP_BYTE_ORDER, // byte order
00053   37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00054   10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00055   CORBA::tk_ulong,
00056 
00057 };
00058 static CORBA::TypeCode _tc_TAO_tc_CONV_FRAME_CodeSetId (CORBA::tk_alias, sizeof (_oc_CONV_FRAME_CodeSetId), (char *) &_oc_CONV_FRAME_CodeSetId, 0, sizeof (CONV_FRAME::CodeSetId));
00059 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00060 TAO_NAMESPACE_BEGIN (CONV_FRAME)
00061 TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_CodeSetId, &_tc_TAO_tc_CONV_FRAME_CodeSetId)
00062 TAO_NAMESPACE_END
00063 static const CORBA::Long _oc_CONV_FRAME_CodeSetComponent[] =
00064 {
00065   TAO_ENCAP_BYTE_ORDER, // byte order
00066   44, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x6574436f), ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetComponent:1.0
00067   17, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657443), ACE_NTOHL (0x6f6d706f), ACE_NTOHL (0x6e656e74), ACE_NTOHL (0x0),  // name = CodeSetComponent
00068   2, // member count
00069   16, ACE_NTOHL (0x6e617469), ACE_NTOHL (0x76655f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657400),  // name = native_code_set
00070   CORBA::tk_alias, // typecode kind for typedefs
00071   68, // encapsulation length
00072     TAO_ENCAP_BYTE_ORDER, // byte order
00073     37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00074     10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00075     CORBA::tk_ulong,
00076 
00077 
00078   21, ACE_NTOHL (0x636f6e76), ACE_NTOHL (0x65727369), ACE_NTOHL (0x6f6e5f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657473), ACE_NTOHL (0x0),  // name = conversion_code_sets
00079   CORBA::tk_sequence, // typecode kind
00080   84, // encapsulation length
00081     TAO_ENCAP_BYTE_ORDER, // byte order
00082     CORBA::tk_alias, // typecode kind for typedefs
00083     68, // encapsulation length
00084       TAO_ENCAP_BYTE_ORDER, // byte order
00085       37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00086       10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00087       CORBA::tk_ulong,
00088 
00089 
00090     0,
00091 
00092 };
00093 static CORBA::TypeCode _tc_TAO_tc_CONV_FRAME_CodeSetComponent (CORBA::tk_struct, sizeof (_oc_CONV_FRAME_CodeSetComponent), (char *) &_oc_CONV_FRAME_CodeSetComponent, 0, sizeof (CONV_FRAME::CodeSetComponent));
00094 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00095 TAO_NAMESPACE_BEGIN (CONV_FRAME)
00096 TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_CodeSetComponent, &_tc_TAO_tc_CONV_FRAME_CodeSetComponent)
00097 TAO_NAMESPACE_END
00098 
00099 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00100 
00101 #if !defined (__TAO_UNBOUNDED_SEQUENCE_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CS_)
00102 #define __TAO_UNBOUNDED_SEQUENCE_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CS_
00103 
00104   void
00105   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_allocate_buffer (CORBA::ULong length)
00106   {
00107     CORBA::ULong* tmp = CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::allocbuf (length);
00108 
00109     if (this->buffer_ != 0)
00110     {
00111       CORBA::ULong *old = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
00112 
00113       for (CORBA::ULong i = 0; i < this->length_; ++i)
00114         tmp[i] = old[i];
00115 
00116       if (this->release_)
00117         CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::freebuf (old);
00118 
00119     }
00120     this->buffer_ = tmp;
00121   }
00122 
00123   void
00124   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::_deallocate_buffer (void)
00125   {
00126     if (this->buffer_ == 0 || this->release_ == 0)
00127       return;
00128 
00129     CORBA::ULong *tmp = ACE_reinterpret_cast (CORBA::ULong *,this->buffer_);
00130 
00131     CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::freebuf (tmp);
00132     this->buffer_ = 0;
00133   }
00134 
00135   CONV_FRAME::CodeSetComponent::_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId::~_TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId (void) // Dtor.
00136   {
00137     this->_deallocate_buffer ();
00138   }
00139 
00140 
00141 #endif /* end #if !defined */
00142 
00143 
00144 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */
00145 
00146 #if !defined (_CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CS_)
00147 #define _CONV_FRAME_CODESETCOMPONENT__TAO_SEQ_CODESETID_CS_
00148 
00149 // *************************************************************
00150 // CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId
00151 // *************************************************************
00152 
00153 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId::_tao_seq_CodeSetId (void)
00154 {}
00155 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId::_tao_seq_CodeSetId (CORBA::ULong max) // uses max size
00156   :
00157 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00158   _TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId
00159 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00160   TAO_Unbounded_Sequence<CORBA::ULong>
00161 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */
00162  (max)
00163 {}
00164 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId::_tao_seq_CodeSetId (CORBA::ULong max, CORBA::ULong length, CORBA::ULong *buffer, CORBA::Boolean release)
00165   :
00166 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00167   _TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId
00168 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00169   TAO_Unbounded_Sequence<CORBA::ULong>
00170 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */
00171  (max, length, buffer, release)
00172 {}
00173 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId::_tao_seq_CodeSetId (const _tao_seq_CodeSetId &seq) // copy ctor
00174   :
00175 #if !defined (TAO_USE_SEQUENCE_TEMPLATES)
00176   _TAO_Unbounded_Sequence_CONV_FRAME_CodeSetComponent__tao_seq_CodeSetId
00177 #else /* TAO_USE_SEQUENCE_TEMPLATES */
00178   TAO_Unbounded_Sequence<CORBA::ULong>
00179 #endif /* !TAO_USE_SEQUENCE_TEMPLATES */
00180  (seq)
00181 {}
00182 CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId::~_tao_seq_CodeSetId (void) // dtor
00183 {}
00184 
00185 
00186 #endif /* end #if !defined */
00187 
00188 static const CORBA::Long _oc_CONV_FRAME_CodeSetComponentInfo[] =
00189 {
00190   TAO_ENCAP_BYTE_ORDER, // byte order
00191   48, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x6574436f), ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e7449), ACE_NTOHL (0x6e666f3a), ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetComponentInfo:1.0
00192   21, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657443), ACE_NTOHL (0x6f6d706f), ACE_NTOHL (0x6e656e74), ACE_NTOHL (0x496e666f), ACE_NTOHL (0x0),  // name = CodeSetComponentInfo
00193   2, // member count
00194   12, ACE_NTOHL (0x466f7243), ACE_NTOHL (0x68617244), ACE_NTOHL (0x61746100),  // name = ForCharData
00195   CORBA::tk_struct, // typecode kind
00196   296, // encapsulation length
00197     TAO_ENCAP_BYTE_ORDER, // byte order
00198     44, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x6574436f), ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetComponent:1.0
00199     17, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657443), ACE_NTOHL (0x6f6d706f), ACE_NTOHL (0x6e656e74), ACE_NTOHL (0x0),  // name = CodeSetComponent
00200     2, // member count
00201     16, ACE_NTOHL (0x6e617469), ACE_NTOHL (0x76655f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657400),  // name = native_code_set
00202     CORBA::tk_alias, // typecode kind for typedefs
00203     68, // encapsulation length
00204       TAO_ENCAP_BYTE_ORDER, // byte order
00205       37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00206       10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00207       CORBA::tk_ulong,
00208 
00209 
00210     21, ACE_NTOHL (0x636f6e76), ACE_NTOHL (0x65727369), ACE_NTOHL (0x6f6e5f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657473), ACE_NTOHL (0x0),  // name = conversion_code_sets
00211     CORBA::tk_sequence, // typecode kind
00212     84, // encapsulation length
00213       TAO_ENCAP_BYTE_ORDER, // byte order
00214       CORBA::tk_alias, // typecode kind for typedefs
00215       68, // encapsulation length
00216         TAO_ENCAP_BYTE_ORDER, // byte order
00217         37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00218         10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00219         CORBA::tk_ulong,
00220 
00221 
00222       0,
00223 
00224 
00225   13, ACE_NTOHL (0x466f7257), ACE_NTOHL (0x63686172), ACE_NTOHL (0x44617461), ACE_NTOHL (0x0),  // name = ForWcharData
00226   CORBA::tk_struct, // typecode kind
00227   296, // encapsulation length
00228     TAO_ENCAP_BYTE_ORDER, // byte order
00229     44, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x6574436f), ACE_NTOHL (0x6d706f6e), ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetComponent:1.0
00230     17, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657443), ACE_NTOHL (0x6f6d706f), ACE_NTOHL (0x6e656e74), ACE_NTOHL (0x0),  // name = CodeSetComponent
00231     2, // member count
00232     16, ACE_NTOHL (0x6e617469), ACE_NTOHL (0x76655f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657400),  // name = native_code_set
00233     CORBA::tk_alias, // typecode kind for typedefs
00234     68, // encapsulation length
00235       TAO_ENCAP_BYTE_ORDER, // byte order
00236       37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00237       10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00238       CORBA::tk_ulong,
00239 
00240 
00241     21, ACE_NTOHL (0x636f6e76), ACE_NTOHL (0x65727369), ACE_NTOHL (0x6f6e5f63), ACE_NTOHL (0x6f64655f), ACE_NTOHL (0x73657473), ACE_NTOHL (0x0),  // name = conversion_code_sets
00242     CORBA::tk_sequence, // typecode kind
00243     84, // encapsulation length
00244       TAO_ENCAP_BYTE_ORDER, // byte order
00245       CORBA::tk_alias, // typecode kind for typedefs
00246       68, // encapsulation length
00247         TAO_ENCAP_BYTE_ORDER, // byte order
00248         37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00249         10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00250         CORBA::tk_ulong,
00251 
00252 
00253       0,
00254 
00255 
00256 };
00257 static CORBA::TypeCode _tc_TAO_tc_CONV_FRAME_CodeSetComponentInfo (CORBA::tk_struct, sizeof (_oc_CONV_FRAME_CodeSetComponentInfo), (char *) &_oc_CONV_FRAME_CodeSetComponentInfo, 0, sizeof (CONV_FRAME::CodeSetComponentInfo));
00258 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00259 TAO_NAMESPACE_BEGIN (CONV_FRAME)
00260 TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_CodeSetComponentInfo, &_tc_TAO_tc_CONV_FRAME_CodeSetComponentInfo)
00261 TAO_NAMESPACE_END
00262 static const CORBA::Long _oc_CONV_FRAME_CodeSetContext[] =
00263 {
00264   TAO_ENCAP_BYTE_ORDER, // byte order
00265   42, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x6574436f), ACE_NTOHL (0x6e746578), ACE_NTOHL (0x743a312e), ACE_NTOHL (0x30000000),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetContext:1.0
00266   15, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657443), ACE_NTOHL (0x6f6e7465), ACE_NTOHL (0x78740000),  // name = CodeSetContext
00267   2, // member count
00268   10, ACE_NTOHL (0x63686172), ACE_NTOHL (0x5f646174), ACE_NTOHL (0x61000000),  // name = char_data
00269   CORBA::tk_alias, // typecode kind for typedefs
00270   68, // encapsulation length
00271     TAO_ENCAP_BYTE_ORDER, // byte order
00272     37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00273     10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00274     CORBA::tk_ulong,
00275 
00276 
00277   11, ACE_NTOHL (0x77636861), ACE_NTOHL (0x725f6461), ACE_NTOHL (0x74610000),  // name = wchar_data
00278   CORBA::tk_alias, // typecode kind for typedefs
00279   68, // encapsulation length
00280     TAO_ENCAP_BYTE_ORDER, // byte order
00281     37, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f4e56), ACE_NTOHL (0x5f465241), ACE_NTOHL (0x4d452f43), ACE_NTOHL (0x6f646553), ACE_NTOHL (0x65744964), ACE_NTOHL (0x3a312e30), ACE_NTOHL (0x0),  // repository ID = IDL:omg.org/CONV_FRAME/CodeSetId:1.0
00282     10, ACE_NTOHL (0x436f6465), ACE_NTOHL (0x53657449), ACE_NTOHL (0x64000000),  // name = CodeSetId
00283     CORBA::tk_ulong,
00284 
00285 
00286 };
00287 static CORBA::TypeCode _tc_TAO_tc_CONV_FRAME_CodeSetContext (CORBA::tk_struct, sizeof (_oc_CONV_FRAME_CodeSetContext), (char *) &_oc_CONV_FRAME_CodeSetContext, 0, sizeof (CONV_FRAME::CodeSetContext));
00288 TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
00289 TAO_NAMESPACE_BEGIN (CONV_FRAME)
00290 TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_CodeSetContext, &_tc_TAO_tc_CONV_FRAME_CodeSetContext)
00291 TAO_NAMESPACE_END
00292 
00293 void operator<<= (CORBA::Any &_tao_any, const CONV_FRAME::CodeSetComponent &_tao_elem) // copying
00294 {
00295   TAO_OutputCDR stream;
00296   stream << _tao_elem;
00297   _tao_any._tao_replace (
00298       CONV_FRAME::_tc_CodeSetComponent,
00299       TAO_ENCAP_BYTE_ORDER,
00300       stream.begin ()
00301     );
00302 }
00303 
00304 void operator<<= (CORBA::Any &_tao_any, CONV_FRAME::CodeSetComponent *_tao_elem) // non copying
00305 {
00306   TAO_OutputCDR stream;
00307   stream << *_tao_elem;
00308   _tao_any._tao_replace (
00309       CONV_FRAME::_tc_CodeSetComponent,
00310       TAO_ENCAP_BYTE_ORDER,
00311       stream.begin (),
00312       1,
00313       _tao_elem,
00314       CONV_FRAME::CodeSetComponent::_tao_any_destructor
00315     );
00316 }
00317 
00318 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CONV_FRAME::CodeSetComponent *&_tao_elem)
00319 {
00320   ACE_TRY_NEW_ENV
00321   {
00322     CORBA::TypeCode_var type = _tao_any.type ();
00323     CORBA::Boolean result =
00324       type->equivalent (CONV_FRAME::_tc_CodeSetComponent
00325                          ACE_ENV_ARG_PARAMETER);
00326     ACE_TRY_CHECK;
00327 
00328     if (!result)
00329       {
00330         _tao_elem = 0;
00331         return 0;
00332       }
00333 
00334     if (_tao_any.any_owns_data ())
00335     {
00336       _tao_elem = (CONV_FRAME::CodeSetComponent *)_tao_any.value ();
00337       return 1;
00338     }
00339     else
00340     {
00341       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetComponent, 0);
00342       TAO_InputCDR stream (
00343           _tao_any._tao_get_cdr (),
00344           _tao_any._tao_byte_order ()
00345         );
00346       if (stream >> *_tao_elem)
00347       {
00348         ((CORBA::Any *)&_tao_any)->_tao_replace (
00349             CONV_FRAME::_tc_CodeSetComponent,
00350             1,
00351             ACE_reinterpret_cast (void *, _tao_elem),
00352             CONV_FRAME::CodeSetComponent::_tao_any_destructor
00353           );
00354         return 1;
00355       }
00356       else
00357       {
00358         delete _tao_elem;
00359         _tao_elem = 0;
00360       }
00361     }
00362   }
00363   ACE_CATCHANY
00364   {
00365     delete _tao_elem;
00366     _tao_elem = 0;
00367     return 0;
00368   }
00369   ACE_ENDTRY;
00370   return 0;
00371 }
00372 
00373 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CONV_FRAME::CodeSetComponent *&_tao_elem)
00374 {
00375   ACE_TRY_NEW_ENV
00376   {
00377     CORBA::TypeCode_var type = _tao_any.type ();
00378     CORBA::Boolean result =
00379       type->equivalent (CONV_FRAME::_tc_CodeSetComponent
00380                          ACE_ENV_ARG_PARAMETER);
00381     ACE_TRY_CHECK;
00382 
00383     if (!result)
00384       {
00385         _tao_elem = 0;
00386         return 0;
00387       }
00388 
00389     if (_tao_any.any_owns_data ())
00390     {
00391       _tao_elem = (CONV_FRAME::CodeSetComponent *)_tao_any.value ();
00392       return 1;
00393       }
00394     else
00395     {
00396       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetComponent, 0);
00397       TAO_InputCDR stream (
00398           _tao_any._tao_get_cdr (),
00399           _tao_any._tao_byte_order ()
00400         );
00401       if (stream >> *(CONV_FRAME::CodeSetComponent *)_tao_elem)
00402       {
00403         ((CORBA::Any *)&_tao_any)->_tao_replace (
00404             CONV_FRAME::_tc_CodeSetComponent,
00405             1,
00406             ACE_const_cast (CONV_FRAME::CodeSetComponent *&, _tao_elem),
00407             CONV_FRAME::CodeSetComponent::_tao_any_destructor
00408            );
00409         return 1;
00410       }
00411       else
00412       {
00413         delete ACE_const_cast (CONV_FRAME::CodeSetComponent *&, _tao_elem);
00414         _tao_elem = 0;
00415       }
00416     }
00417   }
00418   ACE_CATCHANY
00419   {
00420     delete ACE_const_cast (CONV_FRAME::CodeSetComponent *&, _tao_elem);
00421     _tao_elem = 0;
00422     return 0;
00423   }
00424   ACE_ENDTRY;
00425   return 0;
00426 }
00427 
00428 void operator<<= (CORBA::Any &_tao_any, const CONV_FRAME::CodeSetComponentInfo &_tao_elem) // copying
00429 {
00430   TAO_OutputCDR stream;
00431   stream << _tao_elem;
00432   _tao_any._tao_replace (
00433       CONV_FRAME::_tc_CodeSetComponentInfo,
00434       TAO_ENCAP_BYTE_ORDER,
00435       stream.begin ()
00436     );
00437 }
00438 
00439 void operator<<= (CORBA::Any &_tao_any, CONV_FRAME::CodeSetComponentInfo *_tao_elem) // non copying
00440 {
00441   TAO_OutputCDR stream;
00442   stream << *_tao_elem;
00443   _tao_any._tao_replace (
00444       CONV_FRAME::_tc_CodeSetComponentInfo,
00445       TAO_ENCAP_BYTE_ORDER,
00446       stream.begin (),
00447       1,
00448       _tao_elem,
00449       CONV_FRAME::CodeSetComponentInfo::_tao_any_destructor
00450     );
00451 }
00452 
00453 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CONV_FRAME::CodeSetComponentInfo *&_tao_elem)
00454 {
00455   ACE_TRY_NEW_ENV
00456   {
00457     CORBA::TypeCode_var type = _tao_any.type ();
00458     CORBA::Boolean result =
00459       type->equivalent (CONV_FRAME::_tc_CodeSetComponentInfo
00460                          ACE_ENV_ARG_PARAMETER);
00461     ACE_TRY_CHECK;
00462 
00463     if (!result)
00464       {
00465         _tao_elem = 0;
00466         return 0;
00467       }
00468 
00469     if (_tao_any.any_owns_data ())
00470     {
00471       _tao_elem = (CONV_FRAME::CodeSetComponentInfo *)_tao_any.value ();
00472       return 1;
00473     }
00474     else
00475     {
00476       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetComponentInfo, 0);
00477       TAO_InputCDR stream (
00478           _tao_any._tao_get_cdr (),
00479           _tao_any._tao_byte_order ()
00480         );
00481       if (stream >> *_tao_elem)
00482       {
00483         ((CORBA::Any *)&_tao_any)->_tao_replace (
00484             CONV_FRAME::_tc_CodeSetComponentInfo,
00485             1,
00486             ACE_reinterpret_cast (void *, _tao_elem),
00487             CONV_FRAME::CodeSetComponentInfo::_tao_any_destructor
00488           );
00489         return 1;
00490       }
00491       else
00492       {
00493         delete _tao_elem;
00494         _tao_elem = 0;
00495       }
00496     }
00497   }
00498   ACE_CATCHANY
00499   {
00500     delete _tao_elem;
00501     _tao_elem = 0;
00502     return 0;
00503   }
00504   ACE_ENDTRY;
00505   return 0;
00506 }
00507 
00508 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CONV_FRAME::CodeSetComponentInfo *&_tao_elem)
00509 {
00510   ACE_TRY_NEW_ENV
00511   {
00512     CORBA::TypeCode_var type = _tao_any.type ();
00513     CORBA::Boolean result =
00514       type->equivalent (CONV_FRAME::_tc_CodeSetComponentInfo
00515                          ACE_ENV_ARG_PARAMETER);
00516     ACE_TRY_CHECK;
00517 
00518     if (!result)
00519       {
00520         _tao_elem = 0;
00521         return 0;
00522       }
00523 
00524     if (_tao_any.any_owns_data ())
00525     {
00526       _tao_elem = (CONV_FRAME::CodeSetComponentInfo *)_tao_any.value ();
00527       return 1;
00528       }
00529     else
00530     {
00531       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetComponentInfo, 0);
00532       TAO_InputCDR stream (
00533           _tao_any._tao_get_cdr (),
00534           _tao_any._tao_byte_order ()
00535         );
00536       if (stream >> *(CONV_FRAME::CodeSetComponentInfo *)_tao_elem)
00537       {
00538         ((CORBA::Any *)&_tao_any)->_tao_replace (
00539             CONV_FRAME::_tc_CodeSetComponentInfo,
00540             1,
00541             ACE_reinterpret_cast (void *, ACE_const_cast (CONV_FRAME::CodeSetComponentInfo *&, _tao_elem)),
00542             CONV_FRAME::CodeSetComponentInfo::_tao_any_destructor
00543           );
00544         return 1;
00545       }
00546       else
00547       {
00548         delete ACE_const_cast (CONV_FRAME::CodeSetComponentInfo *&, _tao_elem);
00549         _tao_elem = 0;
00550       }
00551     }
00552   }
00553   ACE_CATCHANY
00554   {
00555     delete ACE_const_cast (CONV_FRAME::CodeSetComponentInfo *&, _tao_elem);
00556     _tao_elem = 0;
00557     return 0;
00558   }
00559   ACE_ENDTRY;
00560   return 0;
00561 }
00562 
00563 void operator<<= (CORBA::Any &_tao_any, const CONV_FRAME::CodeSetContext &_tao_elem) // copying
00564 {
00565   TAO_OutputCDR stream;
00566   stream << _tao_elem;
00567   _tao_any._tao_replace (
00568       CONV_FRAME::_tc_CodeSetContext,
00569       TAO_ENCAP_BYTE_ORDER,
00570       stream.begin ()
00571     );
00572 }
00573 
00574 void operator<<= (CORBA::Any &_tao_any, CONV_FRAME::CodeSetContext *_tao_elem) // non copying
00575 {
00576   TAO_OutputCDR stream;
00577   stream << *_tao_elem;
00578   _tao_any._tao_replace (
00579       CONV_FRAME::_tc_CodeSetContext,
00580       TAO_ENCAP_BYTE_ORDER,
00581       stream.begin (),
00582       1,
00583       _tao_elem,
00584       CONV_FRAME::CodeSetContext::_tao_any_destructor
00585     );
00586 }
00587 
00588 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CONV_FRAME::CodeSetContext *&_tao_elem)
00589 {
00590   ACE_TRY_NEW_ENV
00591   {
00592     CORBA::TypeCode_var type = _tao_any.type ();
00593     CORBA::Boolean result =
00594       type->equivalent (CONV_FRAME::_tc_CodeSetContext ACE_ENV_ARG_PARAMETER);
00595     ACE_TRY_CHECK;
00596 
00597     if (!result)
00598       {
00599         _tao_elem = 0;
00600         return 0;
00601       }
00602 
00603     if (_tao_any.any_owns_data ())
00604     {
00605       _tao_elem = (CONV_FRAME::CodeSetContext *)_tao_any.value ();
00606       return 1;
00607     }
00608     else
00609     {
00610       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetContext, 0);
00611       TAO_InputCDR stream (
00612           _tao_any._tao_get_cdr (),
00613           _tao_any._tao_byte_order ()
00614         );
00615       if (stream >> *_tao_elem)
00616       {
00617         ((CORBA::Any *)&_tao_any)->_tao_replace (
00618             CONV_FRAME::_tc_CodeSetContext,
00619             1,
00620             ACE_reinterpret_cast (void *, _tao_elem),
00621             CONV_FRAME::CodeSetContext::_tao_any_destructor
00622           );
00623         return 1;
00624       }
00625       else
00626       {
00627         delete _tao_elem;
00628         _tao_elem = 0;
00629       }
00630     }
00631   }
00632   ACE_CATCHANY
00633   {
00634     delete _tao_elem;
00635     _tao_elem = 0;
00636     return 0;
00637   }
00638   ACE_ENDTRY;
00639   return 0;
00640 }
00641 
00642 CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CONV_FRAME::CodeSetContext *&_tao_elem)
00643 {
00644   ACE_TRY_NEW_ENV
00645   {
00646     CORBA::TypeCode_var type = _tao_any.type ();
00647     CORBA::Boolean result =
00648       type->equivalent (CONV_FRAME::_tc_CodeSetContext ACE_ENV_ARG_PARAMETER);
00649     ACE_TRY_CHECK;
00650 
00651     if (!result)
00652       {
00653         _tao_elem = 0;
00654         return 0;
00655       }
00656 
00657     if (_tao_any.any_owns_data ())
00658     {
00659       _tao_elem = (CONV_FRAME::CodeSetContext *)_tao_any.value ();
00660       return 1;
00661       }
00662     else
00663     {
00664       ACE_NEW_RETURN (_tao_elem, CONV_FRAME::CodeSetContext, 0);
00665       TAO_InputCDR stream (
00666           _tao_any._tao_get_cdr (),
00667           _tao_any._tao_byte_order ()
00668         );
00669       if (stream >> *(CONV_FRAME::CodeSetContext *)_tao_elem)
00670       {
00671         ((CORBA::Any *)&_tao_any)->_tao_replace (
00672             CONV_FRAME::_tc_CodeSetContext,
00673             1,
00674             ACE_reinterpret_cast (void *, ACE_const_cast (CONV_FRAME::CodeSetContext *&, _tao_elem)),
00675             CONV_FRAME::CodeSetContext::_tao_any_destructor
00676             );
00677         return 1;
00678       }
00679       else
00680       {
00681         delete ACE_const_cast (CONV_FRAME::CodeSetContext *&, _tao_elem);
00682         _tao_elem = 0;
00683       }
00684     }
00685   }
00686   ACE_CATCHANY
00687   {
00688     delete ACE_const_cast (CONV_FRAME::CodeSetContext *&, _tao_elem);
00689     _tao_elem = 0;
00690     return 0;
00691   }
00692   ACE_ENDTRY;
00693   return 0;
00694 }
00695 
00696 CORBA::Boolean operator<< (
00697     TAO_OutputCDR &strm,
00698     const CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &_tao_sequence
00699   )
00700 {
00701   if (strm << _tao_sequence.length ())
00702   {
00703     // encode all elements
00704     return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
00705   }
00706   return 0; // error
00707 }
00708 
00709 CORBA::Boolean operator>> (
00710     TAO_InputCDR &strm,
00711     CONV_FRAME::CodeSetComponent::_tao_seq_CodeSetId &_tao_sequence
00712   )
00713 {
00714   CORBA::ULong _tao_seq_len;
00715   if (strm >> _tao_seq_len)
00716   {
00717     // set the length of the sequence
00718     _tao_sequence.length (_tao_seq_len);
00719     // retrieve all the elements
00720     return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
00721   }
00722   return 0; // error
00723 }

Generated on Mon Jun 16 13:48:07 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002