// -*- C++ -*- // // $Id$ // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** // TAO and the TAO IDL Compiler have been developed by: // Center for Distributed Object Computing // Washington University // St. Louis, MO // USA // http://www.cs.wustl.edu/~schmidt/doc-center.html // and // Distributed Object Computing Laboratory // University of California at Irvine // Irvine, CA // USA // http://doc.ece.uci.edu/ // and // Institute for Software Integrated Systems // Vanderbilt University // Nashville, TN // USA // http://www.isis.vanderbilt.edu/ // // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from // be\be_codegen.cpp:277 #include "tao/Messaging/ExceptionHolderC.h" #include "tao/CDR.h" #include "tao/Valuetype/ValueFactory.h" #include "tao/ORB_Core.h" #include "ace/OS_NS_string.h" #if !defined (__ACE_INLINE__) #include "tao/Messaging/ExceptionHolderC.inl" #endif /* !defined INLINE */ // TAO_IDL - Generated from // be\be_visitor_arg_traits.cpp:70 TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Arg traits specializations. namespace TAO { } // TAO_IDL - Generated from // be\be_visitor_valuetype/valuetype_cs.cpp:66 void TAO::Value_Traits::add_ref ( Messaging::ExceptionHolder * p ) { ::CORBA::add_ref (p); } void TAO::Value_Traits::remove_ref ( Messaging::ExceptionHolder * p ) { ::CORBA::remove_ref (p); } void TAO::Value_Traits::release ( Messaging::ExceptionHolder * p ) { ::CORBA::remove_ref (p); } Messaging::ExceptionHolder * Messaging::ExceptionHolder::_downcast ( ::CORBA::ValueBase *v) { return dynamic_cast< ::Messaging::ExceptionHolder * > (v); } const char * Messaging::ExceptionHolder::_tao_obv_repository_id (void) const { return this->_tao_obv_static_repository_id (); } void Messaging::ExceptionHolder::_tao_any_destructor (void *_tao_void_pointer) { ExceptionHolder *_tao_tmp_pointer = static_cast (_tao_void_pointer); ::CORBA::remove_ref (_tao_tmp_pointer); } Messaging::ExceptionHolder::~ExceptionHolder (void) {} ::CORBA::Boolean Messaging::ExceptionHolder::_tao_marshal_v (TAO_OutputCDR & strm) const { return this->_tao_marshal__Messaging_ExceptionHolder (strm); } ::CORBA::Boolean Messaging::ExceptionHolder::_tao_unmarshal_v (TAO_InputCDR & strm) { return this->_tao_unmarshal__Messaging_ExceptionHolder (strm); } ::CORBA::Boolean Messaging::ExceptionHolder::_tao_unmarshal ( TAO_InputCDR &strm, ExceptionHolder *&new_object ) { ::CORBA::ValueBase *base = 0; ::CORBA::ValueFactory_var factory; ::CORBA::Boolean retval = ::CORBA::ValueBase::_tao_unmarshal_pre ( strm, factory.out (), base, ExceptionHolder::_tao_obv_static_repository_id () ); if (retval == 0) { return 0; } if (factory.in () != 0) { base = factory->create_for_unmarshal (); if (base == 0) { return 0; // %! except.? } retval = base->_tao_unmarshal_v (strm); if (retval == 0) { return 0; } } // Now base must be null or point to the unmarshaled object. // Align the pointer to the right subobject. new_object = ExceptionHolder::_downcast (base); return retval; } // TAO_IDL - Generated from // be\be_visitor_valuetype/valuetype_obv_cs.cpp:58 OBV_Messaging::ExceptionHolder::ExceptionHolder (void) {} OBV_Messaging::ExceptionHolder::ExceptionHolder ( ::CORBA::Boolean _tao_init_is_system_exception, ::CORBA::Boolean _tao_init_byte_order, const ::CORBA::OctetSeq & _tao_init_marshaled_exception ) { is_system_exception (_tao_init_is_system_exception); byte_order (_tao_init_byte_order); marshaled_exception (_tao_init_marshaled_exception); } OBV_Messaging::ExceptionHolder::~ExceptionHolder (void) {} ::CORBA::Boolean OBV_Messaging::ExceptionHolder::_tao_marshal__Messaging_ExceptionHolder (TAO_OutputCDR &strm) const { return _tao_marshal_state (strm); } ::CORBA::Boolean OBV_Messaging::ExceptionHolder::_tao_unmarshal__Messaging_ExceptionHolder (TAO_InputCDR &strm) { return _tao_unmarshal_state (strm); } // TAO_IDL - Generated from // be\be_visitor_valuetype/field_cs.cpp:592 // Accessor to set the member. void OBV_Messaging::ExceptionHolder::is_system_exception (CORBA::Boolean val) { // Set the value. this->_pd_is_system_exception = val; } // Retrieve the member ::CORBA::Boolean OBV_Messaging::ExceptionHolder::is_system_exception (void) const { return this->_pd_is_system_exception; } // TAO_IDL - Generated from // be\be_visitor_valuetype/field_cs.cpp:592 // Accessor to set the member. void OBV_Messaging::ExceptionHolder::byte_order (CORBA::Boolean val) { // Set the value. this->_pd_byte_order = val; } // Retrieve the member ::CORBA::Boolean OBV_Messaging::ExceptionHolder::byte_order (void) const { return this->_pd_byte_order; } // TAO_IDL - Generated from // be\be_visitor_valuetype/field_cs.cpp:763 // Accessor to set the member. void OBV_Messaging::ExceptionHolder::marshaled_exception (const CORBA::OctetSeq &val) { this->_pd_marshaled_exception = val; } // Readonly get method. const CORBA::OctetSeq & OBV_Messaging::ExceptionHolder::marshaled_exception (void) const { return this->_pd_marshaled_exception; } // Read/write get method. CORBA::OctetSeq & OBV_Messaging::ExceptionHolder::marshaled_exception (void) { return this->_pd_marshaled_exception; } // TAO_IDL - Generated from // be\be_valuetype.cpp:487 void CORBA::add_ref (Messaging::ExceptionHolder * vt) { if (vt != 0) { vt->_add_ref (); } } void CORBA::remove_ref (Messaging::ExceptionHolder * vt) { if (vt != 0) { vt->_remove_ref (); } } // TAO_IDL - Generated from // be\be_visitor_valuetype/cdr_op_cs.cpp:73 ::CORBA::Boolean operator<< ( TAO_OutputCDR &strm, const Messaging::ExceptionHolder *_tao_valuetype ) { return ::CORBA::ValueBase::_tao_marshal ( strm, _tao_valuetype, reinterpret_cast (&Messaging::ExceptionHolder::_downcast) ); } ::CORBA::Boolean operator>> ( TAO_InputCDR &strm, Messaging::ExceptionHolder *&_tao_valuetype ) { return Messaging::ExceptionHolder::_tao_unmarshal (strm, _tao_valuetype); } // TAO_IDL - Generated from // be\be_visitor_valuetype/marshal_cs.cpp:44 ::CORBA::Boolean OBV_Messaging::ExceptionHolder::_tao_marshal_state (TAO_OutputCDR &strm) const { return ( (strm << ::ACE_OutputCDR::from_boolean (_pd_is_system_exception)) && (strm << ::ACE_OutputCDR::from_boolean (_pd_byte_order)) && (strm << _pd_marshaled_exception) ); } ::CORBA::Boolean OBV_Messaging::ExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm) { return ( (strm >> ::ACE_InputCDR::to_boolean (_pd_is_system_exception)) && (strm >> ::ACE_InputCDR::to_boolean (_pd_byte_order)) && (strm >> _pd_marshaled_exception) ); } TAO_END_VERSIONED_NAMESPACE_DECL