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: InitRecord.h,v 1.4 2005/01/21 19:44:15 mmarsh Exp $ 00008 // 00009 // $Log: InitRecord.h,v $ 00010 // Revision 1.4 2005/01/21 19:44:15 mmarsh 00011 // Updated for compatibility with Doxygen 1.4.1 00012 // 00013 // Revision 1.3 2004/05/19 15:56:24 mmarsh 00014 // Added copyright and license statements. 00015 // 00016 // Revision 1.2 2003/11/04 22:31:45 mmarsh 00017 // *** empty log message *** 00018 // 00019 // 00020 00021 #ifndef __CODEX_APSS_INITRECORD_H__ 00022 #define __CODEX_APSS_INITRECORD_H__ 00023 00024 #include "Message.h" 00025 00026 namespace CODEX_APSS 00027 { 00032 class InitRecord 00033 { 00034 public : 00036 InitRecord() {} 00037 00039 InitRecord( const InitRecord& aOther ) : 00040 m_request( aOther.m_request ), 00041 m_response( aOther.m_response ) 00042 {} 00043 00045 virtual ~InitRecord() {} 00046 00052 void addRequest( const InitMsg& im ) 00053 { 00054 m_request = im; 00055 m_response = SignedContributeMsg(); // clear response 00056 } 00057 00063 void addResponse( const SignedContributeMsg& cm ) { m_response = cm; } 00064 00066 const InitMsg& request() const { return m_request; } 00067 00069 const SignedContributeMsg& response() const { return m_response; } 00070 00071 private : 00072 void operator=( const InitRecord& aOther ); 00073 00074 InitMsg m_request; 00075 SignedContributeMsg m_response; 00076 }; 00077 00078 } 00079 00080 #endif /* __CODEX_APSS_INITRECORD_H__ */
1.4.1