Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Special_Basic_SArguments.h
blob46b71665421be7cf2a5aadfa6b6c6cd5474c64f4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Special_Basic_SArguments.h
7 * @author Jeff Parsons
8 * @author Carlos O'Ryan
9 */
10 //=============================================================================
13 #ifndef TAO_SPECIAL_BASIC_SARGUMENTS_H
14 #define TAO_SPECIAL_BASIC_SARGUMENTS_H
16 #include /**/ "ace/pre.h"
18 #include "tao/PortableServer/portableserver_export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/PortableServer/Special_Basic_SArgument_T.h"
25 #include "tao/PortableServer/SArg_Traits_T.h"
26 #include "tao/Any_Insert_Policy_T.h"
28 #include "ace/CDR_Stream.h"
30 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
32 namespace TAO
34 /**
36 * @brief Specializations for (w)char, octet and boolean.
40 template<>
41 class TAO_PortableServer_Export SArg_Traits<ACE_InputCDR::to_char>
42 : public Special_Basic_SArg_Traits_T<CORBA::Char,
43 ACE_InputCDR::to_char,
44 ACE_OutputCDR::from_char,
45 TAO::Any_Insert_Policy_Stream>
49 template<>
50 class TAO_PortableServer_Export SArg_Traits<ACE_InputCDR::to_wchar>
51 : public Special_Basic_SArg_Traits_T<CORBA::WChar,
52 ACE_InputCDR::to_wchar,
53 ACE_OutputCDR::from_wchar,
54 TAO::Any_Insert_Policy_Stream>
58 template<>
59 class TAO_PortableServer_Export SArg_Traits<ACE_InputCDR::to_octet>
60 : public Special_Basic_SArg_Traits_T<CORBA::Octet,
61 ACE_InputCDR::to_octet,
62 ACE_OutputCDR::from_octet,
63 TAO::Any_Insert_Policy_Stream>
67 template<>
68 class TAO_PortableServer_Export SArg_Traits<ACE_InputCDR::to_boolean>
69 : public Special_Basic_SArg_Traits_T<CORBA::Boolean,
70 ACE_InputCDR::to_boolean,
71 ACE_OutputCDR::from_boolean,
72 TAO::Any_Insert_Policy_Stream>
78 TAO_END_VERSIONED_NAMESPACE_DECL
80 #include /**/ "ace/post.h"
82 #endif /* TAO_SPECIAL_BASIC_SARGUMENTS_H */