summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Basic_SArgument_T.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-08-19 08:02:52 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-08-19 08:02:52 +0000
commit7f61ed4f18c496890fbdf75300b1135d6911d9aa (patch)
tree384c03f0891bbd738983cd5477ac803253f7aaee /TAO/tao/PortableServer/Basic_SArgument_T.cpp
parenta2e27000b6545e6b410ca3960af80605df18fd7a (diff)
downloadATCD-7f61ed4f18c496890fbdf75300b1135d6911d9aa.tar.gz
ChangeLogTag Fri Aug 19 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PortableServer/Basic_SArgument_T.cpp')
-rw-r--r--TAO/tao/PortableServer/Basic_SArgument_T.cpp48
1 files changed, 22 insertions, 26 deletions
diff --git a/TAO/tao/PortableServer/Basic_SArgument_T.cpp b/TAO/tao/PortableServer/Basic_SArgument_T.cpp
index 79301cfb9aa..a6fe3ead5f4 100644
--- a/TAO/tao/PortableServer/Basic_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Basic_SArgument_T.cpp
@@ -4,97 +4,93 @@
#define TAO_BASIC_SARGUMENT_T_CPP
#include "tao/PortableServer/Basic_SArgument_T.h"
-#include "tao/Dynamic_ParameterC.h"
#if !defined (__ACE_INLINE__)
#include "tao/PortableServer/Basic_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-template<typename S>
+template<typename S, typename Insert_Policy>
CORBA::Boolean
-TAO::In_Basic_SArgument_T<S>::demarshal (TAO_InputCDR &cdr)
+TAO::In_Basic_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR &cdr)
{
return cdr >> this->x_;
}
#if TAO_HAS_INTERCEPTORS == 1
-template<typename S>
+template<typename S, typename Insert_Policy>
void
-TAO::In_Basic_SArgument_T<S>::interceptor_param (Dynamic::Parameter & p)
+TAO::In_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
{
- p.argument <<= this->x_;
- p.mode = CORBA::PARAM_IN;
+ this->Insert_Policy::any_insert (any, this->x_);
}
#endif /* TAO_HAS_INTERCEPTORS */
// ===========================================================
-template<typename S>
+template<typename S, typename Insert_Policy>
CORBA::Boolean
-TAO::Inout_Basic_SArgument_T<S>::marshal (TAO_OutputCDR & cdr)
+TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
{
return cdr << this->x_;
}
-template<typename S>
+template<typename S, typename Insert_Policy>
CORBA::Boolean
-TAO::Inout_Basic_SArgument_T<S>::demarshal (TAO_InputCDR & cdr)
+TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
{
return cdr >> this->x_;
}
#if TAO_HAS_INTERCEPTORS == 1
-template<typename S>
+template<typename S, typename Insert_Policy>
void
-TAO::Inout_Basic_SArgument_T<S>::interceptor_param (Dynamic::Parameter & p)
+TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
{
- p.argument <<= this->x_;
- p.mode = CORBA::PARAM_INOUT;
+ this->Insert_Policy::any_insert (any, this->x_);
}
#endif /* TAO_HAS_INTERCEPTORS */
// ==============================================================
-template<typename S>
+template<typename S, typename Insert_Policy>
CORBA::Boolean
-TAO::Out_Basic_SArgument_T<S>::marshal (TAO_OutputCDR &cdr)
+TAO::Out_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
{
return cdr << this->x_;
}
#if TAO_HAS_INTERCEPTORS == 1
-template<typename S>
+template<typename S, typename Insert_Policy>
void
-TAO::Out_Basic_SArgument_T<S>::interceptor_param (Dynamic::Parameter & p)
+TAO::Out_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
{
- p.argument <<= this->x_;
- p.mode = CORBA::PARAM_OUT;
+ this->Insert_Policy::any_insert (any, this->x_);
}
#endif /* TAO_HAS_INTERCEPTORS */
// ============================================================
-template<typename S>
+template<typename S, typename Insert_Policy>
CORBA::Boolean
-TAO::Ret_Basic_SArgument_T<S>::marshal (TAO_OutputCDR & cdr)
+TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
{
return cdr << this->x_;
}
#if TAO_HAS_INTERCEPTORS == 1
-template<typename S>
+template<typename S, typename Insert_Policy>
void
-TAO::Ret_Basic_SArgument_T<S>::interceptor_result (CORBA::Any * any)
+TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
{
- (*any) <<= this->x_;
+ this->Insert_Policy::any_insert (any, this->x_);
}
#endif /* TAO_HAS_INTERCEPTORS */