diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-14 18:52:05 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-14 18:52:05 +0000 |
commit | 163852e7ecbe20deed0c431a0e03be844afa06a8 (patch) | |
tree | 929f6f7892315bba11200511bcb1d9d641f70769 | |
parent | a214744c8c345e0c076ba53f6ec9f6a11b3c9cae (diff) | |
download | ATCD-163852e7ecbe20deed0c431a0e03be844afa06a8.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/TAO_IDL/be/be_codegen.cpp | 2 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Object_SArg_Traits.h | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 5a3d01b4c3b..67ddf434e32 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -1899,6 +1899,8 @@ TAO_CodeGen::gen_skel_arg_file_includes (TAO_OutStream * stream) this->gen_standard_include (stream, "tao/PortableServer/TypeCode_SArg_Traits.h"); + this->gen_standard_include (stream, + "tao/PortableServer/Object_SArg_Traits.h"); } void diff --git a/TAO/tao/PortableServer/Object_SArg_Traits.h b/TAO/tao/PortableServer/Object_SArg_Traits.h new file mode 100644 index 00000000000..4e22b823a9c --- /dev/null +++ b/TAO/tao/PortableServer/Object_SArg_Traits.h @@ -0,0 +1,56 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Object_SArg_Traits.h + * + * $Id$ + * + * @author Ossama Othman + */ +//============================================================================= + +#ifndef TAO_OBJECT_SARG_TRAITS_H +#define TAO_OBJECT_SARG_TRAITS_H + +#include /**/ "ace/pre.h" + +#include "tao/CORBA_methods.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/PortableServer/Object_SArgument_T.h" +#include "tao/Pseudo_VarOut_T.h" + + +namespace CORBA +{ + class Object; + typedef Object *Object_ptr; + + typedef TAO_Pseudo_Var_T<Object> Object_var; + typedef TAO_Pseudo_Out_T<Object, Object_var> Object_out; +} + +// -------------------------------------------------------------- + +namespace TAO +{ + template <typename T> class SArg_Traits; + + /// Used in generated code if CORBA::Object is an argument or + /// return type. + ACE_TEMPLATE_SPECIALIZATION + class TAO_Export SArg_Traits<CORBA::Object> + : public Object_SArg_Traits_T<CORBA::Object_ptr, + CORBA::Object_var, + CORBA::Object_out> + { + }; +} + +#include /**/ "ace/post.h" + +#endif /* TAO_OBJECT_SARG_TRAITS_H */ |