summaryrefslogtreecommitdiff
path: root/TAO/tao/DynamicInterface/DII_Arguments.h
blob: cf681244b445e79e9c9e4cb0055b8c0a2999386d (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// This may look like C, but it's really -*- C++ -*-

//=============================================================================
/**
 *  @file    DII_Arguments.h
 *
 *  $Id$
 *
 *  @author Jeff Parsons <j.parsons@vanderbilt.edu>
 */
//=============================================================================

#ifndef TAO_DII_ARGUMENTS_H
#define TAO_DII_ARGUMENTS_H

#include /**/ "ace/pre.h"

#include "tao/Argument.h"

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

namespace CORBA
{
  class NamedValue;
  typedef NamedValue *NamedValue_ptr;

  class NVList;
  typedef NVList *NVList_ptr;
}

namespace Dynamic
{
  class ParameterList;
}

namespace TAO
{
  /**
   * @class NamedValue_Argument
   *
   * @brief Class for the return value of a CORBA::(Server)Request.
   */
  class NamedValue_Argument : public RetArgument
  {
  public:
    NamedValue_Argument (CORBA::NamedValue_ptr);

    virtual CORBA::Boolean demarshal (TAO_InputCDR &);

    virtual void interceptor_value (CORBA::Any *any) const;

    int byte_order (void) const;

  private:
    CORBA::NamedValue_ptr x_;

    /// Byte order that the Request class will use
    int byte_order_;
  };

  /**
   * @class NVList_Argument
   *
   * @brief Class for the argument list of a CORBA::(Server)Request.
   */
  class NVList_Argument : public InArgument
  {
  public:
    NVList_Argument (CORBA::NVList_ptr,
                     bool lazy_eval);

    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);

    virtual CORBA::Boolean demarshal (TAO_InputCDR &);

    // Not an override of a base class method, but a new one that
    // deals with the argument list as a whole.
    void interceptor_paramlist (Dynamic::ParameterList *);

  private:
    CORBA::NVList_ptr x_;

    bool lazy_evaluation_;
  };
}

#if defined (__ACE_INLINE__)
# include "DII_Arguments.inl"
#endif /* __ACE_INLINE__ */

#include /**/ "ace/post.h"

#endif /* TAO_DII_ARGUMENTS_H */