summaryrefslogtreecommitdiff
path: root/TAO/tao/RequestInfo_Util.h
blob: c757ec4025ea7297c697170b4bd71a4f0a24a222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// -*- C++ -*-

// ===================================================================
/**
 *  @file   RequestInfo_Util.h
 *
 *  $Id$
 *
 *  @author Ossama Othman <ossama@uci.edu>
 */
// ===================================================================

#ifndef TAO_REQUEST_INFO_UTIL_H
#define TAO_REQUEST_INFO_UTIL_H

#include "ace/pre.h"

#include "corbafwd.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "DynamicC.h"

/**
 * @class TAO_RequestInfo_Util
 *
 * @brief Helper class that provides methods useful for both
 * PortableInterceptor::ClientRequestInfo and
 * PortableInterceptor::ServerRequestInfo objects.
 */
class TAO_Export TAO_RequestInfo_Util
{
public:

  /**
   * @name 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 (
    TAO_ENV_SINGLE_ARG_DECL);

  static Dynamic::ExceptionList * make_exception_list (
    TAO_ENV_SINGLE_ARG_DECL);

  static Dynamic::ContextList * make_context_list (
    TAO_ENV_SINGLE_ARG_DECL);

  static Dynamic::RequestContext * make_request_context (
    TAO_ENV_SINGLE_ARG_DECL);

  static CORBA::Any * make_any (CORBA::Boolean tk_void_any
                                TAO_ENV_ARG_DECL);
  //@}

};

#include "ace/post.h"

#endif /* TAO_REQUEST_INFO_UTIL_H */