VR-Link API Documentation for HLA 1.3
hActRespInter.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #ifndef hActRespInter_H_
00008 #define hActRespInter_H_
00009 
00010 #if DtHLA
00011 
00012 #include "hInterWData.h"
00013 #include "hostStructs.h"
00014 #include <matrix/vlMath.h>
00015 
00016 
00020 
00021 class DT_DLL_VL DtExerciseConn;
00022 class DT_DLL_VL DtActionResponseInteraction;
00023 
00024 
00026 typedef void (*DtActionResponseInteractionCb) 
00027    (DtActionResponseInteraction* inter, void* usr);
00028 
00035 
00036 class DT_DLL_VL DtActionResponseInteraction : public DtInteractionWithData
00037 {
00038 public:
00039 
00041    DtActionResponseInteraction();
00042 
00044    virtual ~DtActionResponseInteraction();
00045 
00047    DtActionResponseInteraction(const DtActionResponseInteraction& orig);
00048 
00050    DtActionResponseInteraction& operator=(
00051       const DtActionResponseInteraction& orig);
00052 
00054    virtual void printData() const;
00055 
00057    virtual void printDataToStream(std::ostream& stream) const;
00058 
00060    virtual void setSenderId(const DtEntityIdentifier& id);
00061    virtual const DtEntityIdentifier& senderId() const;
00062 
00064    virtual void setReceiverId(const DtEntityIdentifier& id);
00065    virtual const DtEntityIdentifier& receiverId() const;
00066 
00068    virtual void setRequestId(DtU32 id);
00069    virtual DtU32 requestId() const;
00070 
00072    virtual void setRequestStatus(DtRequestStatus rStatus);
00073    virtual DtRequestStatus requestStatus() const;
00074 
00076    virtual const char* name() const;
00077 
00078 public:
00079 
00082    static DtInteraction* create();
00083 
00086    static void addCallback(DtExerciseConn* conn,
00087       DtActionResponseInteractionCb cb, void* usr,
00088       DtDDMRegionSP region = DtDDMRegionSP());
00089    static void removeCallback(DtExerciseConn* conn,
00090       DtActionResponseInteractionCb cb, void* usr, DtDDMRegionSP region =
00091       DtDDMRegionSP());
00092 
00093 protected:
00094 
00095    DtEntityIdentifier myOrigEnt;
00096    DtEntityIdentifier myReceiveEnt;
00097    DtU32 myRequestId;
00098    DtRequestStatus myRequestStatus;
00099 };
00100 
00101 #endif
00102 #endif
00103 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)