summaryrefslogtreecommitdiff
path: root/TAO/tao/Policy_ForwardC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Policy_ForwardC.cpp')
-rw-r--r--TAO/tao/Policy_ForwardC.cpp57
1 files changed, 29 insertions, 28 deletions
diff --git a/TAO/tao/Policy_ForwardC.cpp b/TAO/tao/Policy_ForwardC.cpp
index 11609fa1252..5b41eace926 100644
--- a/TAO/tao/Policy_ForwardC.cpp
+++ b/TAO/tao/Policy_ForwardC.cpp
@@ -50,7 +50,7 @@ namespace TAO
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// be\be_visitor_sequence/sequence_cs.cpp:65
#if !defined (_CORBA_POLICYLIST_CS_)
@@ -106,7 +106,7 @@ void CORBA::PolicyList::_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 (_CORBA_POLICYTYPESEQ_CS_)
@@ -171,23 +171,23 @@ CORBA::Boolean operator<< (
)
{
CORBA::ULong _tao_seq_len = _tao_sequence.length ();
-
+
if (strm << _tao_seq_len)
{
// Encode all elements.
CORBA::Boolean _tao_marshal_flag = 1;
-
+
for (CORBA::ULong i = 0; i < _tao_seq_len && _tao_marshal_flag; ++i)
{
_tao_marshal_flag =
- TAO::Objref_Traits<CORBA::Policy>::marshal (
+ TAO::Objref_Traits<CORBA::Policy>::tao_marshal (
_tao_sequence[i].in (), strm
);
}
-
+
return _tao_marshal_flag;
}
-
+
return 0;
}
@@ -197,7 +197,7 @@ CORBA::Boolean operator>> (
)
{
CORBA::ULong _tao_seq_len;
-
+
if (strm >> _tao_seq_len)
{
// Add a check to the length of the sequence
@@ -207,28 +207,28 @@ CORBA::Boolean operator>> (
{
return 0;
}
-
+
// Set the length of the sequence.
_tao_sequence.length (_tao_seq_len);
-
+
// If length is 0 we return true.
- if (0 >= _tao_seq_len)
+ if (0 >= _tao_seq_len)
{
return 1;
}
-
+
// Retrieve all the elements.
CORBA::Boolean _tao_marshal_flag = 1;
-
+
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 0;
}
@@ -246,13 +246,13 @@ CORBA::Boolean operator<< (
)
{
CORBA::ULong _tao_seq_len = _tao_sequence.length ();
-
+
if (strm << _tao_seq_len)
{
// Encode all elements.
return strm.write_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
}
-
+
return 0;
}
@@ -262,7 +262,7 @@ CORBA::Boolean operator>> (
)
{
CORBA::ULong _tao_seq_len;
-
+
if (strm >> _tao_seq_len)
{
// Add a check to the length of the sequence
@@ -272,21 +272,21 @@ CORBA::Boolean operator>> (
{
return 0;
}
-
+
// Set the length of the sequence.
_tao_sequence.length (_tao_seq_len);
-
+
// If length is 0 we return true.
- if (0 >= _tao_seq_len)
+ if (0 >= _tao_seq_len)
{
return 1;
}
-
+
// Retrieve all the elements.
return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-
+
}
-
+
return 0;
}
@@ -305,12 +305,12 @@ CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::SetOverrideType &_tao_enum
{
CORBA::ULong _tao_temp = 0;
CORBA::Boolean _tao_result = strm >> _tao_temp;
-
+
if (_tao_result == 1)
{
_tao_enumval = ACE_static_cast (CORBA::SetOverrideType, _tao_temp);
}
-
+
return _tao_result;
}
@@ -443,4 +443,5 @@ CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::SetOverrideType &_tao_enum
CORBA::PolicyType \
>
-#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+