=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / PI / RequestInfo_Util.cpp
blobadb2c7c0597632f3db8aa4533c6191082ec4c502
1 // -*- C++ -*-
2 #include "tao/PI/RequestInfo_Util.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "tao/AnyTypeCode/TypeCode.h"
7 #include "tao/AnyTypeCode/DynamicC.h"
8 #include "tao/ORB_Constants.h"
9 #include "tao/StringSeqC.h"
10 #include "tao/SystemException.h"
11 #include "ace/CORBA_macros.h"
13 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
15 Dynamic::ParameterList *
16 TAO_RequestInfo_Util::make_parameter_list ()
18 Dynamic::ParameterList *parameter_list = 0;
19 ACE_NEW_THROW_EX (parameter_list,
20 Dynamic::ParameterList,
21 CORBA::NO_MEMORY (
22 CORBA::SystemException::_tao_minor_code (
24 ENOMEM),
25 CORBA::COMPLETED_NO));
27 // No need to do an ACE_CHECK_RETURN. The caller should do that.
29 return parameter_list;
32 Dynamic::ExceptionList *
33 TAO_RequestInfo_Util::make_exception_list ()
35 Dynamic::ExceptionList *exception_list = 0;
36 ACE_NEW_THROW_EX (exception_list,
37 Dynamic::ExceptionList,
38 CORBA::NO_MEMORY (
39 CORBA::SystemException::_tao_minor_code (
41 ENOMEM),
42 CORBA::COMPLETED_NO));
44 // No need to do an ACE_CHECK_RETURN. The caller should do that.
46 return exception_list;
49 Dynamic::ContextList *
50 TAO_RequestInfo_Util::make_context_list ()
52 Dynamic::ContextList *context_list = 0;
53 ACE_NEW_THROW_EX (context_list,
54 Dynamic::ContextList,
55 CORBA::NO_MEMORY (
56 CORBA::SystemException::_tao_minor_code (
58 ENOMEM),
59 CORBA::COMPLETED_NO));
61 // No need to do an ACE_CHECK_RETURN. The caller should do that.
63 return context_list;
66 Dynamic::RequestContext *
67 TAO_RequestInfo_Util::make_request_context ()
69 Dynamic::RequestContext *request_context = 0;
70 ACE_NEW_THROW_EX (request_context,
71 Dynamic::RequestContext,
72 CORBA::NO_MEMORY (
73 CORBA::SystemException::_tao_minor_code (
75 ENOMEM),
76 CORBA::COMPLETED_NO));
78 // No need to do an ACE_CHECK_RETURN. The caller should do that.
80 return request_context;
83 CORBA::Any *
84 TAO_RequestInfo_Util::make_any (CORBA::Boolean tk_void_any)
86 CORBA::Any *any = 0;
87 ACE_NEW_THROW_EX (any,
88 CORBA::Any,
89 CORBA::NO_MEMORY (
90 CORBA::SystemException::_tao_minor_code (
92 ENOMEM),
93 CORBA::COMPLETED_NO));
95 if (tk_void_any)
97 any->_tao_set_typecode (CORBA::_tc_void);
100 return any;
103 TAO_END_VERSIONED_NAMESPACE_DECL
105 #endif