summaryrefslogtreecommitdiff
path: root/TAO/tao/Service_Context.inl
blob: f2cb3f6e0786e4fe1fbe785117b9b392a2eb33c6 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// -*- C++ -*-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO_Service_Context::TAO_Service_Context (void)
  : service_context_ ()
{
}

ACE_INLINE IOP::ServiceContextList &
TAO_Service_Context::service_info (void)
{
  return this->service_context_;
}

ACE_INLINE const IOP::ServiceContextList &
TAO_Service_Context::service_info () const
{
  return this->service_context_;
}

ACE_INLINE void
TAO_Service_Context::set_context (IOP::ServiceId id, TAO_OutputCDR &cdr)
{
  this->set_context_i (id, cdr);
}

ACE_INLINE void
TAO_Service_Context::set_context (IOP::ServiceContext &context,
                                  TAO_OutputCDR &cdr)
{
  this->set_context_i (context, cdr);
}

ACE_INLINE bool
TAO_Service_Context::is_service_id (IOP::ServiceId id)
{
  for (CORBA::ULong i = 0;
       i != this->service_context_.length ();
       ++i)
    {
      if (id == this->service_context_[i].context_id)
        {
          return true;
        }
    }
  return false;
}

ACE_INLINE void
TAO_Service_Context::set_context (IOP::ServiceContext &context)
{
  this->add_context_i (context);
}

TAO_END_VERSIONED_NAMESPACE_DECL