diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-02 02:29:10 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-02 02:29:10 +0000 |
commit | 09f782969b897058871ca64043b0ff2183c65530 (patch) | |
tree | 7a4be4edf3c98e54e0bc2d003a1e4303e2367027 /TAO/tao/Reply_Dispatcher.h | |
parent | 90e449ebfc94947e1cbe73db36a5f8416b909646 (diff) | |
download | ATCD-09f782969b897058871ca64043b0ff2183c65530.tar.gz |
ChangeLogTag:Tue Jun 1 19:48:12 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Reply_Dispatcher.h')
-rw-r--r-- | TAO/tao/Reply_Dispatcher.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/TAO/tao/Reply_Dispatcher.h b/TAO/tao/Reply_Dispatcher.h new file mode 100644 index 00000000000..cb616e7a8ad --- /dev/null +++ b/TAO/tao/Reply_Dispatcher.h @@ -0,0 +1,97 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// Reply_Dispatcher.h +// +// = DESCRIPTION +// Dispatch the reply appropriately. +// +// = AUTHOR +// Alexander Babu Arulanthu <alex@cs.wustl.edu> +// +// ============================================================================ + +#ifndef TAO_REPLY_DISPATCHER_H +#define TAO_REPLY_DISPATCHER_H + +#include "tao/corbafwd.h" + +// Forward Declarations. + +class TAO_Stub; +class TAO_InputCDR; + +class TAO_Export TAO_Reply_Dispatcher +{ + // = TITLE + // + // = DESCRIPTION + // + +public: + TAO_Reply_Dispatcher (void); + // Constructor. + + virtual ~TAO_Reply_Dispatcher (void); + // Destructor. + + void request_id (CORBA::ULong request_id); + // Set the request id. + + CORBA::ULong request_id (void) const; + // Return the request id. + + void reply_status (CORBA::ULong reply_status); + // Set the reply status. Reply status is stored as read from the + // incoming message. Readers of this data should see it whether this + // number fits into the TAO_GIOP_ReplyStatusType type. + + CORBA::ULong reply_status (void) const; + // Get the reply status. + + void cdr (TAO_InputCDR *cdr); + // Set the CDR which the has the reply message. + + TAO_InputCDR *cdr (void) const; + // Get the CDR stream. + + virtual int dispatch_reply (void) = 0; + // Dispatch the reply. + +protected: + CORBA::ULong request_id_; + // Request ID for this request. + + TAO_InputCDR *cdr_; + // CDR stream for reading the input. + + CORBA::ULong reply_status_; + // Replt status. +}; + +class TAO_Export TAO_Synch_Reply_Dispatcher : public TAO_Reply_Dispatcher +{ + // = TITLE + // + // Reply dispatcher for Synchoronous Method Invocation (SMI)s. + // + // = DESCRIPTION + // + +public: + TAO_Synch_Reply_Dispatcher (void); + // Constructor. + + virtual ~TAO_Synch_Reply_Dispatcher (void); + // Destructor. + + virtual int dispatch_reply (void); + // NO OP. +}; + +#endif /* TAO_REPLY_DISPATCHER_H */ |