summaryrefslogtreecommitdiff
path: root/TAO/tao/operation_details.h
blob: 64ffba59d3a476e6aa4ae4de70523fe7c360a1e0 (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
78
79
80
81
82
83
84
85
86
87
// This may look like C, but it's really -*- C++ -*-
//     $Id$
// ============================================================================
//
// = LIBRARY
//    TAO
//
// = FILENAME
//    operation_details.h
//
// = AUTHOR
//    Bala Natarajan <bala@cs.wustl.edu> 
// ============================================================================

#ifndef TAO_OPERATION_DETAILS_H
#define TAO_OPERATION_DETAILS_H

#include "tao/corbafwd.h"
#include "tao/IOPC.h"

class TAO_Operation_Details
{
  // = TITLE
  //   Class with operation details
  //
  // = DESCRIPTION
  //   This class stores some of the "operation" details that would be
  //   required by the invocation classes. this class is in its
  //   infancy now but I expect this one to grow as we come with
  //   different varieties of use cases. 
public:
  TAO_Operation_Details (const char *name,
                         CORBA::ULong len);
  //Ctor
  
  const char* opname (void) const;
  // Operation name
  
  CORBA::ULong opname_len (void) const;
  // Length of the operation name
  
  void response_flags (CORBA::Octet flags);
  // Set the response flags
  
  CORBA::Octet response_flags (void);
  CORBA::Octet response_flags (void) const;
  // Get the response flags

  IOP::ServiceContextList &service_info (void);
  const IOP::ServiceContextList &service_info (void) const;
  // Get the service context list

  void request_id (CORBA::ULong id);

  CORBA::ULong request_id (void);
  CORBA::ULong request_id (void) const;
  // Get and set for request id
  
private:
  const char *opname_;
  // Name of the operation being invoked.

  CORBA::ULong opname_len_;
  // Precalculated length of opname_.

  CORBA::ULong request_id_;
  // Request ID of this operation.
  
  CORBA::Octet response_flags_;
  // Response flags
  
  IOP::ServiceContextList service_info_;
  // The ServiceContextList sent to the server side.  Only valid
  // when sending a request.
  
  // The first element of header is service context list;
  // transactional context would be acquired here using the
  // transaction service APIs.  Other kinds of context are as yet
  // undefined.
  //
};

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

#endif /*TAO_OPERATION_DETAILS_H*/