summaryrefslogtreecommitdiff
path: root/TAO/tao/WrongTransactionC.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-02 02:36:03 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-03-02 02:36:03 +0000
commit0cb1c9adbb7c36c213244b76e9535d00314bc1ab (patch)
tree2f942ebae4a8ab40917d50ecdc9b914e37ce5fc8 /TAO/tao/WrongTransactionC.cpp
parent947ca5d4525b650889d3677ce82bf91acbb404ef (diff)
downloadATCD-0cb1c9adbb7c36c213244b76e9535d00314bc1ab.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.cpp35
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 */