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.

static Dynamic::ParameterList * make_parameter_list (void)
static Dynamic::ExceptionList * make_exception_list (void)
static Dynamic::ContextListmake_context_list (void)
static Dynamic::RequestContextmake_request_context (void)
static CORBA::Anymake_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 53 of file RequestInfo_Util.h.


Member Function Documentation

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

Definition at line 91 of file RequestInfo_Util.cpp.

{
  CORBA::Any *any = 0;
  ACE_NEW_THROW_EX (any,
                    CORBA::Any,
                    CORBA::NO_MEMORY (
                      CORBA::SystemException::_tao_minor_code (
                        0,
                        ENOMEM),
                      CORBA::COMPLETED_NO));

  if (tk_void_any)
    {
      any->_tao_set_typecode (CORBA::_tc_void);
    }

  return any;
}

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

Definition at line 57 of file RequestInfo_Util.cpp.

{
  Dynamic::ContextList *context_list = 0;
  ACE_NEW_THROW_EX (context_list,
                    Dynamic::ContextList,
                    CORBA::NO_MEMORY (
                      CORBA::SystemException::_tao_minor_code (
                        0,
                        ENOMEM),
                      CORBA::COMPLETED_NO));

  // No need to do an ACE_CHECK_RETURN.  The caller should do that.

  return context_list;
}

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

Definition at line 40 of file RequestInfo_Util.cpp.

{
  Dynamic::ExceptionList *exception_list = 0;
  ACE_NEW_THROW_EX (exception_list,
                    Dynamic::ExceptionList,
                    CORBA::NO_MEMORY (
                      CORBA::SystemException::_tao_minor_code (
                        0,
                        ENOMEM),
                      CORBA::COMPLETED_NO));

  // No need to do an ACE_CHECK_RETURN.  The caller should do that.

  return exception_list;
}

Dynamic::ParameterList * TAO_RequestInfo_Util::make_parameter_list ( void   )  [static]

Definition at line 23 of file RequestInfo_Util.cpp.

{
  Dynamic::ParameterList *parameter_list = 0;
  ACE_NEW_THROW_EX (parameter_list,
                    Dynamic::ParameterList,
                    CORBA::NO_MEMORY (
                      CORBA::SystemException::_tao_minor_code (
                        0,
                        ENOMEM),
                      CORBA::COMPLETED_NO));

  // No need to do an ACE_CHECK_RETURN.  The caller should do that.

  return parameter_list;
}

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

Definition at line 74 of file RequestInfo_Util.cpp.

{
  Dynamic::RequestContext *request_context = 0;
  ACE_NEW_THROW_EX (request_context,
                    Dynamic::RequestContext,
                    CORBA::NO_MEMORY (
                      CORBA::SystemException::_tao_minor_code (
                        0,
                        ENOMEM),
                      CORBA::COMPLETED_NO));

  // No need to do an ACE_CHECK_RETURN.  The caller should do that.

  return request_context;
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines