2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 Remote_Invocation::_tao_byte_order (int byte_order)
10 this->byte_order_ = byte_order;
15 Remote_Invocation::_tao_byte_order ()
17 return this->byte_order_;
22 Remote_Invocation::marshal_data (TAO_OutputCDR &out_stream)
24 // Marshal application data
25 if (this->details_.marshal_args (out_stream) == false)
27 throw ::CORBA::MARSHAL ();
32 CDR_Byte_Order_Guard::CDR_Byte_Order_Guard (
33 TAO_OutputCDR& cdr, int byte_order)
34 : cdr_(cdr), byte_order_ (byte_order)
35 , present_byte_order_ (cdr.byte_order())
37 if (byte_order_ != present_byte_order_)
39 cdr_.reset_byte_order(byte_order_);
44 void CDR_Byte_Order_Guard::reset ()
46 if (byte_order_ != present_byte_order_)
48 cdr_.reset_byte_order(byte_order_);
49 present_byte_order_ = byte_order_;
54 CDR_Byte_Order_Guard::~CDR_Byte_Order_Guard ()
60 TAO_END_VERSIONED_NAMESPACE_DECL