diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-10-28 18:31:01 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-10-28 18:31:01 +0000 |
commit | c20c95d4d526d887c9782960a3ff73f63c3c1c85 (patch) | |
tree | fd6ae8c3db752254802dfaafd1543974a4741e47 /TAO/tao/Basic_Arguments.h | |
parent | 3d20d6aedf2b56b86fe2a386777c7afbf1c19c93 (diff) | |
download | ATCD-c20c95d4d526d887c9782960a3ff73f63c3c1c85.tar.gz |
ChangeLogTag:Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Basic_Arguments.h')
-rw-r--r-- | TAO/tao/Basic_Arguments.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/TAO/tao/Basic_Arguments.h b/TAO/tao/Basic_Arguments.h new file mode 100644 index 00000000000..8853e382701 --- /dev/null +++ b/TAO/tao/Basic_Arguments.h @@ -0,0 +1,109 @@ +// This may look like C, but it's really -*- 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" + +namespace TAO +{ + /** + * + * @brief Specialization for void return type. + * + */ + template<> + class TAO_Export Arg_Traits<void> + { + public: + typedef void ret_type; + + typedef Argument ret_val; + + typedef Basic_Tag idl_tag; + }; + + /** + * + * @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> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::Long> + : public Basic_Arg_Traits_T<CORBA::Long> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::UShort> + : public Basic_Arg_Traits_T<CORBA::UShort> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::ULong> + : public Basic_Arg_Traits_T<CORBA::ULong> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::Float> + : public Basic_Arg_Traits_T<CORBA::Float> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::Double> + : public Basic_Arg_Traits_T<CORBA::Double> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::LongLong> + : public Basic_Arg_Traits_T<CORBA::LongLong> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::ULongLong> + : public Basic_Arg_Traits_T<CORBA::ULongLong> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::LongDouble> + : public Basic_Arg_Traits_T<CORBA::LongDouble> + { + }; +}; + +#include /**/ "ace/post.h" + +#endif /* TAO_BASIC_ARGUMENTS_H */ |