=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / PortableServer / BD_String_SArgument_T.h
blob596afcb79f1f46103327d993a665163524ea2e39
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file BD_String_SArgument_T.h
7 * @authors Jeff Parsons, Carlos O'Ryan and Ossama Othman
8 */
9 //=============================================================================
12 #ifndef TAO_BD_STRING_SARGUMENT_T_H
13 #define TAO_BD_STRING_SARGUMENT_T_H
15 #include /**/ "ace/pre.h"
17 #include "ace/CDR_Stream.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/Argument.h"
24 #include "tao/Any_Insert_Policy_T.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace TAO
30 /**
31 * @class In_BD_String_SArgument_T
33 * @brief Template class for IN skeleton bd (w)string argument.
36 template<typename S_var,
37 size_t BOUND,
38 template <typename> class Insert_Policy>
39 class In_BD_String_SArgument_T : public InArgument
41 public:
42 In_BD_String_SArgument_T ();
44 virtual CORBA::Boolean demarshal (TAO_InputCDR &);
45 #if TAO_HAS_INTERCEPTORS == 1
46 virtual void interceptor_value (CORBA::Any *any) const;
47 #endif /* TAO_HAS_INTERCEPTORS == 1 */
48 const typename S_var::s_traits::char_type * arg () const;
50 private:
51 S_var x_;
54 /**
55 * @class Inout_BD_String_SArgument_T
57 * @brief Template class for INOUT skeleton bd (w)string argument.
60 template<typename S_var,
61 size_t BOUND,
62 template <typename> class Insert_Policy>
63 class Inout_BD_String_SArgument_T : public InoutArgument
65 public:
66 Inout_BD_String_SArgument_T ();
68 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
69 virtual CORBA::Boolean demarshal (TAO_InputCDR &);
70 #if TAO_HAS_INTERCEPTORS == 1
71 virtual void interceptor_value (CORBA::Any *any) const;
72 #endif /* TAO_HAS_INTERCEPTORS == 1 */
73 typename S_var::s_traits::char_type *& arg ();
75 private:
76 S_var x_;
79 /**
80 * @class Out_BD_String_SArgument_T
82 * @brief Template class for INOUT skeleton bd (w)string argument.
85 template<typename S_var,
86 size_t BOUND,
87 template <typename> class Insert_Policy>
88 class Out_BD_String_SArgument_T : public OutArgument
90 public:
91 Out_BD_String_SArgument_T ();
93 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
94 #if TAO_HAS_INTERCEPTORS == 1
95 virtual void interceptor_value (CORBA::Any *any) const;
96 #endif /* TAO_HAS_INTERCEPTORS == 1 */
97 typename S_var::s_traits::char_type *& arg ();
99 private:
100 S_var x_;
104 * @class Ret_BD_String_SArgument_T
106 * @brief Template class for return skeleton value of bd (w)string.
109 template<typename S_var,
110 size_t BOUND,
111 template <typename> class Insert_Policy>
112 class Ret_BD_String_SArgument_T : public RetArgument
114 public:
115 Ret_BD_String_SArgument_T ();
117 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
118 #if TAO_HAS_INTERCEPTORS == 1
119 virtual void interceptor_value (CORBA::Any *any) const;
120 #endif /* TAO_HAS_INTERCEPTORS == 1 */
121 typename S_var::s_traits::char_type *& arg ();
123 private:
124 S_var x_;
128 * @struct Basic_SArg_Traits_T
130 * @brief Template class for skeleton argument traits of bounded (w)strings.
133 template<typename T_var,
134 size_t BOUND,
135 template <typename> class Insert_Policy>
136 struct BD_String_SArg_Traits_T
138 typedef typename T_var::s_traits::char_type * ret_type;
139 typedef const typename T_var::s_traits::char_type * in_type;
140 typedef typename T_var::s_traits::char_type *& inout_type;
141 typedef typename T_var::s_traits::string_out out_type;
143 typedef In_BD_String_SArgument_T<T_var,
144 BOUND,
145 Insert_Policy> in_arg_val;
146 typedef Inout_BD_String_SArgument_T<T_var,
147 BOUND,
148 Insert_Policy> inout_arg_val;
149 typedef Out_BD_String_SArgument_T<T_var,
150 BOUND,
151 Insert_Policy> out_arg_val;
152 typedef Ret_BD_String_SArgument_T<T_var,
153 BOUND,
154 Insert_Policy> ret_val;
156 // Typedefs corresponding to return value of arg() method in both
157 // the client and server side argument class templates.
158 typedef in_type in_arg_type;
159 typedef inout_type inout_arg_type;
160 typedef inout_type out_arg_type;
161 typedef inout_type ret_arg_type;
165 TAO_END_VERSIONED_NAMESPACE_DECL
167 #if defined (__ACE_INLINE__)
168 #include "tao/PortableServer/BD_String_SArgument_T.inl"
169 #endif /* __ACE_INLINE__ */
171 #include "tao/PortableServer/BD_String_SArgument_T.cpp"
173 #include /**/ "ace/post.h"
175 #endif /* TAO_BD_STRING_SARGUMENT_T_H */