summaryrefslogtreecommitdiff
path: root/tao/Basic_Arguments.h
blob: 0dcb6a5722ab3f2c8122c89438bfe7df79dd1f79 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// -*- C++ -*-

//=============================================================================
/**
 *  @file    Basic_Arguments.h
 *
 *  $Id$
 *
 *  @authors Jeff Parsons and Carlos O'Ryan
 */
//=============================================================================

#ifndef TAO_BASIC_ARGUMENTS_H
#define TAO_BASIC_ARGUMENTS_H

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

#include "tao/Basic_Argument_T.h"

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

#include "tao/Arg_Traits_T.h"
#include "tao/Any_Insert_Policy_T.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  /**
   *
   * @brief Specialization for void return type.
   *
   */
  template<>
  class TAO_Export Arg_Traits<void>
  {
    public:
    typedef void        ret_type;

    typedef RetArgument ret_val;
    typedef Void_Return_Argument
                        clonable_ret_val;
  };

  /**
   *
   * @brief Specializations for basic stub arg types,
   *  except (w)char/boolean/octet.
   *
   */

  template<>
  class TAO_Export Arg_Traits<CORBA::Short>
    : public
        Basic_Arg_Traits_T<
          CORBA::Short,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::Long>
    : public
        Basic_Arg_Traits_T<
          CORBA::Long,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::UShort>
    : public
        Basic_Arg_Traits_T<
          CORBA::UShort,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::ULong>
    : public
        Basic_Arg_Traits_T<
          CORBA::ULong,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::Float>
    : public
        Basic_Arg_Traits_T<
          CORBA::Float,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::Double>
    : public
        Basic_Arg_Traits_T<
          CORBA::Double,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::LongLong>
    : public
        Basic_Arg_Traits_T<
          CORBA::LongLong,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::ULongLong>
    : public
        Basic_Arg_Traits_T<
          CORBA::ULongLong,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };

  template<>
  class TAO_Export Arg_Traits<CORBA::LongDouble>
    : public
        Basic_Arg_Traits_T<
          CORBA::LongDouble,
          TAO::Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };
  
  template<>
  class TAO_Export Arg_Traits<std::string>
    : public
        Basic_Arg_Traits_T <
          std::string,
          Any_Insert_Policy_AnyTypeCode_Adapter>
  {
  };
}

TAO_END_VERSIONED_NAMESPACE_DECL

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

#endif /* TAO_BASIC_ARGUMENTS_H */