diff options
Diffstat (limited to 'TAO/tao/BooleanSeqC.cpp')
-rw-r--r-- | TAO/tao/BooleanSeqC.cpp | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/TAO/tao/BooleanSeqC.cpp b/TAO/tao/BooleanSeqC.cpp index 1b8ef457532..1e51a578c91 100644 --- a/TAO/tao/BooleanSeqC.cpp +++ b/TAO/tao/BooleanSeqC.cpp @@ -43,7 +43,7 @@ namespace TAO } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_CORBA_BOOLEANSEQ_CS_) @@ -55,7 +55,7 @@ CORBA::BooleanSeq::BooleanSeq (void) CORBA::BooleanSeq::BooleanSeq ( ::CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Boolean > (max) @@ -67,7 +67,7 @@ CORBA::BooleanSeq::BooleanSeq ( ::CORBA::Boolean * buffer, ::CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Boolean > (max, length, buffer, release) @@ -76,7 +76,7 @@ CORBA::BooleanSeq::BooleanSeq ( CORBA::BooleanSeq::BooleanSeq ( const BooleanSeq &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Boolean > (seq) @@ -107,15 +107,7 @@ void CORBA::BooleanSeq::_tao_any_destructor ( const CORBA::BooleanSeq &_tao_sequence ) { - const ::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 false; + return TAO::marshal_sequence(strm, _tao_sequence); } ::CORBA::Boolean operator>> ( @@ -123,33 +115,7 @@ void CORBA::BooleanSeq::_tao_any_destructor ( CORBA::BooleanSeq &_tao_sequence ) { - ::CORBA::ULong _tao_seq_len; - - if (strm >> _tao_seq_len) - { - // Add a check to the length of the sequence - // to make sure it does not exceed the length - // of the stream. (See bug 58.) - if (_tao_seq_len > strm.length ()) - { - return false; - } - - // Set the length of the sequence. - _tao_sequence.length (_tao_seq_len); - - // If length is 0 we return true. - if (0 >= _tao_seq_len) - { - return true; - } - - // Retrieve all the elements. - return strm.read_boolean_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_CORBA_BooleanSeq_CPP_ */ |