VR-Link API Documentation for HLA Evolved
hDataInter.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 hDataInter_H_
00008 #define hDataInter_H_
00009 
00010 #if DtHLA
00011 
00012 #include "hInterWData.h"
00013 #include "hostStructs.h"
00014 #include <matrix/vlMath.h>
00015 
00016 
00017 
00021 
00022 class DT_DLL_VL DtExerciseConn;
00023 class DT_DLL_VL DtDataInteraction;
00024 
00025 
00027 typedef void (*DtDataInteractionCb) 
00028    (DtDataInteraction* inter, void* usr);
00029 
00030 
00037 
00038 class DT_DLL_VL DtDataInteraction : public DtInteractionWithData
00039 {
00040 public:
00041 
00043    DtDataInteraction();
00044 
00046    virtual ~DtDataInteraction();
00047 
00049    DtDataInteraction(const DtDataInteraction& orig);
00050 
00052    DtDataInteraction& operator=(
00053       const DtDataInteraction& orig);
00054 
00056    virtual void printData() const;
00057 
00059    virtual void printDataToStream(std::ostream& stream) const;
00060 
00062    virtual void setSenderId(const DtEntityIdentifier& id);
00063    virtual const DtEntityIdentifier& senderId() const;
00064 
00066    virtual void setReceiverId(const DtEntityIdentifier& id);
00067    virtual const DtEntityIdentifier& receiverId() const;
00068 
00070    virtual void setRequestId(unsigned long id);
00071    virtual unsigned long requestId() const;
00072 
00074    virtual const char* name() const;
00075 
00076 public:
00077 
00080    static DtInteraction* create();
00081 
00084    static void addCallback(DtExerciseConn* conn,
00085       DtDataInteractionCb cb, void* usr,
00086       DtDDMRegionSP region = DtDDMRegionSP());
00087    static void removeCallback(DtExerciseConn* conn,
00088       DtDataInteractionCb cb, void* usr,
00089       DtDDMRegionSP region = DtDDMRegionSP());
00090 
00091 protected:
00092 
00093    DtEntityIdentifier myOrigEnt;
00094    DtEntityIdentifier myReceiveEnt;
00095    int myRequestId;
00096 };
00097 
00098 #endif
00099 #endif
00100 

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)