TAOC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // TAOC.cpp,v 1.58 2006/04/19 08:40:55 jwillemsen Exp
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:277
00030 
00031 
00032 #include "tao/TAOC.h"
00033 #include "tao/CDR.h"
00034 #include "ace/OS_NS_string.h"
00035 
00036 // TAO_IDL - Generated from
00037 // be\be_visitor_arg_traits.cpp:70
00038 
00039 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00040 
00041 // Arg traits specializations.
00042 namespace TAO
00043 {
00044 }
00045 
00046 
00047 // TAO_IDL - Generated from
00048 // be\be_visitor_structure/structure_cs.cpp:66
00049 
00050 void
00051 TAO::BufferingConstraint::_tao_any_destructor (
00052     void *_tao_void_pointer
00053   )
00054 {
00055   BufferingConstraint *_tao_tmp_pointer =
00056     static_cast<BufferingConstraint *> (_tao_void_pointer);
00057   delete _tao_tmp_pointer;
00058 }
00059 
00060 // TAO_IDL - Generated from
00061 // be\be_visitor_interface/interface_cs.cpp:60
00062 
00063 // Traits specializations for TAO::BufferingConstraintPolicy.
00064 
00065 TAO::BufferingConstraintPolicy_ptr
00066 TAO::Objref_Traits<TAO::BufferingConstraintPolicy>::duplicate (
00067     TAO::BufferingConstraintPolicy_ptr p
00068   )
00069 {
00070   return TAO::BufferingConstraintPolicy::_duplicate (p);
00071 }
00072 
00073 void
00074 TAO::Objref_Traits<TAO::BufferingConstraintPolicy>::release (
00075     TAO::BufferingConstraintPolicy_ptr p
00076   )
00077 {
00078   ::CORBA::release (p);
00079 }
00080 
00081 TAO::BufferingConstraintPolicy_ptr
00082 TAO::Objref_Traits<TAO::BufferingConstraintPolicy>::nil (void)
00083 {
00084   return TAO::BufferingConstraintPolicy::_nil ();
00085 }
00086 
00087 CORBA::Boolean
00088 TAO::Objref_Traits<TAO::BufferingConstraintPolicy>::marshal (
00089     const TAO::BufferingConstraintPolicy_ptr p,
00090     TAO_OutputCDR & cdr
00091   )
00092 {
00093   return CORBA::Object::marshal (p, cdr);
00094 }
00095 
00096 TAO::BufferingConstraintPolicy::BufferingConstraintPolicy (void)
00097 {}
00098 
00099 TAO::BufferingConstraintPolicy::~BufferingConstraintPolicy (void)
00100 {}
00101 
00102 TAO::BufferingConstraintPolicy_ptr
00103 TAO::BufferingConstraintPolicy::_narrow (
00104     CORBA::Object_ptr _tao_objref
00105     ACE_ENV_ARG_DECL_NOT_USED
00106   )
00107 {
00108   return BufferingConstraintPolicy::_duplicate (
00109       dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref)
00110     );
00111 }
00112 
00113 TAO::BufferingConstraintPolicy_ptr
00114 TAO::BufferingConstraintPolicy::_unchecked_narrow (
00115     CORBA::Object_ptr _tao_objref
00116     ACE_ENV_ARG_DECL_NOT_USED
00117   )
00118 {
00119   return BufferingConstraintPolicy::_duplicate (
00120       dynamic_cast<BufferingConstraintPolicy_ptr> (_tao_objref)
00121     );
00122 }
00123 
00124 TAO::BufferingConstraintPolicy_ptr
00125 TAO::BufferingConstraintPolicy::_duplicate (BufferingConstraintPolicy_ptr obj)
00126 {
00127   if (! ::CORBA::is_nil (obj))
00128     {
00129       obj->_add_ref ();
00130     }
00131 
00132   return obj;
00133 }
00134 
00135 void
00136 TAO::BufferingConstraintPolicy::_tao_release (BufferingConstraintPolicy_ptr obj)
00137 {
00138   ::CORBA::release (obj);
00139 }
00140 
00141 CORBA::Boolean
00142 TAO::BufferingConstraintPolicy::_is_a (
00143     const char *value
00144     ACE_ENV_ARG_DECL_NOT_USED
00145   )
00146 {
00147   if (
00148       !ACE_OS::strcmp (
00149           value,
00150           "IDL:omg.org/CORBA/Policy:1.0"
00151         ) ||
00152       !ACE_OS::strcmp (
00153           value,
00154           "IDL:tao/TAO/BufferingConstraintPolicy:1.0"
00155         ) ||
00156       !ACE_OS::strcmp (
00157           value,
00158           "IDL:omg.org/CORBA/LocalObject:1.0"
00159         ) ||
00160       !ACE_OS::strcmp (
00161           value,
00162           "IDL:omg.org/CORBA/Object:1.0"
00163         )
00164     )
00165     {
00166       return true; // success using local knowledge
00167     }
00168   else
00169     {
00170       return false;
00171     }
00172 }
00173 
00174 const char* TAO::BufferingConstraintPolicy::_interface_repository_id (void) const
00175 {
00176   return "IDL:tao/TAO/BufferingConstraintPolicy:1.0";
00177 }
00178 
00179 CORBA::Boolean
00180 TAO::BufferingConstraintPolicy::marshal (TAO_OutputCDR &)
00181 {
00182   return false;
00183 }
00184 
00185 // TAO_IDL - Generated from
00186 // be\be_visitor_structure/cdr_op_cs.cpp:61
00187 
00188 CORBA::Boolean operator<< (
00189     TAO_OutputCDR &strm,
00190     const TAO::BufferingConstraint &_tao_aggregate
00191   )
00192 {
00193   return
00194     (strm << _tao_aggregate.mode) &&
00195     (strm << _tao_aggregate.timeout) &&
00196     (strm << _tao_aggregate.message_count) &&
00197     (strm << _tao_aggregate.message_bytes);
00198 }
00199 
00200 CORBA::Boolean operator>> (
00201     TAO_InputCDR &strm,
00202     TAO::BufferingConstraint &_tao_aggregate
00203   )
00204 {
00205   return
00206     (strm >> _tao_aggregate.mode) &&
00207     (strm >> _tao_aggregate.timeout) &&
00208     (strm >> _tao_aggregate.message_count) &&
00209     (strm >> _tao_aggregate.message_bytes);
00210 }
00211 
00212 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 11:54:24 2006 for TAO by doxygen 1.3.6