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.cpp391
1 files changed, 108 insertions, 283 deletions
diff --git a/TAO/tao/Policy_ForwardC.cpp b/TAO/tao/Policy_ForwardC.cpp
index d9ca2494fa2..e56f8e0ad37 100644
--- a/TAO/tao/Policy_ForwardC.cpp
+++ b/TAO/tao/Policy_ForwardC.cpp
@@ -26,12 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:301
+// be/be_codegen.cpp:338
#include "Policy_ForwardC.h"
-#include "tao/Any_Basic_Impl_T.h"
-#include "tao/Any_Dual_Impl_T.h"
#include "tao/Typecode.h"
#if defined (__BORLANDC__)
@@ -43,7 +41,7 @@
#endif /* !defined INLINE */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:59
+// be/be_visitor_arg_traits.cpp:62
// Arg traits specializations.
namespace TAO
@@ -51,24 +49,24 @@ namespace TAO
};
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
+// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_PolicyType[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
33,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f506f),
- ACE_NTOHL (0x6c696379),
- ACE_NTOHL (0x54797065),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f506f),
+ ACE_NTOHL (0x6c696379),
+ ACE_NTOHL (0x54797065),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
11,
- ACE_NTOHL (0x506f6c69),
- ACE_NTOHL (0x63795479),
+ ACE_NTOHL (0x506f6c69),
+ ACE_NTOHL (0x63795479),
ACE_NTOHL (0x70650000), // name = PolicyType
CORBA::tk_ulong,
@@ -88,8 +86,8 @@ namespace CORBA
&_tc_TAO_tc_CORBA_PolicyType;
}
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:66
+// TAO_IDL - Generated from
+// be/be_visitor_sequence/sequence_cs.cpp:65
#if !defined (_CORBA_POLICYLIST_CS_)
#define _CORBA_POLICYLIST_CS_
@@ -145,24 +143,24 @@ void CORBA::PolicyList::_tao_any_destructor (
#endif /* end #if !defined */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
+// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_PolicyList[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
33,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f506f),
- ACE_NTOHL (0x6c696379),
- ACE_NTOHL (0x4c697374),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f506f),
+ ACE_NTOHL (0x6c696379),
+ ACE_NTOHL (0x4c697374),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyList:1.0
11,
- ACE_NTOHL (0x506f6c69),
- ACE_NTOHL (0x63794c69),
+ ACE_NTOHL (0x506f6c69),
+ ACE_NTOHL (0x63794c69),
ACE_NTOHL (0x73740000), // name = PolicyList
CORBA::tk_sequence, // typecode kind
68, // encapsulation length
@@ -171,18 +169,18 @@ static const CORBA::Long _oc_CORBA_PolicyList[] =
52, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
29,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f506f),
- ACE_NTOHL (0x6c696379),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f506f),
+ ACE_NTOHL (0x6c696379),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Policy:1.0
7,
- ACE_NTOHL (0x506f6c69),
+ ACE_NTOHL (0x506f6c69),
ACE_NTOHL (0x63790000), // name = Policy
-
+
0U,
};
@@ -201,8 +199,8 @@ namespace CORBA
&_tc_TAO_tc_CORBA_PolicyList;
}
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/sequence_cs.cpp:66
+// TAO_IDL - Generated from
+// be/be_visitor_sequence/sequence_cs.cpp:65
#if !defined (_CORBA_POLICYTYPESEQ_CS_)
#define _CORBA_POLICYTYPESEQ_CS_
@@ -255,25 +253,25 @@ void CORBA::PolicyTypeSeq::_tao_any_destructor (
#endif /* end #if !defined */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
+// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_PolicyTypeSeq[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
36,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f506f),
- ACE_NTOHL (0x6c696379),
- ACE_NTOHL (0x54797065),
- ACE_NTOHL (0x5365713a),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f506f),
+ ACE_NTOHL (0x6c696379),
+ ACE_NTOHL (0x54797065),
+ ACE_NTOHL (0x5365713a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyTypeSeq:1.0
14,
- ACE_NTOHL (0x506f6c69),
- ACE_NTOHL (0x63795479),
- ACE_NTOHL (0x70655365),
+ ACE_NTOHL (0x506f6c69),
+ ACE_NTOHL (0x63795479),
+ ACE_NTOHL (0x70655365),
ACE_NTOHL (0x71000000), // name = PolicyTypeSeq
CORBA::tk_sequence, // typecode kind
80, // encapsulation length
@@ -282,18 +280,18 @@ static const CORBA::Long _oc_CORBA_PolicyTypeSeq[] =
64, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
33,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f506f),
- ACE_NTOHL (0x6c696379),
- ACE_NTOHL (0x54797065),
- ACE_NTOHL (0x3a312e30),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f506f),
+ ACE_NTOHL (0x6c696379),
+ ACE_NTOHL (0x54797065),
+ ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/PolicyType:1.0
11,
- ACE_NTOHL (0x506f6c69),
- ACE_NTOHL (0x63795479),
+ ACE_NTOHL (0x506f6c69),
+ ACE_NTOHL (0x63795479),
ACE_NTOHL (0x70650000), // name = PolicyType
CORBA::tk_ulong,
@@ -317,37 +315,37 @@ namespace CORBA
}
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
+// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_SetOverrideType[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
38,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x434f5242),
- ACE_NTOHL (0x412f5365),
- ACE_NTOHL (0x744f7665),
- ACE_NTOHL (0x72726964),
- ACE_NTOHL (0x65547970),
- ACE_NTOHL (0x653a312e),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x434f5242),
+ ACE_NTOHL (0x412f5365),
+ ACE_NTOHL (0x744f7665),
+ ACE_NTOHL (0x72726964),
+ ACE_NTOHL (0x65547970),
+ ACE_NTOHL (0x653a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/SetOverrideType:1.0
16,
- ACE_NTOHL (0x5365744f),
- ACE_NTOHL (0x76657272),
- ACE_NTOHL (0x69646554),
+ ACE_NTOHL (0x5365744f),
+ ACE_NTOHL (0x76657272),
+ ACE_NTOHL (0x69646554),
ACE_NTOHL (0x79706500), // name = SetOverrideType
2, // member count
13,
- ACE_NTOHL (0x5345545f),
- ACE_NTOHL (0x4f564552),
- ACE_NTOHL (0x52494445),
+ ACE_NTOHL (0x5345545f),
+ ACE_NTOHL (0x4f564552),
+ ACE_NTOHL (0x52494445),
ACE_NTOHL (0x0), // name = SET_OVERRIDE
13,
- ACE_NTOHL (0x4144445f),
- ACE_NTOHL (0x4f564552),
- ACE_NTOHL (0x52494445),
+ ACE_NTOHL (0x4144445f),
+ ACE_NTOHL (0x4f564552),
+ ACE_NTOHL (0x52494445),
ACE_NTOHL (0x0), // name = ADD_OVERRIDE
};
@@ -366,151 +364,7 @@ namespace CORBA
}
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54
-
-// Copying insertion.
-void operator<<= (
- CORBA::Any &_tao_any,
- const CORBA::PolicyList &_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<CORBA::PolicyList>::insert_copy (
- _tao_any,
- CORBA::PolicyList::_tao_any_destructor,
- CORBA::_tc_PolicyList,
- _tao_elem
- );
-}
-
-// Non-copying insertion.
-void operator<<= (
- CORBA::Any &_tao_any,
- CORBA::PolicyList *_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<CORBA::PolicyList>::insert (
- _tao_any,
- CORBA::PolicyList::_tao_any_destructor,
- CORBA::_tc_PolicyList,
- _tao_elem
- );
-}
-
-// Extraction to non-const pointer (deprecated).
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- CORBA::PolicyList *&_tao_elem
- )
-{
- return _tao_any >>= ACE_const_cast (
- const CORBA::PolicyList *&,
- _tao_elem
- );
-}
-
-// Extraction to const pointer.
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- const CORBA::PolicyList *&_tao_elem
- )
-{
- return
- TAO::Any_Dual_Impl_T<CORBA::PolicyList>::extract (
- _tao_any,
- CORBA::PolicyList::_tao_any_destructor,
- CORBA::_tc_PolicyList,
- _tao_elem
- );
-}
-
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/any_op_cs.cpp:54
-
-// Copying insertion.
-void operator<<= (
- CORBA::Any &_tao_any,
- const CORBA::PolicyTypeSeq &_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<CORBA::PolicyTypeSeq>::insert_copy (
- _tao_any,
- CORBA::PolicyTypeSeq::_tao_any_destructor,
- CORBA::_tc_PolicyTypeSeq,
- _tao_elem
- );
-}
-
-// Non-copying insertion.
-void operator<<= (
- CORBA::Any &_tao_any,
- CORBA::PolicyTypeSeq *_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<CORBA::PolicyTypeSeq>::insert (
- _tao_any,
- CORBA::PolicyTypeSeq::_tao_any_destructor,
- CORBA::_tc_PolicyTypeSeq,
- _tao_elem
- );
-}
-
-// Extraction to non-const pointer (deprecated).
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- CORBA::PolicyTypeSeq *&_tao_elem
- )
-{
- return _tao_any >>= ACE_const_cast (
- const CORBA::PolicyTypeSeq *&,
- _tao_elem
- );
-}
-
-// Extraction to const pointer.
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- const CORBA::PolicyTypeSeq *&_tao_elem
- )
-{
- return
- TAO::Any_Dual_Impl_T<CORBA::PolicyTypeSeq>::extract (
- _tao_any,
- CORBA::PolicyTypeSeq::_tao_any_destructor,
- CORBA::_tc_PolicyTypeSeq,
- _tao_elem
- );
-}
-
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_enum/any_op_cs.cpp:52
-
-void operator<<= (
- CORBA::Any &_tao_any,
- CORBA::SetOverrideType _tao_elem
- )
-{
- TAO::Any_Basic_Impl_T<CORBA::SetOverrideType>::insert (
- _tao_any,
- CORBA::_tc_SetOverrideType,
- _tao_elem
- );
-}
-
-CORBA::Boolean operator>>= (
- const CORBA::Any &_tao_any,
- CORBA::SetOverrideType &_tao_elem
- )
-{
- return
- TAO::Any_Basic_Impl_T<CORBA::SetOverrideType>::extract (
- _tao_any,
- CORBA::_tc_SetOverrideType,
- _tao_elem
- );
-}
-
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:95
+// be/be_visitor_sequence/cdr_op_cs.cpp:95
#if !defined _TAO_CDR_OP_CORBA_PolicyList_CPP_
#define _TAO_CDR_OP_CORBA_PolicyList_CPP_
@@ -521,12 +375,12 @@ 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 =
@@ -534,10 +388,10 @@ CORBA::Boolean operator<< (
_tao_sequence[i].in (), strm
);
}
-
+
return _tao_marshal_flag;
}
-
+
return 0;
}
@@ -547,7 +401,7 @@ CORBA::Boolean operator>> (
)
{
CORBA::ULong _tao_seq_len;
-
+
if (strm >> _tao_seq_len)
{
// Add a check to the length of the sequence
@@ -557,35 +411,35 @@ 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;
}
#endif /* _TAO_CDR_OP_CORBA_PolicyList_CPP_ */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_sequence/cdr_op_cs.cpp:95
+// be/be_visitor_sequence/cdr_op_cs.cpp:95
#if !defined _TAO_CDR_OP_CORBA_PolicyTypeSeq_CPP_
#define _TAO_CDR_OP_CORBA_PolicyTypeSeq_CPP_
@@ -596,13 +450,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;
}
@@ -612,7 +466,7 @@ CORBA::Boolean operator>> (
)
{
CORBA::ULong _tao_seq_len;
-
+
if (strm >> _tao_seq_len)
{
// Add a check to the length of the sequence
@@ -622,28 +476,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.
return strm.read_ulong_array (_tao_sequence.get_buffer (), _tao_sequence.length ());
-
+
}
-
+
return 0;
}
#endif /* _TAO_CDR_OP_CORBA_PolicyTypeSeq_CPP_ */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/root.cpp:1703
+// be/be_visitor_root/root.cpp:1725
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
@@ -681,8 +535,8 @@ CORBA::Boolean operator>> (
>
>;
-#if !defined (_CORBA_POLICYLIST__EXPLICIT_CS_)
-#define _CORBA_POLICYLIST__EXPLICIT_CS_
+#if !defined (_CORBA_POLICY__EXPLICIT_CS_)
+#define _CORBA_POLICY__EXPLICIT_CS_
template class
TAO_Unbounded_Object_Sequence<
@@ -693,11 +547,6 @@ CORBA::Boolean operator>> (
#endif /* end #if !defined */
template class
- TAO::Any_Dual_Impl_T<
- CORBA::PolicyList
- >;
-
- template class
TAO_FixedSeq_Var_T<
CORBA::PolicyTypeSeq,
CORBA::PolicyType
@@ -716,16 +565,6 @@ CORBA::Boolean operator>> (
CORBA::PolicyType
>;
- template class
- TAO::Any_Dual_Impl_T<
- CORBA::PolicyTypeSeq
- >;
-
- template class
- TAO::Any_Basic_Impl_T<
- CORBA::SetOverrideType
- >;
-
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
# pragma instantiate \
@@ -756,8 +595,8 @@ CORBA::Boolean operator>> (
> \
>
-#if !defined (_CORBA_POLICYLIST__EXPLICIT_CS_)
-#define _CORBA_POLICYLIST__EXPLICIT_CS_
+#if !defined (_CORBA_POLICY__EXPLICIT_CS_)
+#define _CORBA_POLICY__EXPLICIT_CS_
# pragma instantiate \
TAO_Unbounded_Object_Sequence< \
@@ -768,11 +607,6 @@ CORBA::Boolean operator>> (
#endif /* end #if !defined */
# pragma instantiate \
- TAO::Any_Dual_Impl_T< \
- CORBA::PolicyList \
- >
-
-# pragma instantiate \
TAO_FixedSeq_Var_T< \
CORBA::PolicyTypeSeq, \
CORBA::PolicyType \
@@ -791,14 +625,5 @@ CORBA::Boolean operator>> (
CORBA::PolicyType \
>
-# pragma instantiate \
- TAO::Any_Dual_Impl_T< \
- CORBA::PolicyTypeSeq \
- >
-
-# pragma instantiate \
- TAO::Any_Basic_Impl_T< \
- CORBA::SetOverrideType \
-x >
+#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */