summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/PI/ClientRequestDetails.inl
blob: f568bb9fafb7ffdcbda81948ef6823527cf75e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// -*- C++ -*-
//
// $Id$

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  ACE_INLINE
  ClientRequestDetails::ClientRequestDetails (void)
    : processing_mode_(PortableInterceptor::LOCAL_AND_REMOTE)
  {
  }

  ACE_INLINE
  bool
  ClientRequestDetails::should_be_processed (bool is_remote_request) const
  {
    return ((this->processing_mode_ == PortableInterceptor::LOCAL_AND_REMOTE) ||
            ((this->processing_mode_ == PortableInterceptor::REMOTE_ONLY) &&
             (is_remote_request)) ||
            ((this->processing_mode_ == PortableInterceptor::LOCAL_ONLY) &&
             (!is_remote_request)));
  }
}

TAO_END_VERSIONED_NAMESPACE_DECL