operation_details.i

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 //operation_details.i,v 1.19 2006/04/19 08:48:59 jwillemsen Exp
00004 
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 ACE_INLINE
00008 TAO_Operation_Details::TAO_Operation_Details (const char *name,
00009                                               CORBA::ULong len,
00010                                               CORBA::Boolean argument_flag,
00011                                               TAO::Argument **args,
00012                                               CORBA::ULong num,
00013                                               TAO::Exception_Data *data,
00014                                               CORBA::ULong count)
00015   : opname_ (name)
00016     , opname_len_ (len)
00017     , request_id_ (0)
00018     , argument_flag_ (argument_flag)
00019     , response_flags_ (0)
00020     , addressing_mode_ (TAO_Target_Specification::Key_Addr)
00021     , args_ (args)
00022     , num_args_ (num)
00023     , ex_data_ (data)
00024     , ex_count_ (count)
00025 #if TAO_HAS_INTERCEPTORS == 1
00026     , ft_expiration_time_ (0)
00027     , ft_retention_id_ (0)
00028 #endif /*TAO_HAS_INTERCEPTORS == 1*/
00029 {
00030 }
00031 
00032 ACE_INLINE const char*
00033 TAO_Operation_Details::opname (void) const
00034 {
00035   return this->opname_;
00036 }
00037 
00038 ACE_INLINE CORBA::ULong
00039 TAO_Operation_Details::opname_len (void) const
00040 {
00041   return this->opname_len_;
00042 }
00043 
00044 ACE_INLINE CORBA::Boolean
00045 TAO_Operation_Details::argument_flag (void) const
00046 {
00047   return this->argument_flag_;
00048 }
00049 
00050 ACE_INLINE TAO_Service_Context &
00051 TAO_Operation_Details::request_service_context (void)
00052 {
00053   return this->request_service_info_;
00054 }
00055 
00056 ACE_INLINE const TAO_Service_Context &
00057 TAO_Operation_Details::request_service_context (void) const
00058 {
00059   return this->request_service_info_;
00060 }
00061 
00062 ACE_INLINE IOP::ServiceContextList &
00063 TAO_Operation_Details::request_service_info (void)
00064 {
00065   return this->request_service_context ().service_info ();
00066 }
00067 
00068 ACE_INLINE const IOP::ServiceContextList &
00069 TAO_Operation_Details::request_service_info (void) const
00070 {
00071   return this->request_service_context ().service_info ();
00072 }
00073 
00074 ACE_INLINE TAO_Service_Context &
00075 TAO_Operation_Details::reply_service_context (void)
00076 {
00077   return this->reply_service_info_;
00078 }
00079 
00080 ACE_INLINE const TAO_Service_Context &
00081 TAO_Operation_Details::reply_service_context (void) const
00082 {
00083   return this->reply_service_info_;
00084 }
00085 
00086 ACE_INLINE IOP::ServiceContextList &
00087 TAO_Operation_Details::reply_service_info (void)
00088 {
00089   return this->reply_service_context ().service_info ();
00090 }
00091 
00092 ACE_INLINE const IOP::ServiceContextList &
00093 TAO_Operation_Details::reply_service_info (void) const
00094 {
00095   return this->reply_service_context ().service_info ();
00096 }
00097 
00098 ACE_INLINE void
00099 TAO_Operation_Details::reset_request_service_info (void)
00100 {
00101   this->request_service_context ().service_info ().length (0);
00102 }
00103 ACE_INLINE void
00104 TAO_Operation_Details::reset_reply_service_info (void)
00105 {
00106   this->reply_service_context ().service_info ().length (0);
00107 }
00108 
00109 ACE_INLINE void
00110 TAO_Operation_Details::request_id (CORBA::ULong id)
00111 {
00112   this->request_id_ = id;
00113 }
00114 
00115 ACE_INLINE CORBA::ULong
00116 TAO_Operation_Details::request_id (void) const
00117 {
00118   return this->request_id_;
00119 }
00120 
00121 ACE_INLINE void
00122 TAO_Operation_Details::response_flags (CORBA::Octet flags)
00123 {
00124   this->response_flags_ = flags;
00125 }
00126 
00127 ACE_INLINE CORBA::ULong
00128 TAO_Operation_Details::ex_count (void) const
00129 {
00130   return this->ex_count_;
00131 }
00132 
00133 ACE_INLINE TAO::Exception_Data const *
00134 TAO_Operation_Details::ex_data (void) const
00135 {
00136   return this->ex_data_;
00137 }
00138 
00139 ACE_INLINE CORBA::Octet
00140 TAO_Operation_Details::response_flags (void) const
00141 {
00142   return this->response_flags_;
00143 }
00144 
00145 ACE_INLINE TAO_Target_Specification::TAO_Target_Address
00146 TAO_Operation_Details::addressing_mode (void) const
00147 {
00148   return this->addressing_mode_;
00149 }
00150 
00151 ACE_INLINE void
00152 TAO_Operation_Details::addressing_mode (CORBA::Short mode)
00153 {
00154   if (mode == 0)
00155     this->addressing_mode_ = TAO_Target_Specification::Key_Addr;
00156   else if (mode == 1)
00157     this->addressing_mode_ = TAO_Target_Specification::Profile_Addr;
00158   else if (mode == 2)
00159     this->addressing_mode_ = TAO_Target_Specification::Reference_Addr;
00160 }
00161 
00162 ACE_INLINE TAO::Argument **
00163 TAO_Operation_Details::args (void) const
00164 {
00165   return this->args_;
00166 }
00167 
00168 ACE_INLINE CORBA::ULong
00169 TAO_Operation_Details::args_num (void) const
00170 {
00171   return this->num_args_;
00172 }
00173 
00174 #if TAO_HAS_INTERCEPTORS == 1
00175 ACE_INLINE void
00176 TAO_Operation_Details::ft_expiration_time (TimeBase::TimeT time)
00177 {
00178   this->ft_expiration_time_ = time;
00179 }
00180 
00181 ACE_INLINE TimeBase::TimeT
00182 TAO_Operation_Details::ft_expiration_time (void) const
00183 {
00184   return this->ft_expiration_time_;
00185 }
00186 
00187 ACE_INLINE void
00188 TAO_Operation_Details::ft_retention_id (CORBA::Long request_id)
00189 {
00190   this->ft_retention_id_ = request_id;
00191 }
00192 
00193 ACE_INLINE CORBA::Long
00194 TAO_Operation_Details::ft_retention_id (void) const
00195 {
00196   return this->ft_retention_id_;
00197 }
00198 #endif /*TAO_HAS_INTERCEPTORS == 1*/
00199 
00200 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 11:54:17 2006 for TAO by doxygen 1.3.6