Go to the documentation of this file.00001
00002
00003
00004
00005 #include "tao/PI/RequestInfo_Util.h"
00006
00007 #if TAO_HAS_INTERCEPTORS == 1
00008
00009 #include "tao/AnyTypeCode/TypeCode.h"
00010 #include "tao/AnyTypeCode/DynamicC.h"
00011 #include "tao/ORB_Constants.h"
00012 #include "tao/StringSeqC.h"
00013 #include "tao/SystemException.h"
00014 #include "ace/CORBA_macros.h"
00015
00016 ACE_RCSID (tao,
00017 RequestInfo_Util,
00018 "$Id: RequestInfo_Util.cpp 77151 2007-02-15 13:24:41Z johnnyw $")
00019
00020 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00021
00022 Dynamic::ParameterList *
00023 TAO_RequestInfo_Util::make_parameter_list (void)
00024 {
00025 Dynamic::ParameterList *parameter_list = 0;
00026 ACE_NEW_THROW_EX (parameter_list,
00027 Dynamic::ParameterList,
00028 CORBA::NO_MEMORY (
00029 CORBA::SystemException::_tao_minor_code (
00030 0,
00031 ENOMEM),
00032 CORBA::COMPLETED_NO));
00033
00034
00035
00036 return parameter_list;
00037 }
00038
00039 Dynamic::ExceptionList *
00040 TAO_RequestInfo_Util::make_exception_list (void)
00041 {
00042 Dynamic::ExceptionList *exception_list = 0;
00043 ACE_NEW_THROW_EX (exception_list,
00044 Dynamic::ExceptionList,
00045 CORBA::NO_MEMORY (
00046 CORBA::SystemException::_tao_minor_code (
00047 0,
00048 ENOMEM),
00049 CORBA::COMPLETED_NO));
00050
00051
00052
00053 return exception_list;
00054 }
00055
00056 Dynamic::ContextList *
00057 TAO_RequestInfo_Util::make_context_list (void)
00058 {
00059 Dynamic::ContextList *context_list = 0;
00060 ACE_NEW_THROW_EX (context_list,
00061 Dynamic::ContextList,
00062 CORBA::NO_MEMORY (
00063 CORBA::SystemException::_tao_minor_code (
00064 0,
00065 ENOMEM),
00066 CORBA::COMPLETED_NO));
00067
00068
00069
00070 return context_list;
00071 }
00072
00073 Dynamic::RequestContext *
00074 TAO_RequestInfo_Util::make_request_context (void)
00075 {
00076 Dynamic::RequestContext *request_context = 0;
00077 ACE_NEW_THROW_EX (request_context,
00078 Dynamic::RequestContext,
00079 CORBA::NO_MEMORY (
00080 CORBA::SystemException::_tao_minor_code (
00081 0,
00082 ENOMEM),
00083 CORBA::COMPLETED_NO));
00084
00085
00086
00087 return request_context;
00088 }
00089
00090 CORBA::Any *
00091 TAO_RequestInfo_Util::make_any (CORBA::Boolean tk_void_any)
00092 {
00093 CORBA::Any *any = 0;
00094 ACE_NEW_THROW_EX (any,
00095 CORBA::Any,
00096 CORBA::NO_MEMORY (
00097 CORBA::SystemException::_tao_minor_code (
00098 0,
00099 ENOMEM),
00100 CORBA::COMPLETED_NO));
00101
00102 if (tk_void_any)
00103 {
00104 any->_tao_set_typecode (CORBA::_tc_void);
00105 }
00106
00107 return any;
00108 }
00109
00110 TAO_END_VERSIONED_NAMESPACE_DECL
00111
00112 #endif