diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-03-02 02:36:03 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-03-02 02:36:03 +0000 |
commit | 5153bbfbb544faae5c68a067fd46434bfb6d785d (patch) | |
tree | 2f942ebae4a8ab40917d50ecdc9b914e37ce5fc8 /TAO/tao/WrongTransactionC.cpp | |
parent | 44916d8e0f4a51ac3d5319cca153741d784feac0 (diff) | |
download | ATCD-5153bbfbb544faae5c68a067fd46434bfb6d785d.tar.gz |
ChangeLogTag:Wed Mar 1 18:01:37 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/WrongTransactionC.cpp')
-rw-r--r-- | TAO/tao/WrongTransactionC.cpp | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/TAO/tao/WrongTransactionC.cpp b/TAO/tao/WrongTransactionC.cpp index 2a62ed0aedc..bbf70ea2292 100644 --- a/TAO/tao/WrongTransactionC.cpp +++ b/TAO/tao/WrongTransactionC.cpp @@ -9,6 +9,8 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html #include "tao/WrongTransactionC.h" +#include "tao/Environment.h" +#include "tao/CDR.h" #if !defined (TAO_HAS_MINIMUM_CORBA) @@ -49,12 +51,27 @@ CORBA_WrongTransaction::_narrow (CORBA::Exception *exc) } -void CORBA_WrongTransaction::_raise () +void CORBA_WrongTransaction::_raise (void) { TAO_RAISE(*this); } -// TAO extension - the _alloc method +void CORBA_WrongTransaction::_tao_encode (TAO_OutputCDR &cdr, + CORBA::Environment &ACE_TRY_ENV) const +{ + if (cdr << *this) + return; + ACE_THROW (CORBA::MARSHAL ()); +} + +void CORBA_WrongTransaction::_tao_decode (TAO_InputCDR &cdr, + CORBA::Environment &ACE_TRY_ENV) +{ + if (cdr >> *this) + return; + ACE_THROW (CORBA::MARSHAL ()); +} + CORBA::Exception *CORBA_WrongTransaction::_alloc (void) { CORBA::Exception *retval = 0; @@ -66,4 +83,18 @@ CORBA::Exception *CORBA_WrongTransaction::_alloc (void) return retval; } +CORBA::Boolean +operator<< (TAO_OutputCDR &cdr, const CORBA_WrongTransaction &wt) +{ + if (cdr << wt._id ()) + return 1; + return 0; +} + +CORBA::Boolean +operator>> (TAO_InputCDR &, CORBA_WrongTransaction &) +{ + return 1; +} + #endif /* TAO_HAS_MINIMUM_CORBA */ |