Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / Argument.cpp
blobfab7b1d75145779cfdcc8098e58704b1452ca902
1 #include "tao/Argument.h"
2 #include "ace/OS_Memory.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
6 TAO::Argument::~Argument ()
10 CORBA::Boolean
11 TAO::Argument::marshal (TAO_OutputCDR &)
13 return true;
16 CORBA::Boolean
17 TAO::Argument::demarshal (TAO_InputCDR &)
19 return true;
22 TAO::Argument *
23 TAO::Argument::clone ()
25 return nullptr;
28 #if TAO_HAS_INTERCEPTORS == 1
30 void
31 TAO::Argument::interceptor_value (CORBA::Any *) const
35 CORBA::ParameterMode
36 TAO::InArgument::mode () const
38 return CORBA::PARAM_IN;
41 CORBA::ParameterMode
42 TAO::InoutArgument::mode () const
44 return CORBA::PARAM_INOUT;
47 CORBA::ParameterMode
48 TAO::OutArgument::mode () const
50 return CORBA::PARAM_OUT;
53 CORBA::ParameterMode
54 TAO::RetArgument::mode () const
56 return CORBA::PARAM_OUT;
59 #endif /* TAO_HAS_INTERCEPTORS */
61 TAO::Argument *
62 TAO::Void_Return_Argument::clone ()
64 TAO::Argument *clone_arg = nullptr;
65 ACE_NEW_RETURN (clone_arg,
66 Void_Return_Argument (),
67 nullptr);
68 return clone_arg;
71 TAO_END_VERSIONED_NAMESPACE_DECL