diff options
Diffstat (limited to 'TAO/tao/UB_String_Arguments.h')
-rw-r--r-- | TAO/tao/UB_String_Arguments.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/UB_String_Arguments.h b/TAO/tao/UB_String_Arguments.h new file mode 100644 index 00000000000..ca9cb31a08b --- /dev/null +++ b/TAO/tao/UB_String_Arguments.h @@ -0,0 +1,54 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file UB_String_Arguments.h + * + * $Id$ + * + * @authors Jeff Parsons and Carlos O'Ryan + */ +//============================================================================= + + +#ifndef TAO_UB_STRING_ARGUMENTS_H +#define TAO_UB_STRING_ARGUMENTS_H + +#include "ace/pre.h" +#include "tao/corbafwd.h" +#include "tao/UB_String_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 Specializatons for unbounded (w)strings. + * + */ + + template<> + class TAO_Export Arg_Traits<CORBA::Char *> + : public UB_String_Arg_Traits_T<CORBA::Char, + CORBA::String_var, + CORBA::String_out> + { + }; + + template<> + class TAO_Export Arg_Traits<CORBA::WChar *> + : public UB_String_Arg_Traits_T<CORBA::WChar, + CORBA::WString_var, + CORBA::WString_out> + { + }; +}; + +#include "ace/post.h" + +#endif /* TAO_UB_STRING_ARGUMENTS_H */ |