diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-12-11 14:13:04 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-12-11 14:13:04 +0000 |
commit | 2e19eb959574766761821d5efe568cc006a0d6f8 (patch) | |
tree | 66d1c3ade42fe983bfa998f96ffafe0e7211a546 | |
parent | b8b1766f6d16e3a03c14bec249aa7f72fa94e87a (diff) | |
download | ATCD-2e19eb959574766761821d5efe568cc006a0d6f8.tar.gz |
ChangeLogTag: Sat Dec 11 14:12:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | TAO/ChangeLog | 33 | ||||
-rw-r--r-- | TAO/tao/Makefile.am | 3 | ||||
-rw-r--r-- | TAO/tao/PI_Forward.pidl | 4 | ||||
-rw-r--r-- | TAO/tao/PI_ForwardA.cpp | 331 | ||||
-rw-r--r-- | TAO/tao/PI_ForwardC.cpp | 302 | ||||
-rw-r--r-- | TAO/tao/PI_ForwardC.h | 43 | ||||
-rw-r--r-- | TAO/tao/PI_ForwardC.inl | 1 | ||||
-rw-r--r-- | TAO/tao/Policy.pidl | 3 | ||||
-rw-r--r-- | TAO/tao/PolicyA.cpp | 133 | ||||
-rw-r--r-- | TAO/tao/PolicyC.cpp | 367 | ||||
-rw-r--r-- | TAO/tao/PolicyC.h | 327 | ||||
-rw-r--r-- | TAO/tao/PolicyC.inl (renamed from TAO/tao/PolicyC.i) | 1 | ||||
-rw-r--r-- | TAO/tao/diffs/Policy.diff | 55 | ||||
-rw-r--r-- | TAO/tao/tao.mpc | 1 |
14 files changed, 810 insertions, 794 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 6030544e2e3..879ed495152 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,9 +1,36 @@ +Sat Dec 11 14:12:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl> + + * tao/PI_Forward.pidl: + Updated regeneration instructions + + * tao/PI_ForwardC.{h,cpp,inl}: + Regenerated + + * tao/PI_ForwardA.cpp: + New generated file + + * tao/Policy.pidl: + Updated regeneration instructions + + * tao/PI_ForwardA.cpp: + * tao/PI_ForwardC.{h,cpp,i,inl}: + Regenerated and replace .i file with .inl variant + + * tao/tao.mpc: + Added PI_ForwardA.cpp + + * tao/diffs/Policy.diff: + Updated + + * tao/Makefile.am: + Updated because of changes above + Fri Dec 10 13:35:36 2004 Jeff Parsons <j.parsons@vanderbilt.edu> * orbsvcs/orbsvcs/IFRService/Contained_i.cpp: - - Put back exception throw removed in - + + Put back exception throw removed in + Fri Dec 10 10:40:30 2004 Jeff Parsons <j.parsons@vanderbilt.edu> since there is a use case where it is not redundant. diff --git a/TAO/tao/Makefile.am b/TAO/tao/Makefile.am index e92463c68b9..3be56d99957 100644 --- a/TAO/tao/Makefile.am +++ b/TAO/tao/Makefile.am @@ -150,6 +150,7 @@ ORB_Core = \ PICurrent_Copy_Callback.cpp \ PICurrent_ORBInitializer.cpp \ PI_ForwardC.cpp \ + PI_ForwardA.cpp \ ParameterModeC.cpp \ Parser_Registry.cpp \ PolicyA.cpp \ @@ -790,7 +791,7 @@ nobase_include_HEADERS += \ Parser_Registry.i \ Pluggable_Messaging.i \ Pluggable_Messaging_Utils.i \ - PolicyC.i \ + PolicyC.inl \ Policy_ForwardC.i \ Policy_Manager.i \ Policy_Set.i \ diff --git a/TAO/tao/PI_Forward.pidl b/TAO/tao/PI_Forward.pidl index 5256404e9dc..dad7ae40cf0 100644 --- a/TAO/tao/PI_Forward.pidl +++ b/TAO/tao/PI_Forward.pidl @@ -12,7 +12,7 @@ * using the following command: * * tao_idl.exe - * -o orig -Gp -Gd -Ge 1 -GT -Sc + * -o orig -Gp -Gd -Ge 1 -GT -Sc -GA * -Wb,export_macro=TAO_Export * -Wb,export_include=tao/TAO_Export.h * -Wb,pre_include="ace/pre.h" @@ -23,7 +23,7 @@ * * cp orig/PI_ForwardC.{h,i,cpp} . * - * The code left in PI_ForwardC.{h,i,cpp} is ready for use. + * The code left in PI_ForwardC.{h,i,cpp} and PI_ForwardA.cpp is ready for use. * */ diff --git a/TAO/tao/PI_ForwardA.cpp b/TAO/tao/PI_ForwardA.cpp new file mode 100644 index 00000000000..5f1e47ca224 --- /dev/null +++ b/TAO/tao/PI_ForwardA.cpp @@ -0,0 +1,331 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// Irvine, CA +// USA +// http://doc.ece.uci.edu/ +// and +// Institute for Software Integrated Systems +// Vanderbilt University +// Nashville, TN +// USA +// http://www.isis.vanderbilt.edu/ +// +// Information about TAO is available at: +// http://www.cs.wustl.edu/~schmidt/TAO.html + +#include "PI_ForwardC.h" +#include "tao/Typecode.h" +#include "tao/CDR.h" +#include "tao/Any.h" + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_ServerId[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 45, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x65724964), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/ServerId:1.0 + 9, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x65724964), + ACE_NTOHL (0x0), // name = ServerId + CORBA::tk_string, + 0U, // string length +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ServerId ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_ServerId), + (char *) &_oc_PortableInterceptor_ServerId, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ServerId = + &_tc_TAO_tc_PortableInterceptor_ServerId; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_ORBId[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 42, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x4f524249), + ACE_NTOHL (0x643a312e), + ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableInterceptor/ORBId:1.0 + 6, + ACE_NTOHL (0x4f524249), + ACE_NTOHL (0x64000000), // name = ORBId + CORBA::tk_string, + 0U, // string length +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ORBId ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_ORBId), + (char *) &_oc_PortableInterceptor_ORBId, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ORBId = + &_tc_TAO_tc_PortableInterceptor_ORBId; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_AdapterName[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 48, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x7465724e), + ACE_NTOHL (0x616d653a), + ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableInterceptor/AdapterName:1.0 + 12, + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x7465724e), + ACE_NTOHL (0x616d6500), // name = AdapterName + CORBA::tk_alias, // typecode kind for typedefs + 80, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + 32, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f5374), + ACE_NTOHL (0x72696e67), + ACE_NTOHL (0x5365713a), + ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/StringSeq:1.0 + 10, + ACE_NTOHL (0x53747269), + ACE_NTOHL (0x6e675365), + ACE_NTOHL (0x71000000), // name = StringSeq + CORBA::tk_sequence, // typecode kind + 16, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_string, + 0U, // string length + 0U, + + +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterName ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_AdapterName), + (char *) &_oc_PortableInterceptor_AdapterName, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_AdapterName = + &_tc_TAO_tc_PortableInterceptor_AdapterName; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_ObjectId[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 45, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x4f626a65), + ACE_NTOHL (0x63744964), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/ObjectId:1.0 + 9, + ACE_NTOHL (0x4f626a65), + ACE_NTOHL (0x63744964), + ACE_NTOHL (0x0), // name = ObjectId + CORBA::tk_alias, // typecode kind for typedefs + 76, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + 31, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f4f63), + ACE_NTOHL (0x74657453), + ACE_NTOHL (0x65713a31), + ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/CORBA/OctetSeq:1.0 + 9, + ACE_NTOHL (0x4f637465), + ACE_NTOHL (0x74536571), + ACE_NTOHL (0x0), // name = OctetSeq + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_octet, + + 0U, + + +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ObjectId ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_ObjectId), + (char *) &_oc_PortableInterceptor_ObjectId, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_ObjectId = + &_tc_TAO_tc_PortableInterceptor_ObjectId; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_AdapterManagerId[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 53, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x7465724d), + ACE_NTOHL (0x616e6167), + ACE_NTOHL (0x65724964), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/AdapterManagerId:1.0 + 17, + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x7465724d), + ACE_NTOHL (0x616e6167), + ACE_NTOHL (0x65724964), + ACE_NTOHL (0x0), // name = AdapterManagerId + CORBA::tk_long, + +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterManagerId ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_AdapterManagerId), + (char *) &_oc_PortableInterceptor_AdapterManagerId, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_AdapterManagerId = + &_tc_TAO_tc_PortableInterceptor_AdapterManagerId; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableInterceptor_AdapterState[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 49, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x496e7465), + ACE_NTOHL (0x72636570), + ACE_NTOHL (0x746f722f), + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x74657253), + ACE_NTOHL (0x74617465), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/AdapterState:1.0 + 13, + ACE_NTOHL (0x41646170), + ACE_NTOHL (0x74657253), + ACE_NTOHL (0x74617465), + ACE_NTOHL (0x0), // name = AdapterState + CORBA::tk_short, + +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterState ( + CORBA::tk_alias, + sizeof (_oc_PortableInterceptor_AdapterState), + (char *) &_oc_PortableInterceptor_AdapterState, + 0, + 0 + ); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr _tc_AdapterState = + &_tc_TAO_tc_PortableInterceptor_AdapterState; +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PI_ForwardC.cpp b/TAO/tao/PI_ForwardC.cpp index ab3fc77daa3..66c20b37552 100644 --- a/TAO/tao/PI_ForwardC.cpp +++ b/TAO/tao/PI_ForwardC.cpp @@ -26,13 +26,12 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:303 +// be\be_codegen.cpp:302 #include "PI_ForwardC.h" #include "tao/CDR.h" #include "tao/ORB_Core.h" -#include "tao/Typecode.h" #if defined (__BORLANDC__) #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig @@ -43,7 +42,7 @@ #endif /* !defined INLINE */ // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_arg_traits.cpp:64 +// be\be_visitor_arg_traits.cpp:65 // Arg traits specializations. namespace TAO @@ -52,305 +51,10 @@ namespace TAO // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_ServerId[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 45, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x65724964), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/ServerId:1.0 - 9, - ACE_NTOHL (0x53657276), - ACE_NTOHL (0x65724964), - ACE_NTOHL (0x0), // name = ServerId - CORBA::tk_string, - 0U, // string length -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ServerId ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_ServerId), - (char *) &_oc_PortableInterceptor_ServerId, - 0, - sizeof (PortableInterceptor::ServerId) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_ServerId = - &_tc_TAO_tc_PortableInterceptor_ServerId; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_ORBId[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 42, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x4f524249), - ACE_NTOHL (0x643a312e), - ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/PortableInterceptor/ORBId:1.0 - 6, - ACE_NTOHL (0x4f524249), - ACE_NTOHL (0x64000000), // name = ORBId - CORBA::tk_string, - 0U, // string length -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ORBId ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_ORBId), - (char *) &_oc_PortableInterceptor_ORBId, - 0, - sizeof (PortableInterceptor::ORBId) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_ORBId = - &_tc_TAO_tc_PortableInterceptor_ORBId; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_AdapterName[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 48, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x7465724e), - ACE_NTOHL (0x616d653a), - ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/PortableInterceptor/AdapterName:1.0 - 12, - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x7465724e), - ACE_NTOHL (0x616d6500), // name = AdapterName - CORBA::tk_alias, // typecode kind for typedefs - 80, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f5374), - ACE_NTOHL (0x72696e67), - ACE_NTOHL (0x5365713a), - ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/StringSeq:1.0 - 10, - ACE_NTOHL (0x53747269), - ACE_NTOHL (0x6e675365), - ACE_NTOHL (0x71000000), // name = StringSeq - CORBA::tk_sequence, // typecode kind - 16, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_string, - 0U, // string length - 0U, - - -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterName ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_AdapterName), - (char *) &_oc_PortableInterceptor_AdapterName, - 0, - sizeof (PortableInterceptor::AdapterName) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_AdapterName = - &_tc_TAO_tc_PortableInterceptor_AdapterName; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_ObjectId[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 45, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x4f626a65), - ACE_NTOHL (0x63744964), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/ObjectId:1.0 - 9, - ACE_NTOHL (0x4f626a65), - ACE_NTOHL (0x63744964), - ACE_NTOHL (0x0), // name = ObjectId - CORBA::tk_alias, // typecode kind for typedefs - 76, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - 31, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f4f63), - ACE_NTOHL (0x74657453), - ACE_NTOHL (0x65713a31), - ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/CORBA/OctetSeq:1.0 - 9, - ACE_NTOHL (0x4f637465), - ACE_NTOHL (0x74536571), - ACE_NTOHL (0x0), // name = OctetSeq - CORBA::tk_sequence, // typecode kind - 12, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_octet, - - 0U, - - -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_ObjectId ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_ObjectId), - (char *) &_oc_PortableInterceptor_ObjectId, - 0, - sizeof (PortableInterceptor::ObjectId) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_ObjectId = - &_tc_TAO_tc_PortableInterceptor_ObjectId; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_AdapterManagerId[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 53, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x7465724d), - ACE_NTOHL (0x616e6167), - ACE_NTOHL (0x65724964), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/AdapterManagerId:1.0 - 17, - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x7465724d), - ACE_NTOHL (0x616e6167), - ACE_NTOHL (0x65724964), - ACE_NTOHL (0x0), // name = AdapterManagerId - CORBA::tk_long, - -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterManagerId ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_AdapterManagerId), - (char *) &_oc_PortableInterceptor_AdapterManagerId, - 0, - sizeof (PortableInterceptor::AdapterManagerId) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_AdapterManagerId = - &_tc_TAO_tc_PortableInterceptor_AdapterManagerId; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_PortableInterceptor_AdapterState[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 49, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x506f7274), - ACE_NTOHL (0x61626c65), - ACE_NTOHL (0x496e7465), - ACE_NTOHL (0x72636570), - ACE_NTOHL (0x746f722f), - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x74657253), - ACE_NTOHL (0x74617465), - ACE_NTOHL (0x3a312e30), - ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableInterceptor/AdapterState:1.0 - 13, - ACE_NTOHL (0x41646170), - ACE_NTOHL (0x74657253), - ACE_NTOHL (0x74617465), - ACE_NTOHL (0x0), // name = AdapterState - CORBA::tk_short, - -}; - -static CORBA::TypeCode _tc_TAO_tc_PortableInterceptor_AdapterState ( - CORBA::tk_alias, - sizeof (_oc_PortableInterceptor_AdapterState), - (char *) &_oc_PortableInterceptor_AdapterState, - 0, - sizeof (PortableInterceptor::AdapterState) - ); - -namespace PortableInterceptor -{ - ::CORBA::TypeCode_ptr _tc_AdapterState = - &_tc_TAO_tc_PortableInterceptor_AdapterState; -} - -// TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/root.cpp:1628 +// be\be_visitor_root/root.cpp:1629 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/TAO/tao/PI_ForwardC.h b/TAO/tao/PI_ForwardC.h index 9f876afd852..45e79cdee3d 100644 --- a/TAO/tao/PI_ForwardC.h +++ b/TAO/tao/PI_ForwardC.h @@ -26,7 +26,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:153 +// be\be_codegen.cpp:153 #ifndef _TAO_IDL_ORIG_PI_FORWARDC_H_ #define _TAO_IDL_ORIG_PI_FORWARDC_H_ @@ -44,8 +44,8 @@ #include "tao/ORB.h" #include "tao/Environment.h" -#include "OctetSeqC.h" -#include "StringSeqC.h" +#include "tao/OctetSeqC.h" +#include "tao/StringSeqC.h" #if defined (TAO_EXPORT_MACRO) #undef TAO_EXPORT_MACRO @@ -60,9 +60,7 @@ #endif /* TAO_EXPORT_NESTED_CLASSES */ #if defined(_MSC_VER) -#if (_MSC_VER >= 1200) #pragma warning(push) -#endif /* _MSC_VER >= 1200 */ #pragma warning(disable:4250) #endif /* _MSC_VER */ @@ -71,88 +69,88 @@ #endif /* __BORLANDC__ */ // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:48 +// be\be_visitor_module/module_ch.cpp:48 namespace PortableInterceptor { // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:376 + // be\be_visitor_typedef/typedef_ch.cpp:376 typedef char * ServerId; typedef CORBA::String_var ServerId_var; typedef CORBA::String_out ServerId_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ServerId; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:376 + // be\be_visitor_typedef/typedef_ch.cpp:376 typedef char * ORBId; typedef CORBA::String_var ORBId_var; typedef CORBA::String_out ORBId_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ORBId; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:435 + // be\be_visitor_typedef/typedef_ch.cpp:435 typedef CORBA::StringSeq AdapterName; typedef CORBA::StringSeq_var AdapterName_var; typedef CORBA::StringSeq_out AdapterName_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AdapterName; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:435 + // be\be_visitor_typedef/typedef_ch.cpp:435 typedef CORBA::OctetSeq ObjectId; typedef CORBA::OctetSeq_var ObjectId_var; typedef CORBA::OctetSeq_out ObjectId_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ObjectId; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:342 + // be\be_visitor_typedef/typedef_ch.cpp:342 typedef CORBA::Long AdapterManagerId; typedef CORBA::Long_out AdapterManagerId_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AdapterManagerId; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typedef/typedef_ch.cpp:342 + // be\be_visitor_typedef/typedef_ch.cpp:342 typedef CORBA::Short AdapterState; typedef CORBA::Short_out AdapterState_out; // TAO_IDL - Generated from - // C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_decl.cpp:44 + // be\be_visitor_typecode/typecode_decl.cpp:44 TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AdapterState; // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_module/module_ch.cpp:66 +// be\be_visitor_module/module_ch.cpp:66 } // module PortableInterceptor // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_traits.cpp:59 +// be\be_visitor_traits.cpp:59 // Traits specializations. namespace TAO @@ -160,13 +158,13 @@ namespace TAO } // TAO_IDL - Generated from -// C:\ACE\develop\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:958 +// be\be_codegen.cpp:961 #if defined (__ACE_INLINE__) #include "PI_ForwardC.inl" #endif /* defined INLINE */ -#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#if defined(_MSC_VER) #pragma warning(pop) #endif /* _MSC_VER */ @@ -178,3 +176,4 @@ namespace TAO #endif /* ifndef */ + diff --git a/TAO/tao/PI_ForwardC.inl b/TAO/tao/PI_ForwardC.inl index 38aa32569ba..c944d806c1f 100644 --- a/TAO/tao/PI_ForwardC.inl +++ b/TAO/tao/PI_ForwardC.inl @@ -25,4 +25,3 @@ // Information about TAO is available at: // http://www.cs.wustl.edu/~schmidt/TAO.html - diff --git a/TAO/tao/Policy.pidl b/TAO/tao/Policy.pidl index e22330a0409..a5379d84b3c 100644 --- a/TAO/tao/Policy.pidl +++ b/TAO/tao/Policy.pidl @@ -37,9 +37,6 @@ * for i in Policy{S,S_T}.{h,i,cpp}; do * diff -wBbu orig/$i PortableServer/$i; * done >> diffs/Policy.diff - * - * Move the typecodes for exceptions in PolicyA.cpp to - * PolicyC.cpp. */ #ifndef TAO_CORBA_POLICY_PIDL diff --git a/TAO/tao/PolicyA.cpp b/TAO/tao/PolicyA.cpp index ca52f598306..6e63292b4f3 100644 --- a/TAO/tao/PolicyA.cpp +++ b/TAO/tao/PolicyA.cpp @@ -26,32 +26,33 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html #include "PolicyC.h" -#include "tao/CDR.h" #include "tao/Typecode.h" +#include "tao/CDR.h" +#include "tao/Any.h" #include "tao/Any_Impl_T.h" #include "tao/Any_Dual_Impl_T.h" // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// be\be_visitor_typecode/typecode_defn.cpp:295 static const CORBA::Long _oc_CORBA_PolicyErrorCode[] = { TAO_ENCAP_BYTE_ORDER, // byte order 38, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f506f), - ACE_NTOHL (0x6c696379), - ACE_NTOHL (0x4572726f), - ACE_NTOHL (0x72436f64), - ACE_NTOHL (0x653a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f506f), + ACE_NTOHL (0x6c696379), + ACE_NTOHL (0x4572726f), + ACE_NTOHL (0x72436f64), + ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyErrorCode:1.0 16, - ACE_NTOHL (0x506f6c69), - ACE_NTOHL (0x63794572), - ACE_NTOHL (0x726f7243), + ACE_NTOHL (0x506f6c69), + ACE_NTOHL (0x63794572), + ACE_NTOHL (0x726f7243), ACE_NTOHL (0x6f646500), // name = PolicyErrorCode CORBA::tk_short, @@ -62,7 +63,7 @@ static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyErrorCode ( sizeof (_oc_CORBA_PolicyErrorCode), (char *) &_oc_CORBA_PolicyErrorCode, 0, - sizeof (CORBA::PolicyErrorCode) + 0 ); namespace CORBA @@ -71,25 +72,23 @@ namespace CORBA &_tc_TAO_tc_CORBA_PolicyErrorCode; } - - // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// be\be_visitor_typecode/typecode_defn.cpp:295 static const CORBA::Long _oc_CORBA_Policy[] = { 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 }; @@ -98,7 +97,7 @@ static CORBA::TypeCode _tc_TAO_tc_CORBA_Policy ( sizeof (_oc_CORBA_Policy), (char *) &_oc_CORBA_Policy, 0, - sizeof (CORBA::Policy) + 0 ); namespace CORBA @@ -108,25 +107,25 @@ namespace CORBA } // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// be\be_visitor_typecode/typecode_defn.cpp:295 static const CORBA::Long _oc_CORBA_PolicyManager[] = { 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 (0x4d616e61), - ACE_NTOHL (0x6765723a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f506f), + ACE_NTOHL (0x6c696379), + ACE_NTOHL (0x4d616e61), + ACE_NTOHL (0x6765723a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyManager:1.0 14, - ACE_NTOHL (0x506f6c69), - ACE_NTOHL (0x63794d61), - ACE_NTOHL (0x6e616765), + ACE_NTOHL (0x506f6c69), + ACE_NTOHL (0x63794d61), + ACE_NTOHL (0x6e616765), ACE_NTOHL (0x72000000), // name = PolicyManager }; @@ -135,7 +134,7 @@ static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyManager ( sizeof (_oc_CORBA_PolicyManager), (char *) &_oc_CORBA_PolicyManager, 0, - sizeof (CORBA::PolicyManager) + 0 ); namespace CORBA @@ -145,25 +144,25 @@ namespace CORBA } // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// be\be_visitor_typecode/typecode_defn.cpp:295 static const CORBA::Long _oc_CORBA_PolicyCurrent[] = { 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 (0x43757272), - ACE_NTOHL (0x656e743a), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f506f), + ACE_NTOHL (0x6c696379), + ACE_NTOHL (0x43757272), + ACE_NTOHL (0x656e743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/PolicyCurrent:1.0 14, - ACE_NTOHL (0x506f6c69), - ACE_NTOHL (0x63794375), - ACE_NTOHL (0x7272656e), + ACE_NTOHL (0x506f6c69), + ACE_NTOHL (0x63794375), + ACE_NTOHL (0x7272656e), ACE_NTOHL (0x74000000), // name = PolicyCurrent }; @@ -172,7 +171,7 @@ static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyCurrent ( sizeof (_oc_CORBA_PolicyCurrent), (char *) &_oc_CORBA_PolicyCurrent, 0, - sizeof (CORBA::PolicyCurrent) + 0 ); namespace CORBA @@ -181,7 +180,7 @@ namespace CORBA &_tc_TAO_tc_CORBA_PolicyCurrent; } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_exception/any_op_cs.cpp:50 ACE_TEMPLATE_SPECIALIZATION @@ -191,12 +190,12 @@ TAO::Any_Dual_Impl_T<CORBA::PolicyError>::demarshal_value ( ) { CORBA::String_var id; - + if ((cdr >> id.out ()) == 0) { return 0; } - + ACE_TRY_NEW_ENV { this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER); @@ -207,7 +206,7 @@ TAO::Any_Dual_Impl_T<CORBA::PolicyError>::demarshal_value ( return 0; } ACE_ENDTRY; - + return 1; } @@ -245,8 +244,8 @@ CORBA::Boolean operator>>= ( CORBA::PolicyError *&_tao_elem ) { - return _tao_any >>= ACE_const_cast ( - const CORBA::PolicyError *&, + return _tao_any >>= const_cast< + const CORBA::PolicyError *&> ( _tao_elem ); } @@ -266,7 +265,7 @@ CORBA::Boolean operator>>= ( ); } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_exception/any_op_cs.cpp:50 ACE_TEMPLATE_SPECIALIZATION @@ -276,12 +275,12 @@ TAO::Any_Dual_Impl_T<CORBA::InvalidPolicies>::demarshal_value ( ) { CORBA::String_var id; - + if ((cdr >> id.out ()) == 0) { return 0; } - + ACE_TRY_NEW_ENV { this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER); @@ -292,7 +291,7 @@ TAO::Any_Dual_Impl_T<CORBA::InvalidPolicies>::demarshal_value ( return 0; } ACE_ENDTRY; - + return 1; } @@ -330,8 +329,8 @@ CORBA::Boolean operator>>= ( CORBA::InvalidPolicies *&_tao_elem ) { - return _tao_any >>= ACE_const_cast ( - const CORBA::InvalidPolicies *&, + return _tao_any >>= const_cast< + const CORBA::InvalidPolicies *&> ( _tao_elem ); } @@ -544,8 +543,6 @@ operator>>= ( ); } - - #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class @@ -600,4 +597,4 @@ operator>>= ( CORBA::PolicyCurrent \ > -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PolicyC.cpp b/TAO/tao/PolicyC.cpp index addf34ef1fd..79bc0dfae8a 100644 --- a/TAO/tao/PolicyC.cpp +++ b/TAO/tao/PolicyC.cpp @@ -26,13 +26,12 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:323 +// be\be_codegen.cpp:302 #include "PolicyC.h" #include "tao/CDR.h" #include "tao/Exception_Data.h" -#include "tao/SystemException.h" #include "tao/Invocation_Adapter.h" #include "tao/Object_T.h" #include "tao/Typecode.h" @@ -45,11 +44,11 @@ #endif /* __BORLANDC__ */ #if !defined (__ACE_INLINE__) -#include "PolicyC.i" +#include "PolicyC.inl" #endif /* !defined INLINE */ // TAO_IDL - Generated from -// be\be_visitor_arg_traits.cpp:64 +// be\be_visitor_arg_traits.cpp:65 // Arg traits specializations. namespace TAO @@ -57,7 +56,7 @@ namespace TAO #if !defined (_CORBA_POLICY__ARG_TRAITS_CS_) #define _CORBA_POLICY__ARG_TRAITS_CS_ - + ACE_TEMPLATE_SPECIALIZATION class TAO_Export Arg_Traits<CORBA::Policy> : public @@ -74,7 +73,7 @@ namespace TAO } -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_exception/exception_cs.cpp:63 CORBA::PolicyError::PolicyError (void) @@ -109,21 +108,20 @@ CORBA::PolicyError::operator= (const ::CORBA::PolicyError &_tao_excp) void CORBA::PolicyError::_tao_any_destructor (void *_tao_void_pointer) { PolicyError *_tao_tmp_pointer = - ACE_static_cast (PolicyError*, _tao_void_pointer); + static_cast<PolicyError *> (_tao_void_pointer); delete _tao_tmp_pointer; } CORBA::PolicyError * CORBA::PolicyError::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/PolicyError:1.0", _tao_excp->_rep_id ())) - { - return ACE_dynamic_cast (PolicyError *, _tao_excp); - } - else - { - return 0; - } + return dynamic_cast<PolicyError *> (_tao_excp); +} + +const CORBA::PolicyError * +CORBA::PolicyError::_downcast (CORBA::Exception const *_tao_excp) +{ + return dynamic_cast<const PolicyError *> (_tao_excp); } CORBA::Exception *CORBA::PolicyError::_alloc (void) @@ -159,7 +157,7 @@ void CORBA::PolicyError::_tao_encode ( { return; } - + ACE_THROW (CORBA::MARSHAL ()); } @@ -172,7 +170,7 @@ void CORBA::PolicyError::_tao_decode ( { return; } - + ACE_THROW (CORBA::MARSHAL ()); } @@ -192,48 +190,54 @@ CORBA::PolicyError::PolicyError ( this->reason = _tao_reason; } +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr CORBA::PolicyError::_type (void) const +{ + return ::CORBA::_tc_PolicyError; +} + // TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 +// be\be_visitor_typecode/typecode_defn.cpp:295 static const CORBA::Long _oc_CORBA_PolicyError[] = { TAO_ENCAP_BYTE_ORDER, // byte order 34, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f506f), - ACE_NTOHL (0x6c696379), - ACE_NTOHL (0x4572726f), - ACE_NTOHL (0x723a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f506f), + ACE_NTOHL (0x6c696379), + ACE_NTOHL (0x4572726f), + ACE_NTOHL (0x723a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyError:1.0 12, - ACE_NTOHL (0x506f6c69), - ACE_NTOHL (0x63794572), + ACE_NTOHL (0x506f6c69), + ACE_NTOHL (0x63794572), ACE_NTOHL (0x726f7200), // name = PolicyError 1, // member count 7, - ACE_NTOHL (0x72656173), + ACE_NTOHL (0x72656173), ACE_NTOHL (0x6f6e0000), // name = reason CORBA::tk_alias, // typecode kind for typedefs 72, // encapsulation length TAO_ENCAP_BYTE_ORDER, // byte order 38, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f506f), - ACE_NTOHL (0x6c696379), - ACE_NTOHL (0x4572726f), - ACE_NTOHL (0x72436f64), - ACE_NTOHL (0x653a312e), + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f506f), + ACE_NTOHL (0x6c696379), + ACE_NTOHL (0x4572726f), + ACE_NTOHL (0x72436f64), + ACE_NTOHL (0x653a312e), ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/PolicyErrorCode:1.0 16, - ACE_NTOHL (0x506f6c69), - ACE_NTOHL (0x63794572), - ACE_NTOHL (0x726f7243), + ACE_NTOHL (0x506f6c69), + ACE_NTOHL (0x63794572), + ACE_NTOHL (0x726f7243), ACE_NTOHL (0x6f646500), // name = PolicyErrorCode CORBA::tk_short, @@ -245,7 +249,7 @@ static CORBA::TypeCode _tc_TAO_tc_CORBA_PolicyError ( sizeof (_oc_CORBA_PolicyError), (char *) &_oc_CORBA_PolicyError, 0, - sizeof (CORBA::PolicyError) + 0 ); namespace CORBA @@ -254,79 +258,7 @@ namespace CORBA &_tc_TAO_tc_CORBA_PolicyError; } -// TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_CORBA_InvalidPolicies[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 38, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f496e), - ACE_NTOHL (0x76616c69), - ACE_NTOHL (0x64506f6c), - ACE_NTOHL (0x69636965), - ACE_NTOHL (0x733a312e), - ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/InvalidPolicies:1.0 - 16, - ACE_NTOHL (0x496e7661), - ACE_NTOHL (0x6c696450), - ACE_NTOHL (0x6f6c6963), - ACE_NTOHL (0x69657300), // name = InvalidPolicies - 1, // member count - 8, - ACE_NTOHL (0x696e6469), - ACE_NTOHL (0x63657300), // name = indices - CORBA::tk_alias, // typecode kind for typedefs - 76, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - 32, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x6f6d672e), - ACE_NTOHL (0x6f72672f), - ACE_NTOHL (0x434f5242), - ACE_NTOHL (0x412f5553), - ACE_NTOHL (0x686f7274), - ACE_NTOHL (0x5365713a), - ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/UShortSeq:1.0 - 10, - ACE_NTOHL (0x5553686f), - ACE_NTOHL (0x72745365), - ACE_NTOHL (0x71000000), // name = UShortSeq - CORBA::tk_sequence, // typecode kind - 12, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_ushort, - - 0U, - - -}; - -static CORBA::TypeCode _tc_TAO_tc_CORBA_InvalidPolicies ( - CORBA::tk_except, - sizeof (_oc_CORBA_InvalidPolicies), - (char *) &_oc_CORBA_InvalidPolicies, - 0, - sizeof (CORBA::InvalidPolicies) - ); - -namespace CORBA -{ - ::CORBA::TypeCode_ptr _tc_InvalidPolicies = - &_tc_TAO_tc_CORBA_InvalidPolicies; -} - -// TAO extension - the virtual _type method. -CORBA::TypeCode_ptr CORBA::PolicyError::_type (void) const -{ - return ::CORBA::_tc_PolicyError; -} - -// TAO_IDL - Generated from +// TAO_IDL - Generated from // be\be_visitor_exception/exception_cs.cpp:63 CORBA::InvalidPolicies::InvalidPolicies (void) @@ -361,21 +293,20 @@ CORBA::InvalidPolicies::operator= (const ::CORBA::InvalidPolicies &_tao_excp) void CORBA::InvalidPolicies::_tao_any_destructor (void *_tao_void_pointer) { InvalidPolicies *_tao_tmp_pointer = - ACE_static_cast (InvalidPolicies*, _tao_void_pointer); + static_cast<InvalidPolicies *> (_tao_void_pointer); delete _tao_tmp_pointer; } CORBA::InvalidPolicies * CORBA::InvalidPolicies::_downcast (CORBA::Exception *_tao_excp) { - if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/InvalidPolicies:1.0", _tao_excp->_rep_id ())) - { - return ACE_dynamic_cast (InvalidPolicies *, _tao_excp); - } - else - { - return 0; - } + return dynamic_cast<InvalidPolicies *> (_tao_excp); +} + +const CORBA::InvalidPolicies * +CORBA::InvalidPolicies::_downcast (CORBA::Exception const *_tao_excp) +{ + return dynamic_cast<const InvalidPolicies *> (_tao_excp); } CORBA::Exception *CORBA::InvalidPolicies::_alloc (void) @@ -411,7 +342,7 @@ void CORBA::InvalidPolicies::_tao_encode ( { return; } - + ACE_THROW (CORBA::MARSHAL ()); } @@ -424,7 +355,7 @@ void CORBA::InvalidPolicies::_tao_decode ( { return; } - + ACE_THROW (CORBA::MARSHAL ()); } @@ -451,6 +382,72 @@ CORBA::TypeCode_ptr CORBA::InvalidPolicies::_type (void) const } // TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_CORBA_InvalidPolicies[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 38, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f496e), + ACE_NTOHL (0x76616c69), + ACE_NTOHL (0x64506f6c), + ACE_NTOHL (0x69636965), + ACE_NTOHL (0x733a312e), + ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/InvalidPolicies:1.0 + 16, + ACE_NTOHL (0x496e7661), + ACE_NTOHL (0x6c696450), + ACE_NTOHL (0x6f6c6963), + ACE_NTOHL (0x69657300), // name = InvalidPolicies + 1, // member count + 8, + ACE_NTOHL (0x696e6469), + ACE_NTOHL (0x63657300), // name = indices + CORBA::tk_alias, // typecode kind for typedefs + 76, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + 32, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f5553), + ACE_NTOHL (0x686f7274), + ACE_NTOHL (0x5365713a), + ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/UShortSeq:1.0 + 10, + ACE_NTOHL (0x5553686f), + ACE_NTOHL (0x72745365), + ACE_NTOHL (0x71000000), // name = UShortSeq + CORBA::tk_sequence, // typecode kind + 12, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + CORBA::tk_ushort, + + 0U, + + +}; + +static CORBA::TypeCode _tc_TAO_tc_CORBA_InvalidPolicies ( + CORBA::tk_except, + sizeof (_oc_CORBA_InvalidPolicies), + (char *) &_oc_CORBA_InvalidPolicies, + 0, + 0 + ); + +namespace CORBA +{ + ::CORBA::TypeCode_ptr _tc_InvalidPolicies = + &_tc_TAO_tc_CORBA_InvalidPolicies; +} + +// TAO_IDL - Generated from // be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for CORBA::Policy. @@ -491,7 +488,7 @@ TAO::Objref_Traits<CORBA::Policy>::marshal ( } // Function pointer for collocation factory initialization. -TAO::Collocation_Proxy_Broker * +TAO::Collocation_Proxy_Broker * (*CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer) ( CORBA::Object_ptr obj ) = 0; @@ -510,19 +507,19 @@ CORBA::PolicyType CORBA::Policy::policy_type ( { ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this); } - + if (this->the_TAO_Policy_Proxy_Broker_ == 0) { CORBA_Policy_setup_collocation (); } - - TAO::Arg_Traits<CORBA::PolicyType>::ret_val _tao_retval; - + + TAO::Arg_Traits< CORBA::PolicyType>::ret_val _tao_retval; + TAO::Argument *_the_tao_operation_signature [] = { &_tao_retval }; - + TAO::Invocation_Adapter _tao_call ( this, _the_tao_operation_signature, @@ -531,10 +528,10 @@ CORBA::PolicyType CORBA::Policy::policy_type ( 16, this->the_TAO_Policy_Proxy_Broker_ ); - + _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (_tao_retval.excp ()); - + return _tao_retval.retn (); } @@ -552,19 +549,19 @@ CORBA::PolicyType CORBA::Policy::policy_type ( { ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this); } - + if (this->the_TAO_Policy_Proxy_Broker_ == 0) { CORBA_Policy_setup_collocation (); } - - TAO::Arg_Traits<CORBA::Policy>::ret_val _tao_retval; - + + TAO::Arg_Traits< ::CORBA::Policy>::ret_val _tao_retval; + TAO::Argument *_the_tao_operation_signature [] = { &_tao_retval }; - + TAO::Invocation_Adapter _tao_call ( this, _the_tao_operation_signature, @@ -573,10 +570,10 @@ CORBA::PolicyType CORBA::Policy::policy_type ( 4, this->the_TAO_Policy_Proxy_Broker_ ); - + _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (_tao_retval.excp ()); - + return _tao_retval.retn (); } @@ -594,19 +591,19 @@ void CORBA::Policy::destroy ( { ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this); } - + if (this->the_TAO_Policy_Proxy_Broker_ == 0) { CORBA_Policy_setup_collocation (); } - - TAO::Arg_Traits<void>::ret_val _tao_retval; - + + TAO::Arg_Traits< void>::ret_val _tao_retval; + TAO::Argument *_the_tao_operation_signature [] = { &_tao_retval }; - + TAO::Invocation_Adapter _tao_call ( this, _the_tao_operation_signature, @@ -615,7 +612,7 @@ void CORBA::Policy::destroy ( 7, this->the_TAO_Policy_Proxy_Broker_ ); - + _tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER); ACE_CHECK; } @@ -639,11 +636,11 @@ CORBA::Policy::CORBA_Policy_setup_collocation () CORBA::Policy::~Policy (void) {} -void +void CORBA::Policy::_tao_any_destructor (void *_tao_void_pointer) { Policy *_tao_tmp_pointer = - ACE_static_cast (Policy *, _tao_void_pointer); + static_cast<Policy *> (_tao_void_pointer); CORBA::release (_tao_tmp_pointer); } @@ -684,7 +681,7 @@ CORBA::Policy::_duplicate (Policy_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -767,23 +764,17 @@ TAO::Objref_Traits<CORBA::PolicyManager>::marshal ( return CORBA::Object::marshal (p, cdr); } -// Function pointer for collocation factory initialization. -TAO::Collocation_Proxy_Broker * -(*CORBA__TAO_PolicyManager_Proxy_Broker_Factory_function_pointer) ( - CORBA::Object_ptr obj - ) = 0; - CORBA::PolicyManager::PolicyManager (void) {} CORBA::PolicyManager::~PolicyManager (void) {} -void +void CORBA::PolicyManager::_tao_any_destructor (void *_tao_void_pointer) { PolicyManager *_tao_tmp_pointer = - ACE_static_cast (PolicyManager *, _tao_void_pointer); + static_cast<PolicyManager *> (_tao_void_pointer); CORBA::release (_tao_tmp_pointer); } @@ -797,10 +788,10 @@ CORBA::PolicyManager::_narrow ( { return PolicyManager::_nil (); } - + PolicyManager_ptr proxy = dynamic_cast<PolicyManager_ptr> (_tao_objref); - + return PolicyManager::_duplicate (proxy); } @@ -814,10 +805,10 @@ CORBA::PolicyManager::_unchecked_narrow ( { return PolicyManager::_nil (); } - + PolicyManager_ptr proxy = dynamic_cast<PolicyManager_ptr> (_tao_objref); - + return PolicyManager::_duplicate (proxy); } @@ -828,7 +819,7 @@ CORBA::PolicyManager::_duplicate (PolicyManager_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -912,23 +903,17 @@ TAO::Objref_Traits<CORBA::PolicyCurrent>::marshal ( return CORBA::Object::marshal (p, cdr); } -// Function pointer for collocation factory initialization. -TAO::Collocation_Proxy_Broker * -(*CORBA__TAO_PolicyCurrent_Proxy_Broker_Factory_function_pointer) ( - CORBA::Object_ptr obj - ) = 0; - CORBA::PolicyCurrent::PolicyCurrent (void) {} CORBA::PolicyCurrent::~PolicyCurrent (void) {} -void +void CORBA::PolicyCurrent::_tao_any_destructor (void *_tao_void_pointer) { PolicyCurrent *_tao_tmp_pointer = - ACE_static_cast (PolicyCurrent *, _tao_void_pointer); + static_cast<PolicyCurrent *> (_tao_void_pointer); CORBA::release (_tao_tmp_pointer); } @@ -942,10 +927,10 @@ CORBA::PolicyCurrent::_narrow ( { return PolicyCurrent::_nil (); } - + PolicyCurrent_ptr proxy = dynamic_cast<PolicyCurrent_ptr> (_tao_objref); - + return PolicyCurrent::_duplicate (proxy); } @@ -959,10 +944,10 @@ CORBA::PolicyCurrent::_unchecked_narrow ( { return PolicyCurrent::_nil (); } - + PolicyCurrent_ptr proxy = dynamic_cast<PolicyCurrent_ptr> (_tao_objref); - + return PolicyCurrent::_duplicate (proxy); } @@ -973,7 +958,7 @@ CORBA::PolicyCurrent::_duplicate (PolicyCurrent_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -1165,26 +1150,26 @@ CORBA::Boolean operator>> ( ) { CORBA::Object_var obj; - + if ((strm >> obj.inout ()) == 0) { return 0; } - + typedef ::CORBA::Policy RHS_SCOPED_NAME; - + // Narrow to the right type. _tao_objref = TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow ( obj.in (), CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer ); - + return 1; } // TAO_IDL - Generated from -// be\be_visitor_root/root.cpp:1628 +// be\be_visitor_root/root.cpp:1629 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) @@ -1221,7 +1206,7 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< CORBA::Policy >; - + template class TAO_Objref_Out_T< CORBA::Policy @@ -1241,7 +1226,7 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< CORBA::PolicyManager >; - + template class TAO_Objref_Out_T< CORBA::PolicyManager @@ -1256,7 +1241,7 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< CORBA::PolicyCurrent >; - + template class TAO_Objref_Out_T< CORBA::PolicyCurrent @@ -1283,6 +1268,12 @@ CORBA::Boolean operator>> ( #endif /* end #if !defined */ # pragma instantiate \ + TAO::Ret_Object_Argument_T< \ + CORBA::Policy_ptr, \ + CORBA::Policy_var \ + > + +# pragma instantiate \ TAO::Objref_Traits< \ CORBA::Policy \ > @@ -1291,7 +1282,7 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< \ CORBA::Policy > - + # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::Policy @@ -1311,7 +1302,7 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< \ CORBA::PolicyManager > - + # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::PolicyManager @@ -1326,10 +1317,10 @@ CORBA::Boolean operator>> ( TAO_Objref_Var_T< \ CORBA::PolicyCurrent > - + # pragma instantiate \ TAO_Objref_Out_T< \ CORBA::PolicyCurrent > -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/TAO/tao/PolicyC.h b/TAO/tao/PolicyC.h index 1d4c2b5815f..1944fad144c 100644 --- a/TAO/tao/PolicyC.h +++ b/TAO/tao/PolicyC.h @@ -26,27 +26,30 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be\be_codegen.cpp:171 +// be\be_codegen.cpp:153 #ifndef _TAO_IDL_ORIG_POLICYC_H_ #define _TAO_IDL_ORIG_POLICYC_H_ #include /**/ "ace/pre.h" -#include "tao/TAO_Export.h" + +#include "ace/config-all.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ -#include "tao/Environment.h" -#include "tao/UserException.h" +#include "tao/TAO_Export.h" +#include "tao/ORB.h" #include "tao/SystemException.h" +#include "tao/Environment.h" #include "tao/Object.h" #include "tao/Objref_VarOut_T.h" -#include "UShortSeqC.h" -#include "CurrentC.h" +#include "tao/UShortSeqC.h" +#include "tao/CurrentC.h" +#include "tao/Policy_ForwardC.h" #if defined (TAO_EXPORT_MACRO) #undef TAO_EXPORT_MACRO @@ -61,9 +64,7 @@ #endif /* TAO_EXPORT_NESTED_CLASSES */ #if defined(_MSC_VER) -#if (_MSC_VER >= 1200) #pragma warning(push) -#endif /* _MSC_VER >= 1200 */ #pragma warning(disable:4250) #endif /* _MSC_VER */ @@ -71,13 +72,13 @@ #pragma option push -w-rvl -w-rch -w-ccc -w-inl #endif /* __BORLANDC__ */ -// TAO_IDL - Generated from -// be\be_visitor_root/root_ch.cpp:63 +// TAO_IDL - Generated from +// be\be_visitor_root/root_ch.cpp:62 namespace TAO { class Collocation_Proxy_Broker; - + template<typename T> class Narrow_Utils; template<typename T> class AbstractBase_Narrow_Utils; } @@ -87,65 +88,67 @@ namespace TAO namespace CORBA { - + // TAO_IDL - Generated from // be\be_visitor_typedef/typedef_ch.cpp:342 - + typedef CORBA::Short PolicyErrorCode; typedef CORBA::Short_out PolicyErrorCode_out; - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PolicyErrorCode; - + // TAO_IDL - Generated from // be\be_visitor_constant/constant_ch.cpp:52 - + const CORBA::PolicyErrorCode BAD_POLICY = 0; - + // TAO_IDL - Generated from // be\be_visitor_constant/constant_ch.cpp:52 - + const CORBA::PolicyErrorCode UNSUPPORTED_POLICY = 1; - + // TAO_IDL - Generated from // be\be_visitor_constant/constant_ch.cpp:52 - + const CORBA::PolicyErrorCode BAD_POLICY_TYPE = 2; - + // TAO_IDL - Generated from // be\be_visitor_constant/constant_ch.cpp:52 - + const CORBA::PolicyErrorCode BAD_POLICY_VALUE = 3; - + // TAO_IDL - Generated from // be\be_visitor_constant/constant_ch.cpp:52 - + const CORBA::PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4; - + // TAO_IDL - Generated from // be\be_visitor_exception/exception_ch.cpp:51 #if !defined (_CORBA_POLICYERROR_CH_) #define _CORBA_POLICYERROR_CH_ - + class TAO_Export PolicyError : public CORBA::UserException { public: - + CORBA::PolicyErrorCode reason; PolicyError (void); PolicyError (const PolicyError &); ~PolicyError (void); PolicyError &operator= (const PolicyError &); - + static void _tao_any_destructor (void *); - + static PolicyError *_downcast (CORBA::Exception *); + static const PolicyError *_downcast (CORBA::Exception const *); + static CORBA::Exception *_alloc (void); - + virtual CORBA::Exception *_tao_duplicate (void) const; virtual void _raise (void) const; @@ -154,54 +157,56 @@ namespace CORBA TAO_OutputCDR & ACE_ENV_ARG_DECL ) const; - + virtual void _tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ); - + // TAO_IDL - Generated from // be\be_visitor_exception/exception_ctor.cpp:66 - + PolicyError ( ACE_NESTED_CLASS (CORBA, PolicyErrorCode) _tao_reason ); - + // TAO_IDL - Generated from - // be\be_visitor_exception/exception_ch.cpp:125 - + // be\be_visitor_exception/exception_ch.cpp:127 + virtual CORBA::TypeCode_ptr _type (void) const; }; - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PolicyError; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_exception/exception_ch.cpp:51 #if !defined (_CORBA_INVALIDPOLICIES_CH_) #define _CORBA_INVALIDPOLICIES_CH_ - + class TAO_Export InvalidPolicies : public CORBA::UserException { public: - + CORBA::UShortSeq indices; InvalidPolicies (void); InvalidPolicies (const InvalidPolicies &); ~InvalidPolicies (void); InvalidPolicies &operator= (const InvalidPolicies &); - + static void _tao_any_destructor (void *); - + static InvalidPolicies *_downcast (CORBA::Exception *); + static const InvalidPolicies *_downcast (CORBA::Exception const *); + static CORBA::Exception *_alloc (void); - + virtual CORBA::Exception *_tao_duplicate (void) const; virtual void _raise (void) const; @@ -210,47 +215,47 @@ namespace CORBA TAO_OutputCDR & ACE_ENV_ARG_DECL ) const; - + virtual void _tao_decode ( TAO_InputCDR & ACE_ENV_ARG_DECL ); - + // TAO_IDL - Generated from // be\be_visitor_exception/exception_ctor.cpp:66 - + InvalidPolicies ( const ACE_NESTED_CLASS (CORBA, UShortSeq) & _tao_indices ); - + // TAO_IDL - Generated from - // be\be_visitor_exception/exception_ch.cpp:125 - + // be\be_visitor_exception/exception_ch.cpp:127 + virtual CORBA::TypeCode_ptr _type (void) const; }; - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_InvalidPolicies; #endif /* end #if !defined */ - + // TAO_IDL - Generated from - // be\be_interface.cpp:611 + // be\be_interface.cpp:598 #if !defined (_CORBA_POLICY__VAR_OUT_CH_) #define _CORBA_POLICY__VAR_OUT_CH_ - + class Policy; typedef Policy *Policy_ptr; - + typedef TAO_Objref_Var_T< Policy > Policy_var; - + typedef TAO_Objref_Out_T< Policy @@ -258,13 +263,13 @@ namespace CORBA Policy_out; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:54 #if !defined (_CORBA_POLICY_CH_) #define _CORBA_POLICY_CH_ - + class TAO_Export Policy : public virtual CORBA::Object { @@ -272,65 +277,65 @@ namespace CORBA friend class TAO::Narrow_Utils<Policy>; typedef Policy_ptr _ptr_type; typedef Policy_var _var_type; - + // The static operations. static Policy_ptr _duplicate (Policy_ptr obj); - + static Policy_ptr _narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static Policy_ptr _unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static Policy_ptr _nil (void) { return (Policy_ptr)0; } - + static void _tao_any_destructor (void *); - + // TAO_IDL - Generated from // be\be_visitor_operation/operation_ch.cpp:46 - + virtual CORBA::PolicyType policy_type ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC (( CORBA::SystemException )); - + // TAO_IDL - Generated from // be\be_visitor_operation/operation_ch.cpp:46 - + virtual ::CORBA::Policy_ptr copy ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC (( CORBA::SystemException )); - + // TAO_IDL - Generated from // be\be_visitor_operation/operation_ch.cpp:46 - + virtual void destroy ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC (( CORBA::SystemException )); - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:208 - + virtual CORBA::Boolean _is_a ( const char *type_id ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual const char* _interface_repository_id (void) const; virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); @@ -344,21 +349,21 @@ namespace CORBA private: TAO::Collocation_Proxy_Broker *the_TAO_Policy_Proxy_Broker_; - + protected: // Concrete interface only. Policy (void); - + // These methods travese the inheritance tree and set the // parents piece of the given class in the right mode. virtual void CORBA_Policy_setup_collocation (void); - + // Concrete non-local interface only. Policy ( IOP::IOR *ior, TAO_ORB_Core *orb_core = 0 ); - + // Non-local interface only. Policy ( TAO_Stub *objref, @@ -366,38 +371,38 @@ namespace CORBA TAO_Abstract_ServantBase *servant = 0, TAO_ORB_Core *orb_core = 0 ); - + virtual ~Policy (void); - + private: // Private and unimplemented for concrete interfaces. Policy (const Policy &); - + void operator= (const Policy &); }; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Policy; - + // TAO_IDL - Generated from - // be\be_interface.cpp:611 + // be\be_interface.cpp:598 #if !defined (_CORBA_POLICYMANAGER__VAR_OUT_CH_) #define _CORBA_POLICYMANAGER__VAR_OUT_CH_ - + class PolicyManager; typedef PolicyManager *PolicyManager_ptr; - + typedef TAO_Objref_Var_T< PolicyManager > PolicyManager_var; - + typedef TAO_Objref_Out_T< PolicyManager @@ -405,110 +410,110 @@ namespace CORBA PolicyManager_out; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:54 #if !defined (_CORBA_POLICYMANAGER_CH_) #define _CORBA_POLICYMANAGER_CH_ - + class TAO_Export PolicyManager : public virtual CORBA::Object { public: typedef PolicyManager_ptr _ptr_type; typedef PolicyManager_var _var_type; - + // The static operations. static PolicyManager_ptr _duplicate (PolicyManager_ptr obj); - + static PolicyManager_ptr _narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static PolicyManager_ptr _unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static PolicyManager_ptr _nil (void) { return (PolicyManager_ptr)0; } - + static void _tao_any_destructor (void *); - + // TAO_IDL - Generated from // be\be_visitor_operation/operation_ch.cpp:46 - + virtual ::CORBA::PolicyList * get_policy_overrides ( - const CORBA::PolicyTypeSeq & ts + const ::CORBA::PolicyTypeSeq & ts ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC (( CORBA::SystemException )) = 0; - + // TAO_IDL - Generated from // be\be_visitor_operation/operation_ch.cpp:46 - + virtual void set_policy_overrides ( - const CORBA::PolicyList & policies, - CORBA::SetOverrideType set_add + const ::CORBA::PolicyList & policies, + ::CORBA::SetOverrideType set_add ACE_ENV_ARG_DECL_WITH_DEFAULTS ) ACE_THROW_SPEC (( - CORBA::SystemException - , CORBA::InvalidPolicies + CORBA::SystemException, + ::CORBA::InvalidPolicies )) = 0; - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:208 - + virtual CORBA::Boolean _is_a ( const char *type_id ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual const char* _interface_repository_id (void) const; virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); - + protected: // Abstract or local interface only. PolicyManager (void); - + virtual ~PolicyManager (void); - + private: // Private and unimplemented for concrete interfaces. PolicyManager (const PolicyManager &); - + void operator= (const PolicyManager &); }; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PolicyManager; - + // TAO_IDL - Generated from - // be\be_interface.cpp:611 + // be\be_interface.cpp:598 #if !defined (_CORBA_POLICYCURRENT__VAR_OUT_CH_) #define _CORBA_POLICYCURRENT__VAR_OUT_CH_ - + class PolicyCurrent; typedef PolicyCurrent *PolicyCurrent_ptr; - + typedef TAO_Objref_Var_T< PolicyCurrent > PolicyCurrent_var; - + typedef TAO_Objref_Out_T< PolicyCurrent @@ -516,70 +521,70 @@ namespace CORBA PolicyCurrent_out; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:54 #if !defined (_CORBA_POLICYCURRENT_CH_) #define _CORBA_POLICYCURRENT_CH_ - + class TAO_Export PolicyCurrent - : public virtual CORBA::PolicyManager, - public virtual CORBA::Current + : public virtual ::CORBA::PolicyManager, + public virtual ::CORBA::Current { public: typedef PolicyCurrent_ptr _ptr_type; typedef PolicyCurrent_var _var_type; - + // The static operations. static PolicyCurrent_ptr _duplicate (PolicyCurrent_ptr obj); - + static PolicyCurrent_ptr _narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static PolicyCurrent_ptr _unchecked_narrow ( CORBA::Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + static PolicyCurrent_ptr _nil (void) { return (PolicyCurrent_ptr)0; } - + static void _tao_any_destructor (void *); - + // TAO_IDL - Generated from // be\be_visitor_interface/interface_ch.cpp:208 - + virtual CORBA::Boolean _is_a ( const char *type_id ACE_ENV_ARG_DECL_WITH_DEFAULTS ); - + virtual const char* _interface_repository_id (void) const; virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); - + protected: // Abstract or local interface only. PolicyCurrent (void); - + virtual ~PolicyCurrent (void); - + private: // Private and unimplemented for concrete interfaces. PolicyCurrent (const PolicyCurrent &); - + void operator= (const PolicyCurrent &); }; #endif /* end #if !defined */ - + // TAO_IDL - Generated from // be\be_visitor_typecode/typecode_decl.cpp:44 - + TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PolicyCurrent; // TAO_IDL - Generated from @@ -607,19 +612,19 @@ namespace TAO #if !defined (_CORBA_POLICY__TRAITS_CH_) #define _CORBA_POLICY__TRAITS_CH_ - + ACE_TEMPLATE_SPECIALIZATION - struct TAO_Export Objref_Traits<CORBA::Policy> + struct TAO_Export Objref_Traits< ::CORBA::Policy> { - static CORBA::Policy_ptr duplicate ( - CORBA::Policy_ptr + static ::CORBA::Policy_ptr duplicate ( + ::CORBA::Policy_ptr ); static void release ( - CORBA::Policy_ptr + ::CORBA::Policy_ptr ); - static CORBA::Policy_ptr nil (void); + static ::CORBA::Policy_ptr nil (void); static CORBA::Boolean marshal ( - CORBA::Policy_ptr p, + ::CORBA::Policy_ptr p, TAO_OutputCDR & cdr ); }; @@ -628,19 +633,19 @@ namespace TAO #if !defined (_CORBA_POLICYMANAGER__TRAITS_CH_) #define _CORBA_POLICYMANAGER__TRAITS_CH_ - + ACE_TEMPLATE_SPECIALIZATION - struct TAO_Export Objref_Traits<CORBA::PolicyManager> + struct TAO_Export Objref_Traits< ::CORBA::PolicyManager> { - static CORBA::PolicyManager_ptr duplicate ( - CORBA::PolicyManager_ptr + static ::CORBA::PolicyManager_ptr duplicate ( + ::CORBA::PolicyManager_ptr ); static void release ( - CORBA::PolicyManager_ptr + ::CORBA::PolicyManager_ptr ); - static CORBA::PolicyManager_ptr nil (void); + static ::CORBA::PolicyManager_ptr nil (void); static CORBA::Boolean marshal ( - CORBA::PolicyManager_ptr p, + ::CORBA::PolicyManager_ptr p, TAO_OutputCDR & cdr ); }; @@ -649,19 +654,19 @@ namespace TAO #if !defined (_CORBA_POLICYCURRENT__TRAITS_CH_) #define _CORBA_POLICYCURRENT__TRAITS_CH_ - + ACE_TEMPLATE_SPECIALIZATION - struct TAO_Export Objref_Traits<CORBA::PolicyCurrent> + struct TAO_Export Objref_Traits< ::CORBA::PolicyCurrent> { - static CORBA::PolicyCurrent_ptr duplicate ( - CORBA::PolicyCurrent_ptr + static ::CORBA::PolicyCurrent_ptr duplicate ( + ::CORBA::PolicyCurrent_ptr ); static void release ( - CORBA::PolicyCurrent_ptr + ::CORBA::PolicyCurrent_ptr ); - static CORBA::PolicyCurrent_ptr nil (void); + static ::CORBA::PolicyCurrent_ptr nil (void); static CORBA::Boolean marshal ( - CORBA::PolicyCurrent_ptr p, + ::CORBA::PolicyCurrent_ptr p, TAO_OutputCDR & cdr ); }; @@ -725,13 +730,13 @@ TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::Policy_ptr ) TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Policy_ptr &); // TAO_IDL - Generated from -// be\be_codegen.cpp:978 +// be\be_codegen.cpp:961 #if defined (__ACE_INLINE__) -#include "PolicyC.i" +#include "PolicyC.inl" #endif /* defined INLINE */ -#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#if defined(_MSC_VER) #pragma warning(pop) #endif /* _MSC_VER */ @@ -742,3 +747,5 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Policy_ptr &); #include /**/ "ace/post.h" #endif /* ifndef */ + + diff --git a/TAO/tao/PolicyC.i b/TAO/tao/PolicyC.inl index 3a3e130f088..2bc9b36e2dc 100644 --- a/TAO/tao/PolicyC.i +++ b/TAO/tao/PolicyC.inl @@ -61,4 +61,3 @@ CORBA::Policy::Policy ( } #endif /* end #if !defined */ - diff --git a/TAO/tao/diffs/Policy.diff b/TAO/tao/diffs/Policy.diff index 204d31997e2..bffdb569967 100644 --- a/TAO/tao/diffs/Policy.diff +++ b/TAO/tao/diffs/Policy.diff @@ -1,5 +1,5 @@ ---- orig/PolicyC.h 2003-12-23 21:01:14.000000000 -0600 -+++ PolicyC.h 2003-12-23 21:29:08.000000000 -0600 +--- orig/PolicyC.h 2004-11-17 09:35:42.238198400 +0100 ++++ PolicyC.h 2004-11-17 09:35:50.159588800 +0100 @@ -1,6 +1,6 @@ // -*- C++ -*- // @@ -8,33 +8,7 @@ // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** // TAO and the TAO IDL Compiler have been developed by: -@@ -33,23 +33,13 @@ - - #include /**/ "ace/pre.h" - --#include "tao/ORB.h" -+#include "tao/CurrentC.h" - - #if !defined (ACE_LACKS_PRAGMA_ONCE) - # pragma once - #endif /* ACE_LACKS_PRAGMA_ONCE */ - --#include "tao/TAO_Export.h" --#include "tao/CDR.h" --#include "tao/Environment.h" --#include "tao/Object.h" --#include "tao/Sequence_T.h" --#include "tao/Objref_VarOut_T.h" --#include "tao/Seq_Var_T.h" --#include "tao/Seq_Out_T.h" -- --#include "CurrentC.h" --#include "Policy_ForwardC.h" -+#include "tao/Exception.h" - - #if defined (TAO_EXPORT_MACRO) - #undef TAO_EXPORT_MACRO -@@ -369,6 +359,15 @@ +@@ -334,6 +334,15 @@ virtual const char* _interface_repository_id (void) const; virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); @@ -50,8 +24,8 @@ private: TAO::Collocation_Proxy_Broker *the_TAO_Policy_Proxy_Broker_; ---- orig/PolicyC.i 2003-12-23 21:01:14.000000000 -0600 -+++ PolicyC.i 2003-12-23 21:29:08.000000000 -0600 +--- orig/PolicyC.cpp 2004-11-17 09:35:42.238198400 +0100 ++++ PolicyC.cpp 2004-11-17 09:55:41.000000000 +0100 @@ -1,6 +1,6 @@ // -*- C++ -*- // @@ -60,19 +34,9 @@ // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** // TAO and the TAO IDL Compiler have been developed by: ---- orig/PolicyC.cpp 2003-12-23 21:01:14.000000000 -0600 -+++ PolicyC.cpp 2003-12-23 21:29:08.000000000 -0600 -@@ -1,6 +1,6 @@ - // -*- C++ -*- - // --// $Id$ -+// $Id$ - - // **** Code generated by the The ACE ORB (TAO) IDL Compiler **** - // TAO and the TAO IDL Compiler have been developed by: -@@ -1262,6 +1262,35 @@ - - #endif /* _TAO_CDR_OP_CORBA_InvalidPolicies__tao_seq_CORBA_UShort__CPP_ */ +@@ -1118,6 +1118,34 @@ + } + } +// Hand crafted. +// @@ -102,7 +66,6 @@ +} +// **************************************************************** + -+ // TAO_IDL - Generated from - // be/be_visitor_interface/cdr_op_cs.cpp:63 + // be\be_visitor_interface/cdr_op_cs.cpp:63 diff --git a/TAO/tao/tao.mpc b/TAO/tao/tao.mpc index 85824fee3a7..baa957d28e1 100644 --- a/TAO/tao/tao.mpc +++ b/TAO/tao/tao.mpc @@ -127,6 +127,7 @@ project(TAO) : acelib, taoversion, core, tao_output, taodefaults, pidl, extra_co RequestInfo_Util.cpp ClientRequestInterceptor_Adapter.cpp PI_ForwardC.cpp + PI_ForwardA.cpp PortableInterceptorC.cpp PortableInterceptorA.cpp PICurrent.cpp |