MAK RTIspy API Documentation for HLA 1516
serResCom.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: serResCom.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 #ifdef DtMOM
00009 
00012 
00013 #ifndef DtFederateRestoreCompleteInteraction_H_
00014 #define DtFederateRestoreCompleteInteraction_H_
00015 
00016 #include "rtiMsConfig.h"
00017 #include "internalTypes.h"
00018 #include "mInteraction.h"
00019 #include <vlutil/vlList.h>
00020 
00021 class DtMomInterCbMgr;
00022 class DtFederateRestoreCompleteInteraction;
00023 typedef void (*DtFederateRestoreCompleteInteractionCb)
00024    (const DtFederateRestoreCompleteInteraction& inter, void* usr);
00025 
00026 class DT_DLL_LRC DtFederateRestoreCompleteInteraction :
00027    public DtServiceInteraction
00028 {
00029 public:
00030 
00032    DtFederateRestoreCompleteInteraction();
00033 
00035    virtual ~DtFederateRestoreCompleteInteraction();
00036 
00038    DtFederateRestoreCompleteInteraction(
00039       const DtFederateRestoreCompleteInteraction& orig);
00040  
00042    DtFederateRestoreCompleteInteraction& operator=(
00043       const DtFederateRestoreCompleteInteraction& orig);
00044 
00047    virtual const DtPhvps& phvps();
00048 
00051    virtual bool setFromPhvps(const DtPhvps& phvps);
00052 
00055    virtual bool parametersAreInvalid();
00056 
00059    virtual unsigned long successIndicator() const;
00060    virtual void setSuccessIndicator(unsigned long data);
00061    
00062      
00063 public:
00065    static DtServiceInteraction* create();
00066 
00068    static void addCallback(DtMomInterCbMgr* callBackManager,
00069       DtFederateRestoreCompleteInteractionCb cb, void* usr);
00070    static void removeCallback(DtMomInterCbMgr* callBackManager,
00071       DtFederateRestoreCompleteInteractionCb cb, void* usr);
00072 
00073 protected:
00074 
00076    virtual void encodeSuccessIndicator(
00077       const DtMomInteraction& data,
00078       DtPhvps* parameters,
00079       DtParameterHandle parameterHandle);
00080    
00082    virtual void decodeSuccessIndicator(
00083       DtMomInteraction* data,
00084       const DtPhvps& parameters,
00085       int index);
00086    
00087 public:
00088    static const char* theInteractionName;
00089 
00090 protected:
00093    unsigned long mySuccess;
00094    bool myReceivedSuccess;
00095 
00096    const char *SUCCESS_INDICATOR_PARAMETER_NAME;
00097 
00098 };
00099 
00100 #endif
00101 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)