summaryrefslogtreecommitdiff
path: root/TAO/tao/Service_Context.inl
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2000-12-16 03:03:20 +0000
committerbala <balanatarajan@users.noreply.github.com>2000-12-16 03:03:20 +0000
commit196f53d4a9a239c280a1ba49e761b71ff3aaa179 (patch)
treec0c44d4313e603a7655f9f6d3ea9f0e093f0f6f2 /TAO/tao/Service_Context.inl
parent27a2a0868c15580e025a109727018bd0ff46f1b1 (diff)
downloadATCD-196f53d4a9a239c280a1ba49e761b71ff3aaa179.tar.gz
ChangeLogTag: Fri Dec 15 20:59:49 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Service_Context.inl')
-rw-r--r--TAO/tao/Service_Context.inl54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/Service_Context.inl b/TAO/tao/Service_Context.inl
new file mode 100644
index 00000000000..d7540db80b7
--- /dev/null
+++ b/TAO/tao/Service_Context.inl
@@ -0,0 +1,54 @@
+// -*- C++ -*-
+//
+// $Id$
+
+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 (void) 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 int
+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 1;
+ }
+ }
+ return 0;
+}