diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-04-15 11:47:20 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-04-15 11:47:20 +0000 |
commit | 04d80b8d6945fdf4968f731b6bf769ad2995d957 (patch) | |
tree | 5cd7382020649b00e034d0425ac3fa9a83c4ac76 /TAO/tao/BooleanSeqC.cpp | |
parent | 1df7ef0cc0107753b53c68f12f00aca9085e13e8 (diff) | |
download | ATCD-04d80b8d6945fdf4968f731b6bf769ad2995d957.tar.gz |
ChangeLogTag: Thu Apr 15 11:41:32 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/BooleanSeqC.cpp')
-rw-r--r-- | TAO/tao/BooleanSeqC.cpp | 68 |
1 files changed, 13 insertions, 55 deletions
diff --git a/TAO/tao/BooleanSeqC.cpp b/TAO/tao/BooleanSeqC.cpp index c622dbeb513..c75130113a9 100644 --- a/TAO/tao/BooleanSeqC.cpp +++ b/TAO/tao/BooleanSeqC.cpp @@ -1,4 +1,4 @@ - // -*- C++ -*- +// -*- C++ -*- // // $Id$ @@ -30,6 +30,7 @@ #include "BooleanSeqC.h" +#include "tao/CDR.h" #include "tao/Typecode.h" #if defined (__BORLANDC__) @@ -49,7 +50,7 @@ namespace TAO } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_CORBA_BOOLEANSEQ_CS_) @@ -103,49 +104,6 @@ void CORBA::BooleanSeq::_tao_any_destructor ( #endif /* end #if !defined */ // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:284 - -static const CORBA::Long _oc_CORBA_BooleanSeq[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 33, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f426f), - ACE_NTOHL (0x6f6c6561), - ACE_NTOHL (0x6e536571), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/BooleanSeq:1.0 - 11, - ACE_NTOHL (0x426f6f6c), - ACE_NTOHL (0x65616e53), - ACE_NTOHL (0x65710000), // name = BooleanSeq - CORBA::tk_sequence, // typecode kind - 12, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_boolean, - - 0U, - -}; - -static CORBA::TypeCode _tc_TAO_tc_CORBA_BooleanSeq ( - CORBA::tk_alias, - sizeof (_oc_CORBA_BooleanSeq), - (char *) &_oc_CORBA_BooleanSeq, - 0, - sizeof (CORBA::BooleanSeq) - ); - -namespace CORBA -{ - ::CORBA::TypeCode_ptr _tc_BooleanSeq = - &_tc_TAO_tc_CORBA_BooleanSeq; -} - -// TAO_IDL - Generated from // be\be_visitor_sequence/cdr_op_cs.cpp:96 #if !defined _TAO_CDR_OP_CORBA_BooleanSeq_CPP_ @@ -157,13 +115,13 @@ CORBA::Boolean operator<< ( ) { CORBA::ULong _tao_seq_len = _tao_sequence.length (); - + if (strm << _tao_seq_len) { // Encode all elements. return strm.write_boolean_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); } - + return 0; } @@ -173,7 +131,7 @@ CORBA::Boolean operator>> ( ) { CORBA::ULong _tao_seq_len; - + if (strm >> _tao_seq_len) { // Add a check to the length of the sequence @@ -183,28 +141,28 @@ CORBA::Boolean operator>> ( { return 0; } - + // Set the length of the sequence. _tao_sequence.length (_tao_seq_len); - + // If length is 0 we return true. - if (0 >= _tao_seq_len) + if (0 >= _tao_seq_len) { return 1; } - + // Retrieve all the elements. return strm.read_boolean_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - + } - + return 0; } #endif /* _TAO_CDR_OP_CORBA_BooleanSeq_CPP_ */ // TAO_IDL - Generated from -// be\be_visitor_root/root.cpp:1633 +// be\be_visitor_root/root.cpp:1628 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) |