summaryrefslogtreecommitdiff
path: root/TAO/tao/IOP_IORC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IOP_IORC.cpp')
-rw-r--r--TAO/tao/IOP_IORC.cpp322
1 files changed, 43 insertions, 279 deletions
diff --git a/TAO/tao/IOP_IORC.cpp b/TAO/tao/IOP_IORC.cpp
index 0dcb0c1062d..60187c0e8fc 100644
--- a/TAO/tao/IOP_IORC.cpp
+++ b/TAO/tao/IOP_IORC.cpp
@@ -29,23 +29,25 @@
// be\be_codegen.cpp:288
-#include "IOP_IORC.h"
+#include "tao/IOP_IORC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
// Arg traits specializations.
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
)
@@ -55,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_)
@@ -67,7 +69,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq (void)
IOP::TaggedProfileSeq::TaggedProfileSeq (
CORBA::ULong max
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedProfile
>
(max)
@@ -79,7 +81,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq (
IOP::TaggedProfile * buffer,
CORBA::Boolean release
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedProfile
>
(max, length, buffer, release)
@@ -88,7 +90,7 @@ IOP::TaggedProfileSeq::TaggedProfileSeq (
IOP::TaggedProfileSeq::TaggedProfileSeq (
const TaggedProfileSeq &seq
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedProfile
>
(seq)
@@ -108,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
)
@@ -121,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
)
@@ -134,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_)
@@ -146,7 +148,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile (void)
IOP::MultipleComponentProfile::MultipleComponentProfile (
CORBA::ULong max
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max)
@@ -158,7 +160,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile (
IOP::TaggedComponent * buffer,
CORBA::Boolean release
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max, length, buffer, release)
@@ -167,7 +169,7 @@ IOP::MultipleComponentProfile::MultipleComponentProfile (
IOP::MultipleComponentProfile::MultipleComponentProfile (
const MultipleComponentProfile &seq
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(seq)
@@ -187,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_)
@@ -199,7 +201,7 @@ IOP::TaggedComponentList::TaggedComponentList (void)
IOP::TaggedComponentList::TaggedComponentList (
CORBA::ULong max
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max)
@@ -211,7 +213,7 @@ IOP::TaggedComponentList::TaggedComponentList (
IOP::TaggedComponent * buffer,
CORBA::Boolean release
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max, length, buffer, release)
@@ -220,7 +222,7 @@ IOP::TaggedComponentList::TaggedComponentList (
IOP::TaggedComponentList::TaggedComponentList (
const TaggedComponentList &seq
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(seq)
@@ -240,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_)
@@ -252,7 +254,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq (void)
IOP::TaggedComponentSeq::TaggedComponentSeq (
CORBA::ULong max
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max)
@@ -264,7 +266,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq (
IOP::TaggedComponent * buffer,
CORBA::Boolean release
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(max, length, buffer, release)
@@ -273,7 +275,7 @@ IOP::TaggedComponentSeq::TaggedComponentSeq (
IOP::TaggedComponentSeq::TaggedComponentSeq (
const TaggedComponentSeq &seq
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
TaggedComponent
>
(seq)
@@ -293,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
)
@@ -306,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_)
@@ -318,7 +320,7 @@ IOP::ServiceContextList::ServiceContextList (void)
IOP::ServiceContextList::ServiceContextList (
CORBA::ULong max
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
ServiceContext
>
(max)
@@ -330,7 +332,7 @@ IOP::ServiceContextList::ServiceContextList (
IOP::ServiceContext * buffer,
CORBA::Boolean release
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
ServiceContext
>
(max, length, buffer, release)
@@ -339,7 +341,7 @@ IOP::ServiceContextList::ServiceContextList (
IOP::ServiceContextList::ServiceContextList (
const ServiceContextList &seq
)
- : TAO_Unbounded_Sequence<
+ : TAO::unbounded_value_sequence<
ServiceContext
>
(seq)
@@ -393,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>> (
@@ -416,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_ */
@@ -511,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>> (
@@ -534,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_ */
@@ -583,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>> (
@@ -606,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_ */
@@ -655,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>> (
@@ -678,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_ */
@@ -750,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>> (
@@ -773,40 +568,9 @@ 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_ */
+
+TAO_END_VERSIONED_NAMESPACE_DECL