00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TAO_SPECIAL_BASIC_ARGUMENT_T_H
00015 #define TAO_SPECIAL_BASIC_ARGUMENT_T_H
00016
00017 #include "ace/pre.h"
00018
00019 #include "tao/Argument.h"
00020
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif
00024
00025
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 namespace TAO
00029 {
00030
00031
00032
00033
00034
00035
00036 template<typename S,
00037 typename to_S,
00038 typename from_S,
00039 class Insert_Policy>
00040 class In_Special_Basic_Argument_T : public InArgument
00041 {
00042 public:
00043 In_Special_Basic_Argument_T (S const &);
00044
00045 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00046 #if TAO_HAS_INTERCEPTORS == 1
00047 virtual void interceptor_value (CORBA::Any *any) const;
00048 #endif
00049 S const & arg (void) const;
00050
00051 private:
00052 S const & x_;
00053 };
00054
00055
00056
00057
00058
00059
00060
00061 template<typename S,
00062 typename to_S,
00063 typename from_S,
00064 class Insert_Policy>
00065 class Inout_Special_Basic_Argument_T : public InoutArgument
00066 {
00067 public:
00068 Inout_Special_Basic_Argument_T (S & x);
00069
00070 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00071 virtual CORBA::Boolean demarshal (TAO_InputCDR &);
00072 #if TAO_HAS_INTERCEPTORS == 1
00073 virtual void interceptor_value (CORBA::Any *any) const;
00074 #endif
00075 S & arg (void);
00076
00077 private:
00078 S & x_;
00079 };
00080
00081
00082
00083
00084
00085
00086
00087 template<typename S,
00088 typename to_S,
00089 typename from_S,
00090 class Insert_Policy>
00091 class Out_Special_Basic_Argument_T : public OutArgument
00092 {
00093 public:
00094 Out_Special_Basic_Argument_T (S & x);
00095
00096 virtual CORBA::Boolean demarshal (TAO_InputCDR &);
00097 #if TAO_HAS_INTERCEPTORS == 1
00098 virtual void interceptor_value (CORBA::Any *any) const;
00099 #endif
00100 S & arg (void);
00101
00102 private:
00103 S & x_;
00104 };
00105
00106
00107
00108
00109
00110
00111
00112 template<typename S,
00113 typename to_S,
00114 typename from_S,
00115 class Insert_Policy>
00116 class Ret_Special_Basic_Argument_T : public RetArgument
00117 {
00118 public:
00119 Ret_Special_Basic_Argument_T (void);
00120
00121 virtual CORBA::Boolean demarshal (TAO_InputCDR &);
00122 #if TAO_HAS_INTERCEPTORS == 1
00123 virtual void interceptor_value (CORBA::Any *any) const;
00124 #endif
00125 S & arg (void);
00126
00127 S excp (void);
00128 S retn (void);
00129
00130 private:
00131 S x_;
00132 };
00133
00134
00135
00136
00137
00138
00139
00140 struct TAO_Export Special_Basic_Tag {};
00141
00142
00143
00144
00145
00146
00147
00148 template<typename T,
00149 typename to_T,
00150 typename from_T,
00151 class Insert_Policy>
00152 struct Special_Basic_Arg_Traits_T
00153 {
00154 typedef T ret_type;
00155 typedef T in_type;
00156 typedef T & inout_type;
00157 typedef T & out_type;
00158
00159 typedef In_Special_Basic_Argument_T<T,to_T,from_T,Insert_Policy> in_arg_val;
00160 typedef Inout_Special_Basic_Argument_T<T,to_T,from_T,Insert_Policy> inout_arg_val;
00161 typedef Out_Special_Basic_Argument_T<T,to_T,from_T,Insert_Policy> out_arg_val;
00162 typedef Ret_Special_Basic_Argument_T<T,to_T,from_T,Insert_Policy> ret_val;
00163
00164 typedef Special_Basic_Tag idl_tag;
00165 };
00166 }
00167
00168 TAO_END_VERSIONED_NAMESPACE_DECL
00169
00170 #if defined (__ACE_INLINE__)
00171 #include "tao/Special_Basic_Argument_T.inl"
00172 #endif
00173
00174 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00175 #include "tao/Special_Basic_Argument_T.cpp"
00176 #endif
00177
00178 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00179 #pragma implementation ("Special_Basic_Argument_T.cpp")
00180 #endif
00181
00182 #include "ace/post.h"
00183
00184 #endif