summaryrefslogtreecommitdiff
path: root/TAO/tao/PI/ClientRequestDetails.inl
blob: 2e55e442c791fb2a9a4725b90b004382a59c1a38 (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
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  ACE_INLINE
  ClientRequestDetails::ClientRequestDetails ()
    : 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