Typecode_typesC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Typecode_typesC.cpp 78602 2007-06-27 09:21:28Z parsons $
00004 
00005 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00006 // TAO and the TAO IDL Compiler have been developed by:
00007 //       Center for Distributed Object Computing
00008 //       Washington University
00009 //       St. Louis, MO
00010 //       USA
00011 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00012 // and
00013 //       Distributed Object Computing Laboratory
00014 //       University of California at Irvine
00015 //       Irvine, CA
00016 //       USA
00017 //       http://doc.ece.uci.edu/
00018 // and
00019 //       Institute for Software Integrated Systems
00020 //       Vanderbilt University
00021 //       Nashville, TN
00022 //       USA
00023 //       http://www.isis.vanderbilt.edu/
00024 //
00025 // Information about TAO is available at:
00026 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00027 
00028 // TAO_IDL - Generated from
00029 // be\be_codegen.cpp:291
00030 
00031 
00032 #include "tao/Typecode_typesC.h"
00033 #include "tao/CDR.h"
00034 
00035 #if defined (__BORLANDC__)
00036 #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
00037 #endif /* __BORLANDC__ */
00038 
00039 // TAO_IDL - Generated from
00040 // be\be_visitor_arg_traits.cpp:70
00041 
00042 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00043 
00044 // Arg traits specializations.
00045 namespace TAO
00046 {
00047 }
00048 
00049 
00050 // TAO_IDL - Generated from
00051 // be\be_visitor_enum/cdr_op_cs.cpp:51
00052 
00053 CORBA::Boolean operator<< (TAO_OutputCDR & strm, CORBA::TCKind _tao_enumerator)
00054 {
00055   return strm << static_cast<CORBA::ULong> (_tao_enumerator);
00056 }
00057 
00058 CORBA::Boolean operator>> (TAO_InputCDR & strm, CORBA::TCKind & _tao_enumerator)
00059 {
00060   CORBA::ULong _tao_temp = 0;
00061   CORBA::Boolean const _tao_success = strm >> _tao_temp;
00062   
00063   if (_tao_success)
00064     {
00065       _tao_enumerator = static_cast<CORBA::TCKind> (_tao_temp);
00066     }
00067   
00068   return _tao_success;
00069 }
00070 
00071 std::ostream& operator<< (std::ostream &strm, const CORBA::TCKind _tao_enumerator)
00072 {
00073   switch (_tao_enumerator)
00074     {
00075       case 0: return strm << "CORBA::tk_null";
00076       case 1: return strm << "CORBA::tk_void";
00077       case 2: return strm << "CORBA::tk_short";
00078       case 3: return strm << "CORBA::tk_long";
00079       case 4: return strm << "CORBA::tk_ushort";
00080       case 5: return strm << "CORBA::tk_ulong";
00081       case 6: return strm << "CORBA::tk_float";
00082       case 7: return strm << "CORBA::tk_double";
00083       case 8: return strm << "CORBA::tk_boolean";
00084       case 9: return strm << "CORBA::tk_char";
00085       case 10: return strm << "CORBA::tk_octet";
00086       case 11: return strm << "CORBA::tk_any";
00087       case 12: return strm << "CORBA::tk_TypeCode";
00088       case 13: return strm << "CORBA::tk_Principal";
00089       case 14: return strm << "CORBA::tk_objref";
00090       case 15: return strm << "CORBA::tk_struct";
00091       case 16: return strm << "CORBA::tk_union";
00092       case 17: return strm << "CORBA::tk_enum";
00093       case 18: return strm << "CORBA::tk_string";
00094       case 19: return strm << "CORBA::tk_sequence";
00095       case 20: return strm << "CORBA::tk_array";
00096       case 21: return strm << "CORBA::tk_alias";
00097       case 22: return strm << "CORBA::tk_except";
00098       case 23: return strm << "CORBA::tk_longlong";
00099       case 24: return strm << "CORBA::tk_ulonglong";
00100       case 25: return strm << "CORBA::tk_longdouble";
00101       case 26: return strm << "CORBA::tk_wchar";
00102       case 27: return strm << "CORBA::tk_wstring";
00103       case 28: return strm << "CORBA::tk_fixed";
00104       case 29: return strm << "CORBA::tk_value";
00105       case 30: return strm << "CORBA::tk_value_box";
00106       case 31: return strm << "CORBA::tk_native";
00107       case 32: return strm << "CORBA::tk_abstract_interface";
00108       case 33: return strm << "CORBA::tk_local_interface";
00109       case 34: return strm << "CORBA::tk_component";
00110       case 35: return strm << "CORBA::tk_home";
00111       case 36: return strm << "CORBA::tk_event";
00112       default: return strm;
00113     }
00114 }
00115 
00116 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:37:53 2010 for TAO by  doxygen 1.4.7