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: EstablishRecord.h,v 1.4 2005/01/21 19:44:15 mmarsh Exp $ 00008 // 00009 // $Log: EstablishRecord.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:23 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_ESTABLISHRECORD_H__ 00022 #define __CODEX_APSS_ESTABLISHRECORD_H__ 00023 00024 #include "Message.h" 00025 00026 namespace CODEX_APSS 00027 { 00032 class EstablishRecord 00033 { 00034 public : 00036 EstablishRecord() {} 00037 00039 EstablishRecord( const EstablishRecord& aOther ) : 00040 m_request( aOther.m_request ), 00041 m_response( aOther.m_response ) 00042 {} 00043 00045 virtual ~EstablishRecord() {} 00046 00052 void addRequest( const EstablishMsg& em ) 00053 { 00054 m_request = em; 00055 m_response = SignedEstablishedMsg(); // clear response 00056 } 00057 00064 void addResponse( const SignedEstablishedMsg& em ) 00065 { 00066 m_response = em; 00067 } 00068 00070 const EstablishMsg& request() const { return m_request; } 00071 00073 const SignedEstablishedMsg& response() const { return m_response; } 00074 00075 private : 00076 void operator=( const EstablishRecord& aOther ); 00077 00078 EstablishMsg m_request; 00079 SignedEstablishedMsg m_response; 00080 }; 00081 00082 } 00083 00084 #endif /* __CODEX_APSS_ESTABLISHRECORD_H__ */
1.4.1