diff options
Diffstat (limited to 'TAO/tao/IOP_IORC.cpp')
-rw-r--r-- | TAO/tao/IOP_IORC.cpp | 316 |
1 files changed, 38 insertions, 278 deletions
diff --git a/TAO/tao/IOP_IORC.cpp b/TAO/tao/IOP_IORC.cpp index 45323b2f40c..60187c0e8fc 100644 --- a/TAO/tao/IOP_IORC.cpp +++ b/TAO/tao/IOP_IORC.cpp @@ -44,10 +44,10 @@ namespace TAO } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_structure/structure_cs.cpp:66 -void +void IOP::TaggedProfile::_tao_any_destructor ( void *_tao_void_pointer ) @@ -57,7 +57,7 @@ IOP::TaggedProfile::_tao_any_destructor ( delete _tao_tmp_pointer; } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_IOP_TAGGEDPROFILESEQ_CS_) @@ -69,7 +69,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq (void) IOP::TaggedProfileSeq::TaggedProfileSeq ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedProfile > (max) @@ -81,7 +81,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq ( IOP::TaggedProfile * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedProfile > (max, length, buffer, release) @@ -90,7 +90,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq ( IOP::TaggedProfileSeq::TaggedProfileSeq ( const TaggedProfileSeq &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedProfile > (seq) @@ -110,10 +110,10 @@ void IOP::TaggedProfileSeq::_tao_any_destructor ( #endif /* end #if !defined */ -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_structure/structure_cs.cpp:66 -void +void IOP::IOR::_tao_any_destructor ( void *_tao_void_pointer ) @@ -123,10 +123,10 @@ IOP::IOR::_tao_any_destructor ( delete _tao_tmp_pointer; } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_structure/structure_cs.cpp:66 -void +void IOP::TaggedComponent::_tao_any_destructor ( void *_tao_void_pointer ) @@ -136,7 +136,7 @@ IOP::TaggedComponent::_tao_any_destructor ( delete _tao_tmp_pointer; } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_IOP_MULTIPLECOMPONENTPROFILE_CS_) @@ -148,7 +148,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile (void) IOP::MultipleComponentProfile::MultipleComponentProfile ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max) @@ -160,7 +160,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile ( IOP::TaggedComponent * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max, length, buffer, release) @@ -169,7 +169,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile ( IOP::MultipleComponentProfile::MultipleComponentProfile ( const MultipleComponentProfile &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (seq) @@ -189,7 +189,7 @@ void IOP::MultipleComponentProfile::_tao_any_destructor ( #endif /* end #if !defined */ -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_IOP_TAGGEDCOMPONENTLIST_CS_) @@ -201,7 +201,7 @@ IOP::TaggedComponentList::TaggedComponentList (void) IOP::TaggedComponentList::TaggedComponentList ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max) @@ -213,7 +213,7 @@ IOP::TaggedComponentList::TaggedComponentList ( IOP::TaggedComponent * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max, length, buffer, release) @@ -222,7 +222,7 @@ IOP::TaggedComponentList::TaggedComponentList ( IOP::TaggedComponentList::TaggedComponentList ( const TaggedComponentList &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (seq) @@ -242,7 +242,7 @@ void IOP::TaggedComponentList::_tao_any_destructor ( #endif /* end #if !defined */ -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_IOP_TAGGEDCOMPONENTSEQ_CS_) @@ -254,7 +254,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq (void) IOP::TaggedComponentSeq::TaggedComponentSeq ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max) @@ -266,7 +266,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq ( IOP::TaggedComponent * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (max, length, buffer, release) @@ -275,7 +275,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq ( IOP::TaggedComponentSeq::TaggedComponentSeq ( const TaggedComponentSeq &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< TaggedComponent > (seq) @@ -295,10 +295,10 @@ void IOP::TaggedComponentSeq::_tao_any_destructor ( #endif /* end #if !defined */ -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_structure/structure_cs.cpp:66 -void +void IOP::ServiceContext::_tao_any_destructor ( void *_tao_void_pointer ) @@ -308,7 +308,7 @@ IOP::ServiceContext::_tao_any_destructor ( delete _tao_tmp_pointer; } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_sequence/sequence_cs.cpp:65 #if !defined (_IOP_SERVICECONTEXTLIST_CS_) @@ -320,7 +320,7 @@ IOP::ServiceContextList::ServiceContextList (void) IOP::ServiceContextList::ServiceContextList ( CORBA::ULong max ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< ServiceContext > (max) @@ -332,7 +332,7 @@ IOP::ServiceContextList::ServiceContextList ( IOP::ServiceContext * buffer, CORBA::Boolean release ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< ServiceContext > (max, length, buffer, release) @@ -341,7 +341,7 @@ IOP::ServiceContextList::ServiceContextList ( IOP::ServiceContextList::ServiceContextList ( const ServiceContextList &seq ) - : TAO_Unbounded_Sequence< + : TAO::unbounded_value_sequence< ServiceContext > (seq) @@ -395,22 +395,7 @@ CORBA::Boolean operator<< ( const IOP::TaggedProfileSeq &_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]); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -418,40 +403,7 @@ CORBA::Boolean operator>> ( IOP::TaggedProfileSeq &_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]); - } - - return _tao_marshal_flag; - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_IOP_TaggedProfileSeq_CPP_ */ @@ -513,22 +465,7 @@ CORBA::Boolean operator<< ( const IOP::MultipleComponentProfile &_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]); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -536,40 +473,7 @@ CORBA::Boolean operator>> ( IOP::MultipleComponentProfile &_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]); - } - - return _tao_marshal_flag; - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_IOP_MultipleComponentProfile_CPP_ */ @@ -585,22 +489,7 @@ CORBA::Boolean operator<< ( const IOP::TaggedComponentList &_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]); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -608,40 +497,7 @@ CORBA::Boolean operator>> ( IOP::TaggedComponentList &_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]); - } - - return _tao_marshal_flag; - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_IOP_TaggedComponentList_CPP_ */ @@ -657,22 +513,7 @@ CORBA::Boolean operator<< ( const IOP::TaggedComponentSeq &_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]); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -680,40 +521,7 @@ CORBA::Boolean operator>> ( IOP::TaggedComponentSeq &_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]); - } - - return _tao_marshal_flag; - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_IOP_TaggedComponentSeq_CPP_ */ @@ -752,22 +560,7 @@ CORBA::Boolean operator<< ( const IOP::ServiceContextList &_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]); - } - - return _tao_marshal_flag; - } - - return false; + return TAO::marshal_sequence(strm, _tao_sequence); } CORBA::Boolean operator>> ( @@ -775,40 +568,7 @@ CORBA::Boolean operator>> ( IOP::ServiceContextList &_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]); - } - - return _tao_marshal_flag; - - } - - return false; + return TAO::demarshal_sequence(strm, _tao_sequence); } #endif /* _TAO_CDR_OP_IOP_ServiceContextList_CPP_ */ |