TAO_RequestInfo_Util Class Reference

Helper class that provides methods useful for both PortableInterceptor::ClientRequestInfo and PortableInterceptor::ServerRequestInfo objects. More...

#include <RequestInfo_Util.h>

List of all members.

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.

Dynamic::ParameterList * make_parameter_list ()
Dynamic::ExceptionList * make_exception_list ()
Dynamic::ContextListmake_context_list ()
Dynamic::RequestContextmake_request_context ()
CORBA::Any * make_any (CORBA::Boolean tk_void_any)


Detailed Description

Helper class that provides methods useful for both PortableInterceptor::ClientRequestInfo and PortableInterceptor::ServerRequestInfo objects.

Definition at line 55 of file RequestInfo_Util.h.


Member Function Documentation

CORBA::Any * TAO_RequestInfo_Util::make_any CORBA::Boolean  tk_void_any  )  [static]
 

Definition at line 90 of file RequestInfo_Util.cpp.

References ACE_CHECK_RETURN, and ACE_NEW_THROW_EX.

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   ACE_CHECK_RETURN (any);
00102 
00103   if (tk_void_any)
00104     {
00105       any->_tao_set_typecode (CORBA::_tc_void);
00106     }
00107 
00108   return any;
00109 }

Dynamic::ContextList * TAO_RequestInfo_Util::make_context_list  )  [static]
 

Definition at line 56 of file RequestInfo_Util.cpp.

References ACE_NEW_THROW_EX.

00057 {
00058   Dynamic::ContextList *context_list = 0;
00059   ACE_NEW_THROW_EX (context_list,
00060                     Dynamic::ContextList,
00061                     CORBA::NO_MEMORY (
00062                       CORBA::SystemException::_tao_minor_code (
00063                         0,
00064                         ENOMEM),
00065                       CORBA::COMPLETED_NO));
00066 
00067   // No need to do an ACE_CHECK_RETURN.  The caller should do that.
00068 
00069   return context_list;
00070 }

Dynamic::ExceptionList * TAO_RequestInfo_Util::make_exception_list  )  [static]
 

Definition at line 39 of file RequestInfo_Util.cpp.

References ACE_NEW_THROW_EX.

Referenced by TAO_ClientRequestInfo::exceptions().

00040 {
00041   Dynamic::ExceptionList *exception_list = 0;
00042   ACE_NEW_THROW_EX (exception_list,
00043                     Dynamic::ExceptionList,
00044                     CORBA::NO_MEMORY (
00045                       CORBA::SystemException::_tao_minor_code (
00046                         0,
00047                         ENOMEM),
00048                       CORBA::COMPLETED_NO));
00049 
00050   // No need to do an ACE_CHECK_RETURN.  The caller should do that.
00051 
00052   return exception_list;
00053 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL Dynamic::ParameterList * TAO_RequestInfo_Util::make_parameter_list  )  [static]
 

Definition at line 22 of file RequestInfo_Util.cpp.

References ACE_NEW_THROW_EX.

Referenced by TAO_ClientRequestInfo::arguments().

00023 {
00024   Dynamic::ParameterList *parameter_list = 0;
00025   ACE_NEW_THROW_EX (parameter_list,
00026                     Dynamic::ParameterList,
00027                     CORBA::NO_MEMORY (
00028                       CORBA::SystemException::_tao_minor_code (
00029                         0,
00030                         ENOMEM),
00031                       CORBA::COMPLETED_NO));
00032 
00033   // No need to do an ACE_CHECK_RETURN.  The caller should do that.
00034 
00035   return parameter_list;
00036 }

Dynamic::RequestContext * TAO_RequestInfo_Util::make_request_context  )  [static]
 

Definition at line 73 of file RequestInfo_Util.cpp.

References ACE_NEW_THROW_EX.

00074 {
00075   Dynamic::RequestContext *request_context = 0;
00076   ACE_NEW_THROW_EX (request_context,
00077                     Dynamic::RequestContext,
00078                     CORBA::NO_MEMORY (
00079                       CORBA::SystemException::_tao_minor_code (
00080                         0,
00081                         ENOMEM),
00082                       CORBA::COMPLETED_NO));
00083 
00084   // No need to do an ACE_CHECK_RETURN.  The caller should do that.
00085 
00086   return request_context;
00087 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:52:38 2006 for TAO_PI by doxygen 1.3.6