diff options
Diffstat (limited to 'TAO/tao/StringSeqC.cpp')
-rw-r--r-- | TAO/tao/StringSeqC.cpp | 61 |
1 files changed, 6 insertions, 55 deletions
diff --git a/TAO/tao/StringSeqC.cpp b/TAO/tao/StringSeqC.cpp index 426787893e4..a031820d1a8 100644 --- a/TAO/tao/StringSeqC.cpp +++ b/TAO/tao/StringSeqC.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_STRINGSEQ_CS_) @@ -55,7 +55,7 @@ CORBA::StringSeq::StringSeq (void) CORBA::StringSeq::StringSeq ( CORBA::ULong max ) - : TAO_Unbounded_String_Sequence + : TAO::unbounded_string_sequence (max) {} @@ -65,14 +65,14 @@ CORBA::StringSeq::StringSeq ( char * * buffer, CORBA::Boolean release ) - : TAO_Unbounded_String_Sequence + : TAO::unbounded_string_sequence (max, length, buffer, release) {} CORBA::StringSeq::StringSeq ( const StringSeq &seq ) - : TAO_Unbounded_String_Sequence + : TAO::unbounded_string_sequence (seq) {} @@ -101,22 +101,7 @@ CORBA::Boolean operator<< ( const CORBA::StringSeq &_tao_sequence ) { - const CORBA::ULong _tao_seq_len = _tao_sequence.length (); - - if (strm << _tao_seq_len) - { - // Encode all elements. - CORBA::Boolean _tao_marshal_flag = true; - - for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) - { - _tao_marshal_flag = (strm << _tao_sequence[i].in ()); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -124,41 +109,7 @@ CORBA::Boolean operator>> ( CORBA::StringSeq &_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. - CORBA::Boolean _tao_marshal_flag = true; - - for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i) - { - _tao_marshal_flag = (strm >> _tao_sequence[i].out ()); - - } - - return _tao_marshal_flag; - - } - -return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_CORBA_StringSeq_CPP_ */ |