summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Assorted_Headers.h
blob: b5923da9bfb3953f7c774d0b822928f224a12fe3 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// -*- C++ -*-
// $Id$

// ============================================================================
//
// = LIBRARY
//     TAO
//
// = FILENAME
//     GIOP_Assorted_Header.h
//
// = DESCRIPTION
//     Some assorted GIOP structure mappings
//
// = AUTHOR
//     Balachandran Natarajan <bala@cs.wustl.edu>
//
// ============================================================================
#ifndef TAO_GIOP_ASSORTED_HEADERS_H
#define TAO_GIOP_ASSORTED_HEADERS_H
#include "tao/GIOPC.h"


class TAO_GIOP_Locate_Request_Header
{
  // = TITLE
  //   Location service support
public:
  
  TAO_GIOP_Locate_Request_Header (TAO_InputCDR &msg);
  // Constructor

  void request_id (CORBA::ULong id);
  // Set the id
  
  CORBA::ULong request_id (void);
  // Get the request id

  void addressing_disposition (CORBA::Short discriminant);
  // Set the addressing the disposition

  CORBA::Short addressing_disposition (void);
  // Return the addressing disposition
  
  const GIOP::TargetAddress &target_address (void) const;
  // Get in read mode

  GIOP::TargetAddress &target_address (void);
  // Get in read/write mode

  //  TAO_ObjectKey &object_key_ref (void);
  // Get the Object Key in read/write mode

  TAO_InputCDR &incoming_stream (void);
  // Get the CDR stream for read/write
  
private:
  CORBA::ULong request_id_;
  // Request id

  CORBA::Short addressing_disposition_;
  // This is the discrminant type for the union encapsulated in
  // TargetAddress. 
  
  GIOP::TargetAddress  target_address_;
  // Introduced by GIOP 1.2. Will not cause us any harm if it is there
  // for other versions.

  TAO_InputCDR *incoming_;
  // Incoming CDR stream
};

#if defined (__ACE_INLINE__)
# include "tao/GIOP_Assorted_Headers.i"
#endif /* __ACE_INLINE__ */

#endif /*TAO_GIOP_ASSORTED_HEADERS_H*/