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

EstablishCallback.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: EstablishCallback.h,v 1.3 2004/05/19 15:56:23 mmarsh Exp $
00008 //
00009 // $Log: EstablishCallback.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_ESTABLISHCALLBACK_H__
00019 #define __CODEX_APSS_ESTABLISHCALLBACK_H__
00020 
00021 #include "CODEX_Quorum/ResponseCallback.h"
00022 #include "InitActivity.h"
00023 #include "Types.h"
00024 
00025 namespace CODEX_APSS
00026 {
00030    class EstablishCallback : public CODEX_Quorum::ResponseCallback
00031    {
00032       public :
00034          EstablishCallback( InitActivity* initAct,
00035                             unsigned int version,
00036                             const SublabelType& label );
00037 
00039          virtual ~EstablishCallback();
00040 
00041          bool operator()( unsigned int server, CODEX_Quorum::Message* msg );
00042 
00044          void fail();
00045 
00046       private :
00047          typedef InitActivity::EvidenceVector  EvidenceVector;
00048 
00049          InitActivity*    m_initAct;
00050          unsigned int     m_version;
00051          SublabelType     m_label;
00052          bool             m_completed;
00053          EvidenceVector*  m_evidence;
00054    };
00055 
00056 }
00057 
00058 #endif /* __CODEX_APSS_ESTABLISHCALLBACK_H__ */

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