Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ComputeRecord.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: ComputeRecord.h,v 1.3 2004/05/19 15:56:23 mmarsh Exp $
00008 //
00009 // $Log: ComputeRecord.h,v $
00010 // Revision 1.3  2004/05/19 15:56:23  mmarsh
00011 // Added copyright and license statements.
00012 //
00013 // Revision 1.2  2003/11/04 22:31:45  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_APSS_COMPUTERECORD_H__
00019 #define __CODEX_APSS_COMPUTERECORD_H__
00020 
00021 #include "Message.h"
00022 
00023 namespace CODEX_APSS
00024 {
00029    class ComputeRecord
00030    {
00031       public :
00033          ComputeRecord() {}
00034 
00036          ComputeRecord( const ComputeRecord& aOther ) :
00037             m_request( aOther.m_request ),
00038             m_response( aOther.m_response )
00039          {}
00040 
00042          virtual ~ComputeRecord() {}
00043 
00049          void addRequest( const ComputeMsg& cm )
00050          {
00051             m_request = cm;
00052             m_response = SignedComputedMsg(); // clear response
00053          }
00054 
00060          void addResponse( const SignedComputedMsg& cm ) { m_response = cm; }
00061 
00063          const ComputeMsg& request() const { return m_request; }
00064 
00066          const SignedComputedMsg& response() const { return m_response; }
00067 
00068       private :
00069          void operator=( const ComputeRecord& aOther );
00070 
00071          ComputeMsg         m_request;
00072          SignedComputedMsg  m_response;
00073    };
00074 
00075 }
00076 
00077 #endif /* __CODEX_APSS_COMPUTERECORD_H__ */

Generated on Fri May 6 17:38:58 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1