#include <RequestInfo_Util.h>
Static Public Member Functions | |
Factory Methods | |
These are methods called by TAO_{Client,Server}RequestInfo and their subclasses. Rather than having the same factory code in each subclass, we factor the common code in to this utility class. | |
static Dynamic::ParameterList * | make_parameter_list (void) |
static Dynamic::ExceptionList * | make_exception_list (void) |
static Dynamic::ContextList * | make_context_list (void) |
static Dynamic::RequestContext * | make_request_context (void) |
static CORBA::Any * | make_any (CORBA::Boolean tk_void_any) |
Definition at line 53 of file RequestInfo_Util.h.
CORBA::Any * TAO_RequestInfo_Util::make_any | ( | CORBA::Boolean | tk_void_any | ) | [static] |
Definition at line 91 of file RequestInfo_Util.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, and CORBA::COMPLETED_NO.
Referenced by TAO_ClientRequestInfo::result().
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 }
Dynamic::ContextList * TAO_RequestInfo_Util::make_context_list | ( | void | ) | [static] |
Definition at line 57 of file RequestInfo_Util.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, and CORBA::COMPLETED_NO.
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 // No need to do an ACE_CHECK_RETURN. The caller should do that. 00069 00070 return context_list; 00071 }
Dynamic::ExceptionList * TAO_RequestInfo_Util::make_exception_list | ( | void | ) | [static] |
Definition at line 40 of file RequestInfo_Util.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, and CORBA::COMPLETED_NO.
Referenced by TAO_ClientRequestInfo::exceptions().
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 // No need to do an ACE_CHECK_RETURN. The caller should do that. 00052 00053 return exception_list; 00054 }
TAO_BEGIN_VERSIONED_NAMESPACE_DECL Dynamic::ParameterList * TAO_RequestInfo_Util::make_parameter_list | ( | void | ) | [static] |
Definition at line 23 of file RequestInfo_Util.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, and CORBA::COMPLETED_NO.
Referenced by TAO_ClientRequestInfo::arguments().
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 // No need to do an ACE_CHECK_RETURN. The caller should do that. 00035 00036 return parameter_list; 00037 }
Dynamic::RequestContext * TAO_RequestInfo_Util::make_request_context | ( | void | ) | [static] |
Definition at line 74 of file RequestInfo_Util.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, and CORBA::COMPLETED_NO.
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 // No need to do an ACE_CHECK_RETURN. The caller should do that. 00086 00087 return request_context; 00088 }