diff options
Diffstat (limited to 'TAO/tao/DoubleSeqC.cpp')
-rw-r--r-- | TAO/tao/DoubleSeqC.cpp | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/TAO/tao/DoubleSeqC.cpp b/TAO/tao/DoubleSeqC.cpp index 36f7fbb7cc5..3028c71acf4 100644 --- a/TAO/tao/DoubleSeqC.cpp +++ b/TAO/tao/DoubleSeqC.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_DOUBLESEQ_CS_) @@ -55,7 +55,7 @@ CORBA::DoubleSeq::DoubleSeq (void) CORBA::DoubleSeq::DoubleSeq ( ::CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Double > (max) @@ -67,7 +67,7 @@ CORBA::DoubleSeq::DoubleSeq ( ::CORBA::Double * buffer, ::CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Double > (max, length, buffer, release) @@ -76,7 +76,7 @@ CORBA::DoubleSeq::DoubleSeq ( CORBA::DoubleSeq::DoubleSeq ( const DoubleSeq &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::Double > (seq) @@ -107,15 +107,7 @@ void CORBA::DoubleSeq::_tao_any_destructor ( const CORBA::DoubleSeq &_tao_sequence ) { - const ::CORBA::ULong _tao_seq_len = _tao_sequence.length (); - - if (strm << _tao_seq_len) - { - // Encode all elements. - return strm.write_double_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::DoubleSeq::_tao_any_destructor ( CORBA::DoubleSeq &_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_double_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_CORBA_DoubleSeq_CPP_ */ |