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.4 2005/01/21 19:44:17 mmarsh Exp $ 00008 // 00009 // $Log: ServerResponseEvent.h,v $ 00010 // Revision 1.4 2005/01/21 19:44:17 mmarsh 00011 // Updated for compatibility with Doxygen 1.4.1 00012 // 00013 // Revision 1.3 2004/05/19 15:56:58 mmarsh 00014 // *** empty log message *** 00015 // 00016 // Revision 1.2 2003/11/04 22:31:51 mmarsh 00017 // *** empty log message *** 00018 // 00019 // 00020 00021 #ifndef __CODEX_SERVER_SERVERRESPONSEEVENT_H__ 00022 #define __CODEX_SERVER_SERVERRESPONSEEVENT_H__ 00023 00024 #include "CODEX_Events/Event.h" 00025 #include "CODEX_Quorum/Message.h" 00026 #include "ServerResponseHandler.h" 00027 00028 namespace CODEX_Server 00029 { 00033 class ServerResponseEvent : public CODEX_Events::EventBase 00034 { 00035 public : 00037 ServerResponseEvent( CODEX_Events::Activity* source, 00038 ServerResponseHandler* destination, 00039 const CODEX_Quorum::Message& message, 00040 int server ); 00041 00043 virtual ~ServerResponseEvent(); 00044 00046 const CODEX_Quorum::Message& message() const { return m_message; } 00047 00049 int server() const { return m_server; } 00050 00051 bool handle() { return m_destination->handler( *this ); } 00052 00053 private : 00054 ServerResponseHandler* m_destination; 00055 00056 protected : 00057 CODEX_Quorum::Message m_message; 00058 int m_server; 00059 }; 00060 00061 } 00062 00063 #endif /* __CODEX_SERVER_SERVERRESPONSEEVENT_H__ */
1.4.1