Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ServerResponseEvent.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: ServerResponseEvent.h,v 1.3 2004/05/19 15:56:58 mmarsh Exp $
00008 //
00009 // $Log: ServerResponseEvent.h,v $
00010 // Revision 1.3  2004/05/19 15:56:58  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:51  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_SERVER_SERVERRESPONSEEVENT_H__
00019 #define __CODEX_SERVER_SERVERRESPONSEEVENT_H__
00020 
00021 #include "CODEX_Events/Event.h"
00022 #include "CODEX_Quorum/Message.h"
00023 #include "ServerResponseHandler.h"
00024 
00025 namespace CODEX_Server
00026 {
00030    class ServerResponseEvent : public CODEX_Events::EventBase
00031    {
00032       public :
00034          ServerResponseEvent( CODEX_Events::Activity* source,
00035                               ServerResponseHandler* destination,
00036                               const CODEX_Quorum::Message& message,
00037                               int server );
00038 
00040          virtual ~ServerResponseEvent();
00041 
00043          const CODEX_Quorum::Message& message() const { return m_message; }
00044 
00046          int server() const { return m_server; }
00047 
00048          bool handle() { return m_destination->handler( *this ); }
00049 
00050       private :
00051          ServerResponseHandler*  m_destination;
00052 
00053       protected :
00054          CODEX_Quorum::Message   m_message; 
00055          int                     m_server;  
00056    };
00057 
00058 }
00059 
00060 #endif /* __CODEX_SERVER_SERVERRESPONSEEVENT_H__ */

Generated on Wed Jun 2 16:32:56 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18