Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / SUpcall_commands.cpp
blobbcda45a67503463a47ecc3e6d6d7a9035d9329e2
1 // -*- C++ -*-
2 #include "tao/PortableServer/SUpcall_commands.h"
4 #include "tao/AnyTypeCode/TypeCode.h"
5 #include "tao/AnyTypeCode/DynamicC.h"
7 #include "tao/PortableServer/Servant_Base.h"
8 #include "tao/PortableServer/SArg_Traits_T.h"
9 #include "tao/PortableServer/Basic_SArguments.h"
10 #include "tao/PortableServer/Special_Basic_SArguments.h"
11 #include "tao/PortableServer/Fixed_Size_SArgument_T.h"
12 #include "tao/PortableServer/Var_Size_SArgument_T.h"
13 #include "tao/PortableServer/Object_SArg_Traits.h"
14 #include "tao/PortableServer/UB_String_SArguments.h"
15 #include "tao/PortableServer/get_arg.h"
16 #include "tao/Object.h"
18 void
19 _is_a_thru_poa_Upcall_Command::execute ()
21 TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
22 TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> (
23 this->operation_details_,
24 this->args_);
26 TAO::SArg_Traits< char *>::in_arg_type arg_1 =
27 TAO::Portable_Server::get_in_arg< char *> (
28 this->operation_details_,
29 this->args_,
30 1);
32 retval =
33 this->servant_-> _is_a (
34 arg_1);
37 void
38 _is_a_Upcall_Command::execute ()
40 TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
41 static_cast<TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val *> (this->args_[0])->arg ();
43 TAO::SArg_Traits< char *>::in_arg_type arg_1 =
44 static_cast<TAO::SArg_Traits< char *>::in_arg_val *> (this->args_[1])->arg ();
46 retval =
47 this->servant_-> _is_a (
48 arg_1);
51 #if (TAO_HAS_MINIMUM_CORBA == 0)
52 void
53 _non_existent_thru_poa_Upcall_Command::execute ()
55 TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
56 TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> (
57 this->operation_details_,
58 this->args_);
60 retval =
61 this->servant_-> _non_existent ();
64 void
65 _non_existent_Upcall_Command::execute ()
67 TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
68 static_cast<TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val *> (this->args_[0])->arg ();
70 retval =
71 this->servant_-> _non_existent ();
75 # if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
76 void
77 _get_component_thru_poa_Upcall_Command::execute ()
79 TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval =
80 TAO::Portable_Server::get_ret_arg< ::CORBA::Object> (
81 this->operation_details_,
82 this->args_);
84 retval =
85 this->servant_-> _get_component ();
88 void
89 _get_component_Upcall_Command::execute ()
91 TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval =
92 static_cast<TAO::SArg_Traits< ::CORBA::Object>::ret_val *> (this->args_[0])->arg ();
94 retval =
95 this->servant_-> _get_component ();
98 # endif /* !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */
101 void
102 _repository_id_thru_poa_Upcall_Command::execute ()
104 TAO::SArg_Traits< char *>::ret_arg_type retval =
105 TAO::Portable_Server::get_ret_arg< char *> (
106 this->operation_details_,
107 this->args_);
109 retval =
110 this->servant_-> _repository_id ();
113 void
114 _repository_id_Upcall_Command::execute( )
116 TAO::SArg_Traits< char *>::ret_arg_type retval =
117 static_cast<TAO::SArg_Traits< char *>::ret_val *> (this->args_[0])->arg ();
119 retval =
120 this->servant_-> _repository_id ();
122 #endif /* TAO_HAS_MINIMUM_CORBA */