diff options
Diffstat (limited to 'TAO/tao/LongLongSeqC.cpp')
-rw-r--r-- | TAO/tao/LongLongSeqC.cpp | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/TAO/tao/LongLongSeqC.cpp b/TAO/tao/LongLongSeqC.cpp index 0d0d0edc761..c36301886b4 100644 --- a/TAO/tao/LongLongSeqC.cpp +++ b/TAO/tao/LongLongSeqC.cpp @@ -47,7 +47,7 @@ namespace TAO } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_CORBA_LONGLONGSEQ_CS_) @@ -59,7 +59,7 @@ CORBA::LongLongSeq::LongLongSeq (void) CORBA::LongLongSeq::LongLongSeq ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::LongLong > (max) @@ -71,7 +71,7 @@ CORBA::LongLongSeq::LongLongSeq ( CORBA::LongLong * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::LongLong > (max, length, buffer, release) @@ -80,7 +80,7 @@ CORBA::LongLongSeq::LongLongSeq ( CORBA::LongLongSeq::LongLongSeq ( const LongLongSeq &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< CORBA::LongLong > (seq) @@ -111,15 +111,7 @@ CORBA::Boolean operator<< ( const CORBA::LongLongSeq &_tao_sequence ) { - const CORBA::ULong _tao_seq_len = _tao_sequence.length (); - - if (strm << _tao_seq_len) - { - // Encode all elements. - return strm.write_longlong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -127,33 +119,7 @@ CORBA::Boolean operator>> ( CORBA::LongLongSeq &_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_longlong_array (_tao_sequence.get_buffer (), _tao_sequence.length ()); - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_CORBA_LongLongSeq_CPP_ */ |