diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp')
-rw-r--r-- | TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp new file mode 100644 index 00000000000..fd989f3ebf9 --- /dev/null +++ b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp @@ -0,0 +1,132 @@ +// $Id$ + +#ifndef TAO_FIXED_ARRAY_SARGUMENT_T_CPP +#define TAO_FIXED_ARRAY_SARGUMENT_T_CPP + +#include "tao/PortableServer/Fixed_Array_SArgument_T.h" + +#if !defined (__ACE_INLINE__) +#include "tao/PortableServer/Fixed_Array_SArgument_T.inl" +#endif /* __ACE_INLINE__ */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +template<typename S_forany, + class Insert_Policy> +CORBA::Boolean +TAO::In_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::demarshal (TAO_InputCDR &cdr) +{ + S_forany tmp (this->x_); + return cdr >> tmp; +} + +#if TAO_HAS_INTERCEPTORS == 1 + +template<typename S_forany, + class Insert_Policy> +void +TAO::In_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::interceptor_value ( + CORBA::Any *any) const +{ + Insert_Policy::any_insert (any, S_forany (this->x_)); +} + +#endif /* TAO_HAS_INTERCEPTORS */ + +// =========================================================== + +template<typename S_forany, + class Insert_Policy> +CORBA::Boolean +TAO::Inout_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::marshal (TAO_OutputCDR &cdr) +{ + return cdr << S_forany (this->x_); +} + +template<typename S_forany, + class Insert_Policy> +CORBA::Boolean +TAO::Inout_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>:: +demarshal (TAO_InputCDR & cdr) +{ + S_forany tmp (this->x_); + return cdr >> tmp; +} + +#if TAO_HAS_INTERCEPTORS == 1 + +template<typename S_forany, + class Insert_Policy> +void +TAO::Inout_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::interceptor_value ( + CORBA::Any *any) const +{ + Insert_Policy::any_insert (any, S_forany (this->x_)); +} + +#endif /* TAO_HAS_INTERCEPTORS */ + +// ============================================================== + +template<typename S_forany, + class Insert_Policy> +CORBA::Boolean +TAO::Out_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::marshal (TAO_OutputCDR &cdr) +{ + return cdr << S_forany (this->x_); +} + +#if TAO_HAS_INTERCEPTORS == 1 + +template<typename S_forany, + class Insert_Policy> +void +TAO::Out_Fixed_Array_SArgument_T<S_forany, + Insert_Policy>::interceptor_value ( + CORBA::Any *any) const +{ + Insert_Policy::any_insert (any, S_forany (this->x_)); +} + +#endif /* TAO_HAS_INTERCEPTORS */ + +// ============================================================ + +template<typename S_var, + typename S_forany, + class Insert_Policy> +CORBA::Boolean +TAO::Ret_Fixed_Array_SArgument_T<S_var, + S_forany, + Insert_Policy>::marshal ( + TAO_OutputCDR & cdr + ) +{ + return cdr << S_forany (this->x_.inout ()); +} + +#if TAO_HAS_INTERCEPTORS == 1 + +template<typename S_var, + typename S_forany, + class Insert_Policy> +void +TAO::Ret_Fixed_Array_SArgument_T<S_var, + S_forany, + Insert_Policy>::interceptor_value ( + CORBA::Any *any) const +{ + Insert_Policy::any_insert (any, S_forany (this->x_.ptr ())); +} + +#endif /* TAO_HAS_INTERCEPTORS */ + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_FIXED_ARRAY_SARGUMENT_T_CPP */ |