Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / params.inl
blob2d5dcd6632cc2c61998044485b959ea44f2c128c
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE int
5 TAO_ORB_Parameters::sock_rcvbuf_size () const
7   return sock_rcvbuf_size_;
10 ACE_INLINE void
11 TAO_ORB_Parameters::sock_rcvbuf_size (int s)
13   sock_rcvbuf_size_ = s;
16 ACE_INLINE int
17 TAO_ORB_Parameters::sock_sndbuf_size () const
19   return sock_sndbuf_size_;
22 ACE_INLINE void
23 TAO_ORB_Parameters::sock_sndbuf_size (int s)
25   sock_sndbuf_size_ = s;
28 ACE_INLINE int
29 TAO_ORB_Parameters::cdr_memcpy_tradeoff () const
31   return this->cdr_memcpy_tradeoff_;
34 ACE_INLINE void
35 TAO_ORB_Parameters::cdr_memcpy_tradeoff (int x)
37   this->cdr_memcpy_tradeoff_ = x;
40 ACE_INLINE ACE_CDR::ULong
41 TAO_ORB_Parameters::max_message_size () const
43   return this->max_message_size_;
46 ACE_INLINE void
47 TAO_ORB_Parameters::max_message_size (ACE_CDR::ULong size)
49   this->max_message_size_ = size;
52 ACE_INLINE int
53 TAO_ORB_Parameters::use_dotted_decimal_addresses () const
55   return this->use_dotted_decimal_addresses_;
58 ACE_INLINE void
59 TAO_ORB_Parameters::use_dotted_decimal_addresses (int x)
61   this->use_dotted_decimal_addresses_ = x;
64 ACE_INLINE int
65 TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address () const
67   return this->cache_incoming_by_dotted_decimal_address_;
70 ACE_INLINE void
71 TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address (int x)
73   this->cache_incoming_by_dotted_decimal_address_ = x;
76 ACE_INLINE int
77 TAO_ORB_Parameters::linger () const
79   return this->linger_;
82 ACE_INLINE void
83 TAO_ORB_Parameters::linger (int x)
85   this->linger_ = x;
89 ACE_INLINE time_t
90 TAO_ORB_Parameters::accept_error_delay () const
92   return this->accept_error_delay_;
95 ACE_INLINE void
96 TAO_ORB_Parameters::accept_error_delay (time_t x)
98   this->accept_error_delay_ = x;
102 ACE_INLINE void
103 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id,
104                                   CORBA::UShort port)
106   this->service_port_[service_id] = port;
109 ACE_INLINE CORBA::UShort
110 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id) const
112   return this->service_port_[service_id];
115 ACE_INLINE void
116 TAO_ORB_Parameters::mcast_discovery_endpoint (const char *mde)
118   this->mcast_discovery_endpoint_ = CORBA::string_dup (mde);
121 ACE_INLINE const char *
122 TAO_ORB_Parameters::mcast_discovery_endpoint () const
124   return this->mcast_discovery_endpoint_.in ();
127 ACE_INLINE void
128 TAO_ORB_Parameters::default_init_ref (const char *default_init_ref)
130   this->default_init_ref_ = default_init_ref;
133 ACE_INLINE char *
134 TAO_ORB_Parameters::default_init_ref () const
136   return CORBA::string_dup (this->default_init_ref_.c_str ());
139 ACE_INLINE bool
140 TAO_ORB_Parameters::std_profile_components () const
142   return this->std_profile_components_;
145 ACE_INLINE void
146 TAO_ORB_Parameters::std_profile_components (bool x)
148   this->std_profile_components_ = x;
151 ACE_INLINE int
152 TAO_ORB_Parameters::nodelay () const
154   return this->nodelay_;
157 ACE_INLINE void
158 TAO_ORB_Parameters::nodelay (int x)
160   this->nodelay_ = x;
163 ACE_INLINE int
164 TAO_ORB_Parameters::sock_keepalive ()
166   return this->sock_keepalive_;
169 ACE_INLINE void
170 TAO_ORB_Parameters::sock_keepalive (int x)
172   this->sock_keepalive_ = x;
175 ACE_INLINE int
176 TAO_ORB_Parameters::sock_dontroute ()
178   return this->sock_dontroute_;
181 ACE_INLINE void
182 TAO_ORB_Parameters::sock_dontroute (int x)
184   this->sock_dontroute_ = x;
187 ACE_INLINE int
188 TAO_ORB_Parameters::ip_hoplimit ()
190   return this->ip_hoplimit_;
193 ACE_INLINE void
194 TAO_ORB_Parameters::ip_hoplimit (int x)
196   this->ip_hoplimit_ = x;
199 ACE_INLINE bool
200 TAO_ORB_Parameters::ip_multicastloop ()
202   return this->ip_multicastloop_;
205 ACE_INLINE void
206 TAO_ORB_Parameters::ip_multicastloop (bool x)
208   this->ip_multicastloop_ = x;
211 ACE_INLINE u_short
212 TAO_ORB_Parameters::iiop_client_port_base ()
214   return this->iiop_client_port_base_;
217 ACE_INLINE void
218 TAO_ORB_Parameters::iiop_client_port_base (u_short b)
220   this->iiop_client_port_base_ = b;
223 ACE_INLINE u_short
224 TAO_ORB_Parameters::iiop_client_port_span ()
226   return this->iiop_client_port_base_ ?
227     this->iiop_client_port_span_ : 0;
230 ACE_INLINE void
231 TAO_ORB_Parameters::iiop_client_port_span (u_short s)
233   this->iiop_client_port_span_ = s;
236 ACE_INLINE int
237 TAO_ORB_Parameters::ace_sched_policy () const
239   return this->ace_sched_policy_;
242 ACE_INLINE void
243 TAO_ORB_Parameters::ace_sched_policy (int x)
245   this->ace_sched_policy_ = x;
248 ACE_INLINE long
249 TAO_ORB_Parameters::sched_policy () const
251   return this->sched_policy_;
254 ACE_INLINE void
255 TAO_ORB_Parameters::sched_policy (long x)
257   this->sched_policy_ = x;
260 ACE_INLINE long
261 TAO_ORB_Parameters::scope_policy () const
263   return this->scope_policy_;
266 ACE_INLINE void
267 TAO_ORB_Parameters::scope_policy (long x)
269   this->scope_policy_ = x;
272 ACE_INLINE long
273 TAO_ORB_Parameters::thread_creation_flags () const
275   return
276     this->scope_policy () |
277     this->sched_policy ();
280 ACE_INLINE int
281 TAO_ORB_Parameters::single_read_optimization () const
283   return this->single_read_optimization_;
286 ACE_INLINE void
287 TAO_ORB_Parameters::single_read_optimization (int x)
289   this->single_read_optimization_ = x;
292 ACE_INLINE bool
293 TAO_ORB_Parameters::use_parallel_connects () const
295   return this->use_parallel_connects_;
298 ACE_INLINE void
299 TAO_ORB_Parameters::use_parallel_connects (bool x)
301   this->use_parallel_connects_ = x;
304 ACE_INLINE unsigned long
305 TAO_ORB_Parameters::parallel_connect_delay () const
307   return this->parallel_connect_delay_;
310 ACE_INLINE void
311 TAO_ORB_Parameters::parallel_connect_delay (unsigned long x)
313   this->parallel_connect_delay_ = x;
316 ACE_INLINE int
317 TAO_ORB_Parameters::shared_profile () const
319   return this->shared_profile_;
322 ACE_INLINE void
323 TAO_ORB_Parameters::shared_profile (int x)
325   this->shared_profile_ = x;
328 ACE_INLINE bool
329 TAO_ORB_Parameters::disable_rt_collocation_resolver () const
331   return this->disable_rt_collocation_resolver_;
334 ACE_INLINE void
335 TAO_ORB_Parameters::disable_rt_collocation_resolver (bool x)
337   this->disable_rt_collocation_resolver_ = x;
341 ACE_INLINE bool
342 TAO_ORB_Parameters::negotiate_codesets () const
344   return this->negotiate_codesets_;
347 ACE_INLINE void
348 TAO_ORB_Parameters::negotiate_codesets (bool x)
350   this->negotiate_codesets_ = x;
353 ACE_INLINE bool
354 TAO_ORB_Parameters::ami_collication () const
356   return this->ami_collication_;
359 ACE_INLINE void
360 TAO_ORB_Parameters::ami_collication (bool x)
362   this->ami_collication_ = x;
365 ACE_INLINE void
366 TAO_ORB_Parameters::collocation_resolver_name (const char *s)
368   this->collocation_resolver_name_ = s;
371 ACE_INLINE const char *
372 TAO_ORB_Parameters::collocation_resolver_name () const
374   return this->collocation_resolver_name_.c_str ();
377 ACE_INLINE bool
378 TAO_ORB_Parameters::forward_invocation_on_object_not_exist () const
380   return this->forward_invocation_on_object_not_exist_;
383 ACE_INLINE void
384 TAO_ORB_Parameters::forward_invocation_on_object_not_exist (bool x)
386   this->forward_invocation_on_object_not_exist_ = x;
389 ACE_INLINE int
390 TAO_ORB_Parameters::forward_once_exception () const
392   return this->forward_once_exception_;
395 ACE_INLINE void
396 TAO_ORB_Parameters::forward_once_exception (const int ef)
398   this->forward_once_exception_ |= ef;
401 ACE_INLINE bool
402 TAO_ORB_Parameters::allow_ziop_no_server_policies () const
404   return this->allow_ziop_no_server_policies_;
407 ACE_INLINE void
408 TAO_ORB_Parameters::allow_ziop_no_server_policies (bool x)
410   this->allow_ziop_no_server_policies_ = x;
413 TAO_END_VERSIONED_NAMESPACE_DECL