summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Locate_Header.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/GIOP_Message_Locate_Header.h')
-rw-r--r--TAO/tao/GIOP_Message_Locate_Header.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/TAO/tao/GIOP_Message_Locate_Header.h b/TAO/tao/GIOP_Message_Locate_Header.h
new file mode 100644
index 00000000000..897f4605bcd
--- /dev/null
+++ b/TAO/tao/GIOP_Message_Locate_Header.h
@@ -0,0 +1,82 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file GIOP_Message_Locate_Header.h
+ *
+ * $Id$
+ *
+ * Some assorted GIOP structure mappings
+ *
+ *
+ * @author Balachandran Natarajan <bala@cs.wustl.edu>
+ */
+//=============================================================================
+
+
+#ifndef TAO_GIOP_MESSAGE_LOCATE_HEADER_H
+#define TAO_GIOP_MESSAGE_LOCATE_HEADER_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/Tagged_Profile.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+/**
+ * @class TAO_GIOP_Locate_Request_Header
+ *
+ * @brief Location service support
+ */
+class TAO_GIOP_Locate_Request_Header
+{
+public:
+
+ /// Constructor
+ TAO_GIOP_Locate_Request_Header (TAO_InputCDR &msg,
+ TAO_ORB_Core *core);
+
+ /// Set the id
+ void request_id (CORBA::ULong id);
+
+ /// Get the request id
+ CORBA::ULong request_id (void) const;
+
+ /// Get the object_key in read mode..
+ const TAO::ObjectKey &object_key (void) const;
+
+ /// Get the object_key in read/write mode..
+ TAO::ObjectKey &object_key (void);
+
+ /// Get the reference to the underlying profile
+ TAO_Tagged_Profile &profile (void);
+
+ /// Get the CDR stream for read/write
+ TAO_InputCDR &incoming_stream (void);
+
+private:
+ /// Request id
+ CORBA::ULong request_id_;
+
+ /// Profile info.
+ TAO_Tagged_Profile profile_;
+
+ /// Object Key
+ TAO::ObjectKey object_key_;
+
+ /// Incoming CDR stream
+ TAO_InputCDR *incoming_;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#if defined (__ACE_INLINE__)
+# include "tao/GIOP_Message_Locate_Header.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /*TAO_GIOP_MESSAGE_LOCATE_HEADER_H*/